aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorEn-Wei Wu <[email protected]>2024-07-05 10:37:56 +0800
committerJohannes Berg <[email protected]>2024-07-08 18:28:47 +0200
commitb5d14b0c6716fad7f0c94ac6e1d6f60a49f985c7 (patch)
tree93537341965b20ca7c143dc904e7255e56fd5104 /drivers/usb/cdns3/cdns3-debug.h
parent574e609c4e6a0843a9ed53de79e00da8fb3e7437 (diff)
wifi: virt_wifi: avoid reporting connection success with wrong SSID
When user issues a connection with a different SSID than the one virt_wifi has advertised, the __cfg80211_connect_result() will trigger the warning: WARN_ON(bss_not_found). The issue is because the connection code in virt_wifi does not check the SSID from user space (it only checks the BSSID), and virt_wifi will call cfg80211_connect_result() with WLAN_STATUS_SUCCESS even if the SSID is different from the one virt_wifi has advertised. Eventually cfg80211 won't be able to find the cfg80211_bss and generate the warning. Fixed it by checking the SSID (from user space) in the connection code. Fixes: c7cdba31ed8b ("mac80211-next: rtnetlink wifi simulation device") Reported-by: [email protected] Signed-off-by: En-Wei Wu <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions