diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-07-30 20:38:09 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-04 16:44:19 -0400 |
commit | 8b19e6ca3bac7e04e93fb73f561d670e77c5fae6 (patch) | |
tree | 50a1487febe99b670aab253c4eebee2b8b3c8268 /net/wireless/reg.c | |
parent | abc7381bcca6ce9dc101f112a13e14957bfbda7e (diff) |
cfg80211: enable country IE support to all cfg80211 drivers
Since the bss is always set now once we are connected, if the
bss has its own information element we refer to it and pass that
instead of relying on mac80211's parsing.
Now all cfg80211 drivers get country IE support, automatically and
we reduce the call overhead that we had on mac80211 which called this
upon every beacon and instead now call this only upon a successfull
connection by a STA on cfg80211.
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r-- | net/wireless/reg.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 6ab56f098de1..b3ac0aace0e5 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1822,10 +1822,7 @@ void regulatory_hint_11d(struct wiphy *wiphy, | |||
1822 | env = ENVIRON_OUTDOOR; | 1822 | env = ENVIRON_OUTDOOR; |
1823 | 1823 | ||
1824 | /* | 1824 | /* |
1825 | * We will run this for *every* beacon processed for the BSSID, so | 1825 | * We will run this only upon a successful connection on cfg80211. |
1826 | * we optimize an early check to exit out early if we don't have to | ||
1827 | * do anything | ||
1828 | * | ||
1829 | * We leave conflict resolution to the workqueue, where can hold | 1826 | * We leave conflict resolution to the workqueue, where can hold |
1830 | * cfg80211_mutex. | 1827 | * cfg80211_mutex. |
1831 | */ | 1828 | */ |
@@ -1878,7 +1875,6 @@ free_rd_out: | |||
1878 | out: | 1875 | out: |
1879 | mutex_unlock(®_mutex); | 1876 | mutex_unlock(®_mutex); |
1880 | } | 1877 | } |
1881 | EXPORT_SYMBOL(regulatory_hint_11d); | ||
1882 | 1878 | ||
1883 | static bool freq_is_chan_12_13_14(u16 freq) | 1879 | static bool freq_is_chan_12_13_14(u16 freq) |
1884 | { | 1880 | { |