Commit e442e82
wifi: ath12k: unassign arvif on scan vdev create failure
[ Upstream commit e705150 ]
During scan and remain-on-channel requests, a scan link vif (arvif) is
assigned and a temporary vdev is created. If vdev creation fails, the
assigned arvif is left attached until the virtual interface is removed,
leaving a stale link in ahvif.
Fix this by freeing the stale arvif and resetting the corresponding link in
ahvif by calling ath12k_mac_unassign_link_vif() when vdev creation fails.
While at it, propagate the actual error code from ath12k_mac_vdev_create()
instead of returning -EINVAL in ath12k_mac_initiate_hw_scan().
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.4.1-00199-QCAHKSWPL_SILICONZ-1
Fixes: 477cabf ("wifi: ath12k: modify link arvif creation and removal for MLO")
Signed-off-by: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
Link: https://patch.msgid.link/20251026182254.1399650-3-rameshkumar.sundaram@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 41b6231 commit e442e82
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5059 | 5059 | | |
5060 | 5060 | | |
5061 | 5061 | | |
5062 | | - | |
| 5062 | + | |
| 5063 | + | |
5063 | 5064 | | |
5064 | 5065 | | |
5065 | 5066 | | |
| |||
12895 | 12896 | | |
12896 | 12897 | | |
12897 | 12898 | | |
| 12899 | + | |
12898 | 12900 | | |
12899 | 12901 | | |
12900 | 12902 | | |
| |||
0 commit comments