]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Update assoc_freq and bss->freq based on real association info
authorJouni Malinen <j@w1.fi>
Sun, 14 Apr 2019 09:37:41 +0000 (12:37 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 14 Apr 2019 09:40:45 +0000 (12:40 +0300)
commitc5fff8bbd2132a7148c97aa7f4abf81859816cc6
tree528efb078f657f9457583d3c1cf451ba40f26398
parent091c2277147eed282d828f13776b9eef371b66b8
nl80211: Update assoc_freq and bss->freq based on real association info

Move event.assoc_info.freq selection to be after the
nl80211_get_assoc_ssid() call so that the current cfg80211 information
on the operating channel can be used should anything unexpected have
happened between the association request and completion of association.
Furthermore, update bss->freq based on assoc_freq to make that
information a bit more useful for station mode. It was already updated
after channel switches during association, but not at the beginning of
association.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211_event.c