]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: Report connected BSS with cfg80211_connect_bss()
authorYen-lin Lai <yenlinlai@chromium.org>
Mon, 1 Feb 2021 07:06:49 +0000 (15:06 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Feb 2021 11:17:13 +0000 (13:17 +0200)
commit58e738b739fef570078078b19de7f3bc7965d00b
tree9f655ec448c2c060a6159174f9123d1e62461c25
parent676a5edfaccf21282c8f92c3f1f828a121804de7
mwifiex: Report connected BSS with cfg80211_connect_bss()

When a network is moved or reconfigured on the different channel, there
can be multiple BSSes with the same BSSID and SSID in scan result
before the old one expires. Then, it can cause cfg80211_connect_result
to map current_bss to a bss with the wrong channel.

Let mwifiex_cfg80211_assoc return the selected BSS and then the caller
can report it cfg80211_connect_bss.

Signed-off-by: Yen-lin Lai <yenlinlai@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210201070649.1667209-1-yenlinlai@chromium.org
drivers/net/wireless/marvell/mwifiex/cfg80211.c