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)
commitb7fd26c913f1f639b9d5bbf69266751f84a2a372
tree9f655ec448c2c060a6159174f9123d1e62461c25
parent199276b9bcefdffad776287de092160084caf677
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