]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Update drv->ssid on connect/associate event based on BSS data
authorNingyuan Wang <nywang@google.com>
Mon, 24 Oct 2016 17:59:52 +0000 (10:59 -0700)
committerJouni Malinen <j@w1.fi>
Mon, 5 Dec 2016 10:08:46 +0000 (12:08 +0200)
commited0a4ddc22526361a138c6b145561fcaac24e2a5
tree8f406bd543c8ff9a43fd549ef33131bb3d5dae1d
parent9f346fadc8aaeeac44ebefbae7e97f2035b9ff22
nl80211: Update drv->ssid on connect/associate event based on BSS data

On a connect nl80211 event, wpa_supplicant uses
wpa_driver_nl80211_get_ssid() to fetch the current associated SSID to
compare to existing configurations. However,
wpa_driver_nl80211_get_ssid() uses drv->ssid, which is a cached value.
It is set when we explicitly initial a connect request using
wpa_supplicant. If the association was initiated outside of
wpa_supplicant, we need another way to populate drv->ssid. This commit
sets drv->ssid based on cfg80211 BSS information on connect/associate
nl80211 events.

Signed-off-by: Ningyuan Wang <nywang@google.com>
src/drivers/driver_nl80211.c
src/drivers/driver_nl80211.h
src/drivers/driver_nl80211_event.c