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)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 23 Dec 2019 09:33:04 +0000 (11:33 +0200)
commit2763bba6328c53c455d8f7f5302b80030551c31b
treee014ed3e3c2e112c1e2a0b6564c73db15df16b7f
parented780545c13a21dc0276807897e2d4fc142e11ac
iwlwifi: Don't ignore the cap field upon mcc update

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>
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