Skip to content

Commit 86cffb2

Browse files
paliKalle Valo
authored andcommitted
mwifiex: Parse all API_VER_ID properties
During initialization of SD8997 wifi chip kernel prints warnings: mwifiex_sdio mmc0:0001:1: Unknown api_id: 3 mwifiex_sdio mmc0:0001:1: Unknown api_id: 4 This patch adds support for parsing all api ids provided by SD8997 firmware. Signed-off-by: Pali Rohár <[email protected]> Acked-by: Ganapathi Bhat <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 11e7a91 commit 86cffb2

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

drivers/net/wireless/marvell/mwifiex/cmdevt.c

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,8 +1581,21 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv,
15811581
adapter->fw_api_ver =
15821582
api_rev->major_ver;
15831583
mwifiex_dbg(adapter, INFO,
1584-
"Firmware api version %d\n",
1585-
adapter->fw_api_ver);
1584+
"Firmware api version %d.%d\n",
1585+
adapter->fw_api_ver,
1586+
api_rev->minor_ver);
1587+
break;
1588+
case UAP_FW_API_VER_ID:
1589+
mwifiex_dbg(adapter, INFO,
1590+
"uAP api version %d.%d\n",
1591+
api_rev->major_ver,
1592+
api_rev->minor_ver);
1593+
break;
1594+
case CHANRPT_API_VER_ID:
1595+
mwifiex_dbg(adapter, INFO,
1596+
"channel report api version %d.%d\n",
1597+
api_rev->major_ver,
1598+
api_rev->minor_ver);
15861599
break;
15871600
default:
15881601
mwifiex_dbg(adapter, FATAL,

drivers/net/wireless/marvell/mwifiex/fw.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,8 @@ struct host_cmd_ds_802_11_ps_mode_enh {
10521052
enum API_VER_ID {
10531053
KEY_API_VER_ID = 1,
10541054
FW_API_VER_ID = 2,
1055+
UAP_FW_API_VER_ID = 3,
1056+
CHANRPT_API_VER_ID = 4,
10551057
};
10561058

10571059
struct hw_spec_api_rev {

0 commit comments

Comments
 (0)