提交 8e17ea25 编写于 作者: A Amitkumar Karwar 提交者: 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: NAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: NBing Zhao <bzhao@marvell.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 f5335e00
......@@ -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;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册