Skip to contentSkip to conversation

mac80211: fix function pointer check

PATCH In review Holger Schurig 2 participants 2 messages Jun 7, 2010 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: fix function pointer check

This makes "iw wlan0 dump survey" work again with mac80211-based drivers that support it, e.g. ath5k.

---
 net/mac80211/driver-ops.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/driver-ops.h +1 -1
@@ -360,7 +360,7 @@ static inline int drv_get_survey(struct
 				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;