summaryrefslogtreecommitdiff
path: root/net/wireless
diff options
context:
space:
mode:
authorP Praneesh <ppranees@codeaurora.org>2020-07-09 08:16:21 +0530
committerJohannes Berg <johannes.berg@intel.com>2020-07-31 09:25:12 +0200
commit322cd27c06450b2db2cb6bdc68f3814149baf767 (patch)
treed7fd0e4fa42a91c6282f76a46871d2df13dbf748 /net/wireless
parent180ac48ee62f53c26787350a956c5ac371cbe0b7 (diff)
cfg80211/mac80211: avoid bss color setting in non-HE modes
Adding bss-color configuration is only valid in HE mode. Earlier we have enabled it by default, irrespective of capabilities/mode. Fix that. Reported-by: kernel test robot <lkp@intel.com> Reported-by: Rajkumar Manoharan <rmanohar@codeaurora.org> Signed-off-by: P Praneesh <ppranees@codeaurora.org> Link: https://lore.kernel.org/r/1594262781-21444-1-git-send-email-ppranees@codeaurora.org [fix up commit message] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 13a38aab1565..b4048f3c5134 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -4865,6 +4865,9 @@ static int nl80211_start_ap(struct sk_buff *skb, struct genl_info *info)
memset(&params, 0, sizeof(params));
+ /* disable BSS color by default */
+ params.he_bss_color.disabled = true;
+
/* these are required for START_AP */
if (!info->attrs[NL80211_ATTR_BEACON_INTERVAL] ||
!info->attrs[NL80211_ATTR_DTIM_PERIOD] ||