Commit 86cffb2c authored by Pali Rohár's avatar Pali Rohár Committed by Kalle Valo

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: default avatarPali Rohár <pali@kernel.org>
Acked-by: default avatarGanapathi Bhat <ganapathi.bhat@nxp.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200521123444.28957-1-pali@kernel.org
parent 11e7a919
...@@ -1581,8 +1581,21 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv, ...@@ -1581,8 +1581,21 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv,
adapter->fw_api_ver = adapter->fw_api_ver =
api_rev->major_ver; api_rev->major_ver;
mwifiex_dbg(adapter, INFO, mwifiex_dbg(adapter, INFO,
"Firmware api version %d\n", "Firmware api version %d.%d\n",
adapter->fw_api_ver); adapter->fw_api_ver,
api_rev->minor_ver);
break;
case UAP_FW_API_VER_ID:
mwifiex_dbg(adapter, INFO,
"uAP api version %d.%d\n",
api_rev->major_ver,
api_rev->minor_ver);
break;
case CHANRPT_API_VER_ID:
mwifiex_dbg(adapter, INFO,
"channel report api version %d.%d\n",
api_rev->major_ver,
api_rev->minor_ver);
break; break;
default: default:
mwifiex_dbg(adapter, FATAL, mwifiex_dbg(adapter, FATAL,
......
...@@ -1052,6 +1052,8 @@ struct host_cmd_ds_802_11_ps_mode_enh { ...@@ -1052,6 +1052,8 @@ struct host_cmd_ds_802_11_ps_mode_enh {
enum API_VER_ID { enum API_VER_ID {
KEY_API_VER_ID = 1, KEY_API_VER_ID = 1,
FW_API_VER_ID = 2, FW_API_VER_ID = 2,
UAP_FW_API_VER_ID = 3,
CHANRPT_API_VER_ID = 4,
}; };
struct hw_spec_api_rev { struct hw_spec_api_rev {
......
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