mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 18:12:25 -04:00
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: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
f5335e00f3
commit
8e17ea25b1
@@ -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_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)) {
|
||||
|
||||
@@ -515,6 +515,8 @@ enum P2P_MODES {
|
||||
#define ACT_TDLS_CREATE 0x01
|
||||
#define ACT_TDLS_CONFIG 0x02
|
||||
|
||||
#define MWIFIEX_FW_V15 15
|
||||
|
||||
struct mwifiex_ie_types_header {
|
||||
__le16 type;
|
||||
__le16 len;
|
||||
|
||||
@@ -802,6 +802,7 @@ struct mwifiex_adapter {
|
||||
atomic_t pending_bridged_pkts;
|
||||
struct semaphore *card_sem;
|
||||
bool ext_scan;
|
||||
u8 fw_api_ver;
|
||||
u8 fw_key_api_major_ver, fw_key_api_minor_ver;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user