]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: Add option to report the bss entry in connect result
authorKanchanapally, Vidyullatha <vkanchan@qti.qualcomm.com>
Mon, 11 Apr 2016 09:46:01 +0000 (15:16 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 26 Apr 2016 07:40:12 +0000 (09:40 +0200)
commit5b98419742075324e37d45aa27fa0904e9f9d135
tree299d884abfafbe1b4b8f37b55dfff6861932ce92
parent1d992b4269f59d85602fbd6569e5c4d693109723
cfg80211: Add option to report the bss entry in connect result

Since cfg80211 maintains separate BSS table entries for APs if the same
BSSID, SSID pair is seen on multiple channels, it is possible that it
can map the current_bss to a BSS entry on the wrong channel. This
current_bss will not get flushed unless disconnected and cfg80211
reports a wrong channel as the associated channel.

Fix this by introducing a new cfg80211_connect_bss() function which is
similar to cfg80211_connect_result(), but it includes an additional
parameter: the bss the STA is connected to. This allows drivers to
provide the exact bss entry that matches the BSS to which the connection
was completed.

Reviewed-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Vidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Signed-off-by: Sunil Dutt <usdutt@qti.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Documentation/DocBook/80211.tmpl
include/net/cfg80211.h
net/wireless/core.h
net/wireless/sme.c
net/wireless/util.c