Commit 7715d795 authored by Lukas Wunner's avatar Lukas Wunner Committed by Kalle Valo

wifi: mwifiex: Support firmware hotfix version in GET_HW_SPEC responses

Support the firmware hotfix version in GET_HW_SPEC responses to avoid an
irritating "Unknown api_id: 5" message on probe.

Based on this commit in NXP's GPLv2-licensed out-of-tree driver:
https://github.com/nxp-imx/mwifiex/commit/27fd8ecca504Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
Cc: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/111c7ee895f12d951e95a2edcd06d87ca26a7d0f.1674827105.git.lukas@wunner.de
parent bba047f1
...@@ -1607,6 +1607,11 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv, ...@@ -1607,6 +1607,11 @@ int mwifiex_ret_get_hw_spec(struct mwifiex_private *priv,
api_rev->major_ver, api_rev->major_ver,
api_rev->minor_ver); api_rev->minor_ver);
break; break;
case FW_HOTFIX_VER_ID:
mwifiex_dbg(adapter, INFO,
"Firmware hotfix version %d\n",
api_rev->major_ver);
break;
default: default:
mwifiex_dbg(adapter, FATAL, mwifiex_dbg(adapter, FATAL,
"Unknown api_id: %d\n", "Unknown api_id: %d\n",
......
...@@ -1048,6 +1048,7 @@ enum API_VER_ID { ...@@ -1048,6 +1048,7 @@ enum API_VER_ID {
FW_API_VER_ID = 2, FW_API_VER_ID = 2,
UAP_FW_API_VER_ID = 3, UAP_FW_API_VER_ID = 3,
CHANRPT_API_VER_ID = 4, CHANRPT_API_VER_ID = 4,
FW_HOTFIX_VER_ID = 5,
}; };
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