Commit 8e17ea25 authored by Amitkumar Karwar's avatar Amitkumar Karwar Committed by John W. Linville

mwifiex: extract firmware API version number

The firmware API version number will be used for future patches
to support different firmware API specs.
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f5335e00
...@@ -1502,6 +1502,7 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv, ...@@ -1502,6 +1502,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_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); adapter->number_of_antenna = le16_to_cpu(hw_spec->number_of_antenna);
if (le32_to_cpu(hw_spec->dot_11ac_dev_cap)) { if (le32_to_cpu(hw_spec->dot_11ac_dev_cap)) {
......
...@@ -515,6 +515,8 @@ enum P2P_MODES { ...@@ -515,6 +515,8 @@ enum P2P_MODES {
#define ACT_TDLS_CREATE 0x01 #define ACT_TDLS_CREATE 0x01
#define ACT_TDLS_CONFIG 0x02 #define ACT_TDLS_CONFIG 0x02
#define MWIFIEX_FW_V15 15
struct mwifiex_ie_types_header { struct mwifiex_ie_types_header {
__le16 type; __le16 type;
__le16 len; __le16 len;
......
...@@ -802,6 +802,7 @@ struct mwifiex_adapter { ...@@ -802,6 +802,7 @@ struct mwifiex_adapter {
atomic_t pending_bridged_pkts; atomic_t pending_bridged_pkts;
struct semaphore *card_sem; struct semaphore *card_sem;
bool ext_scan; bool ext_scan;
u8 fw_api_ver;
u8 fw_key_api_major_ver, fw_key_api_minor_ver; u8 fw_key_api_major_ver, fw_key_api_minor_ver;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment