linux-wireless.vger.kernel.org archive mirror
 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

* Re: [PATCH] mac80211: fix function pointer check
  2010-06-07 14:33 [PATCH] mac80211: fix function pointer check Holger Schurig
@ 2010-06-07 17:45 ` Luis R. Rodriguez
  0 siblings, 0 replies; 2+ messages in thread
From: Luis R. Rodriguez @ 2010-06-07 17:45 UTC (permalink / raw)
  To: Holger Schurig; +Cc: linux-wireless, John W. Linville

On Mon, Jun 7, 2010 at 7:33 AM, Holger Schurig <holgerschurig@gmail.com> wrote:
> 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>

Is this a stable fix?

  Luis

^ 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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).