]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Derive frequency for BSSes other than the first
authorYogesh Ashok Powar <yogeshp@marvell.com>
Sun, 29 Jan 2012 10:28:35 +0000 (12:28 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Jan 2012 10:34:32 +0000 (12:34 +0200)
commita7a6af4cbab1e1667ecf15e5aedb00f330a63839
treeb08c34242f628e9d11d054bcd7d8a6542b96aa5c
parentfa7187bfde9bed2bbf25c73337c787ea75b5dfc7
nl80211: Derive frequency for BSSes other than the first

Commit e4fb21676972952b5434e8c2a049e239d457abe6 moved frequency
storage from driver struct to bss struct and is assigned in
wpa_driver_nl80211_set_freq. As this wpa_driver_nl80211_set_freq is
triggered only on the first_bss, bss->freq for other BSSes is never
being set to the correct value. This sends MLME frames on frequency zero
(initialized value of freq) for BSSes other than the first.

To fix this derive frequency value from first_bss.

Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
src/drivers/driver_nl80211.c