2010-06-07 14:34:00

by Holger Schurig

[permalink] [raw]
Subject: [PATCH] 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(-)

--- 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;


2010-06-07 17:46:03

by Luis R. Rodriguez

[permalink] [raw]
Subject: Re: [PATCH] mac80211: fix function pointer check

On Mon, Jun 7, 2010 at 7:33 AM, Holger Schurig <[email protected]> wrote:
> 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