projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bac71a
)
mac80211: fill rate filter for internal scan requests
author
Simon Wunderlich
<
[email protected]
>
Wed, 30 Nov 2011 15:56:30 +0000
(16:56 +0100)
committer
John W. Linville
<
[email protected]
>
Wed, 30 Nov 2011 19:20:19 +0000
(14:20 -0500)
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 <
[email protected]
>
Signed-off-by: Mathias Kretschmer <
[email protected]
>
Cc:
[email protected]
Signed-off-by: John W. Linville <
[email protected]
>
net/mac80211/main.c
patch
|
blob
|
history
diff --git
a/net/mac80211/main.c
b/net/mac80211/main.c
index d999bf3b84e1b27d0d79c91d44b7771756d92a3e..cae443563ec9d98a8230de9fae394b960fa66621 100644
(file)
--- a/
net/mac80211/main.c
+++ b/
net/mac80211/main.c
@@
-757,6
+757,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);