aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYogesh Ashok Powar <yogeshp@marvell.com>2012-01-29 10:28:35 (GMT)
committerJouni Malinen <j@w1.fi>2012-01-29 10:34:32 (GMT)
commita7a6af4cbab1e1667ecf15e5aedb00f330a63839 (patch)
treeb08c34242f628e9d11d054bcd7d8a6542b96aa5c /src
parentfa7187bfde9bed2bbf25c73337c787ea75b5dfc7 (diff)
downloadhostap-a7a6af4cbab1e1667ecf15e5aedb00f330a63839.zip
hostap-a7a6af4cbab1e1667ecf15e5aedb00f330a63839.tar.gz
hostap-a7a6af4cbab1e1667ecf15e5aedb00f330a63839.tar.bz2
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>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 71465bc..c9d9d52 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -7808,6 +7808,7 @@ static int wpa_driver_nl80211_if_add(void *priv, enum wpa_driver_if_type type,
new_bss->ifindex = ifidx;
new_bss->drv = drv;
new_bss->next = drv->first_bss.next;
+ new_bss->freq = drv->first_bss.freq;
drv->first_bss.next = new_bss;
if (drv_priv)
*drv_priv = new_bss;