iwlwifi: Don't ignore the cap field upon mcc update
authorHaim Dreyfuss <haim.dreyfuss@intel.com>
Wed, 27 Nov 2019 19:55:58 +0000 (14:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Feb 2020 21:22:48 +0000 (21:22 +0000)
commit27cf25a0b87a8f2c7f885fe9d37f4402be16d376
tree26d21c9b1852c88992e663f2e0392c597907a544
parent4df1389ff7b5bec71b72ff1bb53d55eef0060aa7
iwlwifi: Don't ignore the cap field upon mcc update

[ Upstream commit 2763bba6328c53c455d8f7f5302b80030551c31b ]

When receiving a new MCC driver get all the data about the new country
code and its regulatory information.
Mistakenly, we ignored the cap field, which includes global regulatory
information which should be applies to every channel.
Fix it.

Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.h
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c