mac80211: fix function pointer check
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.
Signed-off-by Holger Schurig <[email protected]>
--- 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;
Quoted 4 lines · Holger Schurig
This makes "iw wlan0 dump survey" work again with mac80211-based drivers that support it, e.g. ath5k.
Signed-off-by Holger Schurig <[email protected]>
Is this a stable fix?
Luis