]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/3.6.8/wireless-allow-40-mhz-on-world-roaming-channels-12-13.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 3.6.8 / wireless-allow-40-mhz-on-world-roaming-channels-12-13.patch
CommitLineData
1df8150e
GKH
1From 43c771a1963ab461a2f194e3c97fded1d5fe262f Mon Sep 17 00:00:00 2001
2From: Johannes Berg <johannes.berg@intel.com>
3Date: Mon, 12 Nov 2012 10:51:34 +0100
4Subject: wireless: allow 40 MHz on world roaming channels 12/13
5
6From: Johannes Berg <johannes.berg@intel.com>
7
8commit 43c771a1963ab461a2f194e3c97fded1d5fe262f upstream.
9
10When in world roaming mode, allow 40 MHz to be used
11on channels 12 and 13 so that an AP that is, e.g.,
12using HT40+ on channel 9 (in the UK) can be used.
13
14Reported-by: Eddie Chapman <eddie@ehuk.net>
15Tested-by: Eddie Chapman <eddie@ehuk.net>
16Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
17Signed-off-by: Johannes Berg <johannes.berg@intel.com>
18Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19
20---
21 net/wireless/reg.c | 5 ++---
22 1 file changed, 2 insertions(+), 3 deletions(-)
23
24--- a/net/wireless/reg.c
25+++ b/net/wireless/reg.c
26@@ -141,9 +141,8 @@ static const struct ieee80211_regdomain
27 .reg_rules = {
28 /* IEEE 802.11b/g, channels 1..11 */
29 REG_RULE(2412-10, 2462+10, 40, 6, 20, 0),
30- /* IEEE 802.11b/g, channels 12..13. No HT40
31- * channel fits here. */
32- REG_RULE(2467-10, 2472+10, 20, 6, 20,
33+ /* IEEE 802.11b/g, channels 12..13. */
34+ REG_RULE(2467-10, 2472+10, 40, 6, 20,
35 NL80211_RRF_PASSIVE_SCAN |
36 NL80211_RRF_NO_IBSS),
37 /* IEEE 802.11 channel 14 - Only JP enables