From d7e6cb6d0939d5485c0bc7dbacd5b19c79cbe9b8 Mon Sep 17 00:00:00 2001 From: Simon Wunderlich Date: Wed, 30 Nov 2011 16:56:30 +0100 Subject: [PATCH] --- yaml --- r: 276430 b: refs/heads/master c: c72e8d335e2c6a309b6281f2abcf491f37b8b92b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/mac80211/main.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index e588a593729e..9b1157873ad8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0bac71af6e66dc798bf07d0c0dd14ee5503362f9 +refs/heads/master: c72e8d335e2c6a309b6281f2abcf491f37b8b92b diff --git a/trunk/net/mac80211/main.c b/trunk/net/mac80211/main.c index d999bf3b84e1..cae443563ec9 100644 --- a/trunk/net/mac80211/main.c +++ b/trunk/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);