diff options
author | Avinash Patil <patila@marvell.com> | 2014-09-12 20:08:45 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-09-15 15:00:50 -0400 |
commit | 4721c63b929b13bce6860dc8ec068f86efcab2ea (patch) | |
tree | 5a4b668c2d08fdaadb44abce86a1e4644a4495ec /drivers/net | |
parent | 5effb73c529c5d66eecd541d30470b11cc58c64f (diff) | |
download | blackbird-op-linux-4721c63b929b13bce6860dc8ec068f86efcab2ea.tar.gz blackbird-op-linux-4721c63b929b13bce6860dc8ec068f86efcab2ea.zip |
mwifiex: set fw api info for backword compatibility
If we dont set FW API info here, for older FW releases where FW API
is not available in GET_HW_SPEC, API version would remain 0.
This may cause issues with 11ac if older FW is used with newer driver.
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/mwifiex/cmdevt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/cmdevt.c b/drivers/net/wireless/mwifiex/cmdevt.c index 985f6c2654fb..fcc70aea2b8e 100644 --- a/drivers/net/wireless/mwifiex/cmdevt.c +++ b/drivers/net/wireless/mwifiex/cmdevt.c @@ -1508,6 +1508,7 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv, } adapter->fw_release_number = le32_to_cpu(hw_spec->fw_release_number); + adapter->fw_api_ver = (adapter->fw_release_number >> 16) & 0xff; adapter->number_of_antenna = le16_to_cpu(hw_spec->number_of_antenna); if (le32_to_cpu(hw_spec->dot_11ac_dev_cap)) { |