diff options
| author | 2026-08-31 15:52:26 +0800 | |
|---|---|---|
| committer | 2026-09-29 11:54:40 +0800 | |
| commit | f833415e49981bee131841e805da3f24b90a7524 (patch) | |
| tree | c8a5819a11d32f6fa7a0a780c13eda400203eff6 /scripts/Makefile.thinlto | |
| parent | wifi: nxpwifi: Limit channel width based on firmware capability (diff) | |
wifi: nxpwifi: fix return value check in change_vif_to_sta/ap
nxpwifi_change_vif_to_sta() and nxpwifi_change_vif_to_ap() both call
nxpwifi_set_bss_mode() without storing the return value, then check
'if (ret)' which tests the stale value from the previous call. The
'if (ret) goto done' is therefore dead code, and errors from
nxpwifi_set_bss_mode() are silently ignored.
Fix this by assigning the return value to ret, so the existing error
path works correctly.
Fixes: 73b01e57ed3e ("wifi: nxp: add nxpwifi driver for IW61x")
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/linux-wireless/anwqp-LuExbRshYu@stanley.mountain/
Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Jeff Chen <jeff.chen_1@nxp.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
