linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: fill rate filter for internal scan requests
@ 2011-11-30 15:56 Simon Wunderlich
  2011-11-30 18:31 ` Johannes Berg
  2011-11-30 22:20 ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: Simon Wunderlich @ 2011-11-30 15:56 UTC (permalink / raw)
  To: linux-wireless
  Cc: linville, Johannes Berg, Simon Wunderlich, Mathias Kretschmer,
	stable

The rates bitmap for internal scan requests shoud be filled,
otherwise there will be probe requests with zero rates supported.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
---
 net/mac80211/main.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index dddedfa..3e15f75 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -779,6 +779,12 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
 	if (!local->int_scan_req)
 		return -ENOMEM;
 
+	for (band = 0; band < IEEE80211_NUM_BANDS; band++) {
+		if (!local->hw.wiphy->bands[band])
+			continue;
+		local->int_scan_req->rates[band] = (u32) -1;
+	}
+
 	/* if low-level driver supports AP, we also support VLAN */
 	if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP)) {
 		hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP_VLAN);
-- 
1.7.7.3


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

* Re: [PATCH] mac80211: fill rate filter for internal scan requests
  2011-11-30 15:56 [PATCH] mac80211: fill rate filter for internal scan requests Simon Wunderlich
@ 2011-11-30 18:31 ` Johannes Berg
  2011-11-30 22:20 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2011-11-30 18:31 UTC (permalink / raw)
  To: Simon Wunderlich
  Cc: linux-wireless, linville, Simon Wunderlich, Mathias Kretschmer,
	stable

On Wed, 2011-11-30 at 16:56 +0100, Simon Wunderlich wrote:
> The rates bitmap for internal scan requests shoud be filled,
> otherwise there will be probe requests with zero rates supported.
> 
> Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>

Cc: stable@vger.kernel.org
Acked-by: Johannes Berg <johannes@sipsolutions.net>

> ---
>  net/mac80211/main.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/net/mac80211/main.c b/net/mac80211/main.c
> index dddedfa..3e15f75 100644
> --- a/net/mac80211/main.c
> +++ b/net/mac80211/main.c
> @@ -779,6 +779,12 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
>  	if (!local->int_scan_req)
>  		return -ENOMEM;
>  
> +	for (band = 0; band < IEEE80211_NUM_BANDS; band++) {
> +		if (!local->hw.wiphy->bands[band])
> +			continue;
> +		local->int_scan_req->rates[band] = (u32) -1;
> +	}
> +
>  	/* if low-level driver supports AP, we also support VLAN */
>  	if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP)) {
>  		hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP_VLAN);



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

* Re: [PATCH] mac80211: fill rate filter for internal scan requests
  2011-11-30 15:56 [PATCH] mac80211: fill rate filter for internal scan requests Simon Wunderlich
  2011-11-30 18:31 ` Johannes Berg
@ 2011-11-30 22:20 ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2011-11-30 22:20 UTC (permalink / raw)
  To: Simon Wunderlich
  Cc: linux-wireless, linville, Johannes Berg, Simon Wunderlich,
	Mathias Kretschmer, stable

On Wed, Nov 30, 2011 at 04:56:30PM +0100, Simon Wunderlich wrote:
> The rates bitmap for internal scan requests shoud be filled,
> otherwise there will be probe requests with zero rates supported.
> 
> Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read Documentation/stable_kernel_rules.txt
for how to do this properly.

</formletter>

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

end of thread, other threads:[~2011-11-30 22:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-30 15:56 [PATCH] mac80211: fill rate filter for internal scan requests Simon Wunderlich
2011-11-30 18:31 ` Johannes Berg
2011-11-30 22:20 ` Greg KH

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).