iwlwifi: Use correct channel_profile iniwl_get_nvm
authorYueHaibing <yuehaibing@huawei.com>
Wed, 17 Apr 2019 03:24:09 +0000 (11:24 +0800)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 29 Apr 2019 15:42:44 +0000 (18:42 +0300)
commit 2785ce008e3b ("iwlwifi: support new NVM response API")
seems forgot use correct channel_profile in iwl_get_nvm when call
iwl_init_sbands().

Fixes: 2785ce008e3b ("iwlwifi: support new NVM response API")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c

index 40985dc552b8596f210318400fa06e99a76d9e61..d87a6bb3e45684052b3eadea0e3b05df89f7a158 100644 (file)
@@ -1496,7 +1496,7 @@ struct iwl_nvm_data *iwl_get_nvm(struct iwl_trans *trans,
                          (void *)rsp_v3->regulatory.channel_profile;
 
        iwl_init_sbands(trans->dev, trans->cfg, nvm,
-                       rsp->regulatory.channel_profile,
+                       channel_profile,
                        nvm->valid_tx_ant & fw->valid_tx_ant,
                        nvm->valid_rx_ant & fw->valid_rx_ant,
                        sbands_flags, v4);