All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: fix function pointer check
@ 2010-06-07 14:33 Holger Schurig
  2010-06-07 17:45 ` Luis R. Rodriguez
  0 siblings, 1 reply; 2+ messages in thread
From: Holger Schurig @ 2010-06-07 14:33 UTC (permalink / raw)
  To: linux-wireless, John W. Linville

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>

---
 net/mac80211/driver-ops.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-wl.orig/net/mac80211/driver-ops.h
+++ linux-wl/net/mac80211/driver-ops.h
@@ -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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-07 17:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-07 14:33 [PATCH] mac80211: fix function pointer check Holger Schurig
2010-06-07 17:45 ` Luis R. Rodriguez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.