aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorHolger Schurig <holgerschurig@gmail.com>2010-06-07 16:33:49 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-06-07 14:44:40 -0400
commit35dd0509b21e4b5bab36b9eb80c8dab0322f5007 (patch)
treeff718895d1e443d2aa831fea2d579c547a3082f3 /net
parente500ae5b535a5209fd397fcc542e3b3290fc2fc5 (diff)
mac80211: fix function pointer check
This makes "iw wlan0 dump survey" work again with mac80211-based drivers that support it, e.g. ath5k. Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/driver-ops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
index 4f227131665..9c1da080916 100644
--- a/net/mac80211/driver-ops.h
+++ b/net/mac80211/driver-ops.h
@@ -349,7 +349,7 @@ static inline int drv_get_survey(struct ieee80211_local *local, int idx,
struct survey_info *survey)
{
int ret = -EOPNOTSUPP;
- if (local->ops->conf_tx)
+ if (local->ops->get_survey)
ret = local->ops->get_survey(&local->hw, idx, survey);
/* trace_drv_get_survey(local, idx, survey, ret); */
return ret;