diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-drv.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-drv.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-drv.c b/drivers/net/wireless/iwlwifi/iwl-drv.c index b3bc30b4292b..662d9936485c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-drv.c +++ b/drivers/net/wireless/iwlwifi/iwl-drv.c | |||
@@ -728,6 +728,12 @@ static int iwl_parse_tlv_firmware(struct iwl_drv *drv, | |||
728 | if (tlv_len != sizeof(u32)) | 728 | if (tlv_len != sizeof(u32)) |
729 | goto invalid_tlv_len; | 729 | goto invalid_tlv_len; |
730 | drv->fw.phy_config = le32_to_cpup((__le32 *)tlv_data); | 730 | drv->fw.phy_config = le32_to_cpup((__le32 *)tlv_data); |
731 | drv->fw.valid_tx_ant = (drv->fw.phy_config & | ||
732 | FW_PHY_CFG_TX_CHAIN) >> | ||
733 | FW_PHY_CFG_TX_CHAIN_POS; | ||
734 | drv->fw.valid_rx_ant = (drv->fw.phy_config & | ||
735 | FW_PHY_CFG_RX_CHAIN) >> | ||
736 | FW_PHY_CFG_RX_CHAIN_POS; | ||
731 | break; | 737 | break; |
732 | case IWL_UCODE_TLV_SECURE_SEC_RT: | 738 | case IWL_UCODE_TLV_SECURE_SEC_RT: |
733 | iwl_store_ucode_sec(pieces, tlv_data, IWL_UCODE_REGULAR, | 739 | iwl_store_ucode_sec(pieces, tlv_data, IWL_UCODE_REGULAR, |