mac80211: brcm: backport first set of 5.4 brcmfmac changes
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / brcm / 103-v5.4-0003-brcmfmac-allow-160MHz-in-custom-regulatory-rules.patch
1 From 0b28c88e51c1248e6eb2dbe64e42dad917be4546 Mon Sep 17 00:00:00 2001
2 From: Arend van Spriel <arend.vanspriel@broadcom.com>
3 Date: Thu, 11 Jul 2019 10:45:32 +0200
4 Subject: [PATCH 3/3] brcmfmac: allow 160MHz in custom regulatory rules
5
6 The driver has custom regulatory rules which had maximum bandwidth
7 for 5GHz channels set to 80MHz. As a consequence the driver can
8 not use 160MHz in AP mode even when the device supports it. So
9 relax the rules allowing 160MHz. After wiphy_register() the channel
10 flags are updated according what the device actually supports.
11
12 Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
13 Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
14 Reviewed-by: Franky Lin <franky.lin@broadcom.com>
15 Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
16 ---
17 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 4 ++--
18 1 file changed, 2 insertions(+), 2 deletions(-)
19
20 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
21 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
22 @@ -189,9 +189,9 @@ static const struct ieee80211_regdomain
23 */
24 REG_RULE(2484-10, 2484+10, 20, 6, 20, 0),
25 /* IEEE 802.11a, channel 36..64 */
26 - REG_RULE(5150-10, 5350+10, 80, 6, 20, 0),
27 + REG_RULE(5150-10, 5350+10, 160, 6, 20, 0),
28 /* IEEE 802.11a, channel 100..165 */
29 - REG_RULE(5470-10, 5850+10, 80, 6, 20, 0), }
30 + REG_RULE(5470-10, 5850+10, 160, 6, 20, 0), }
31 };
32
33 /* Note: brcmf_cipher_suites is an array of int defining which cipher suites