iwlwifi: mvm: look for the first supported channel when add/remove phy ctxt
authorTova Mussai <tova.mussai@intel.com>
Thu, 4 Jul 2019 11:34:54 +0000 (14:34 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 6 Sep 2019 12:31:22 +0000 (15:31 +0300)
commitdd36a507c806165c0f725413ee2e24c41d8a520d
tree4993039c07a9636805edb0c152bab227c466c34e
parentc8cfa08e39c17be2956c0379de38c885e1b11b66
iwlwifi: mvm: look for the first supported channel when add/remove phy ctxt

Can't rely that band 2.4 is always supported by the NIC and use the
first channel in this band for the phy ctxt.
Instead, look for the first channel in the first band that is supported

Signed-off-by: Tova Mussai <tova.mussai@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
drivers/net/wireless/intel/iwlwifi/mvm/phy-ctxt.c