diff options
author | Liad Kaufman <liad.kaufman@intel.com> | 2014-10-19 10:58:15 -0400 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-12-28 13:05:09 -0500 |
commit | b48217670f6e98491b7cff6b66534b4651347763 (patch) | |
tree | 7a8263d24d268e4cddca1f091f45a3246f08c76a /drivers/net/wireless/iwlwifi/iwl-drv.c | |
parent | 9d8ce6afe19e8b5fea175ece550ec1f9d1024f8d (diff) |
iwlwifi: tlv: add support for IWL_UCODE_TLV_SDIO_ADMA_ADDR TLV
A new TLV supplies the ADMA address for SDIO mode, allowing
the driver to configure the default base address to be this
(as given in the FW), rather than hardcoding the values to
use until the FW sends the ALIVE message.
Use the value given by the FW in the IWL_UCODE_TLV_SDIO_ADMA_ADDR
TLV for setting the default SDTM base address until the FW sends
the ALIVE message. If it isn't given in the FW - use the current
hardcoded values.
Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
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 0381dc495b1c..0d3472679e4d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-drv.c +++ b/drivers/net/wireless/iwlwifi/iwl-drv.c | |||
@@ -903,6 +903,12 @@ static int iwl_parse_tlv_firmware(struct iwl_drv *drv, | |||
903 | IWL_UCODE_REGULAR_USNIFFER, | 903 | IWL_UCODE_REGULAR_USNIFFER, |
904 | tlv_len); | 904 | tlv_len); |
905 | break; | 905 | break; |
906 | case IWL_UCODE_TLV_SDIO_ADMA_ADDR: | ||
907 | if (tlv_len != sizeof(u32)) | ||
908 | goto invalid_tlv_len; | ||
909 | drv->fw.sdio_adma_addr = | ||
910 | le32_to_cpup((__le32 *)tlv_data); | ||
911 | break; | ||
906 | default: | 912 | default: |
907 | IWL_DEBUG_INFO(drv, "unknown TLV: %d\n", tlv_type); | 913 | IWL_DEBUG_INFO(drv, "unknown TLV: %d\n", tlv_type); |
908 | break; | 914 | break; |