]> 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)
commit3e68c51c299faee7e05bd0f10897dab4dd5405f9
tree9f655ec448c2c060a6159174f9123d1e62461c25
parent1dffdbe771409a8e265e52836da3aa0d61734c5a
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