aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2012-06-06 16:33:00 +0300
committerArik Nemtsov <arik@wizery.com>2012-07-30 17:48:05 +0300
commit6ef9363d1bd503e622106a5250bb58619a709b13 (patch)
tree7a15358ff0d7c4091b9f90884d5343bd42beb918 /src/drivers
parent45f50961399db6ab2c6349b46feb26fcfa41a97c (diff)
downloadexternal_wpa_supplicant_8_ti-6ef9363d1bd503e622106a5250bb58619a709b13.zip
external_wpa_supplicant_8_ti-6ef9363d1bd503e622106a5250bb58619a709b13.tar.gz
external_wpa_supplicant_8_ti-6ef9363d1bd503e622106a5250bb58619a709b13.tar.bz2
driver_nl80211: set ap params before beaconing
We currently set some of the bss params (e.g. basic rates) only after the beacon was set, resulting in beacons being sent with invalid params (e.g. wrong rate). Fix it by setting the ap params before setting the beacon. Signed-hostap: Eliad Peller <eliad@wizery.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/driver_nl80211.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index a30f2e3..0844350 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5497,15 +5497,16 @@ static int wpa_driver_nl80211_set_ap(void *priv,
params->ap_max_inactivity);
}
+ nl80211_set_bss(bss, params->cts_protect, params->preamble,
+ params->short_slot_time, params->ht_opmode,
+ params->isolate, params->basic_rates);
+
ret = send_and_recv_msgs(drv, msg, NULL, NULL);
if (ret) {
wpa_printf(MSG_DEBUG, "nl80211: Beacon set failed: %d (%s)",
ret, strerror(-ret));
} else {
bss->beacon_set = 1;
- nl80211_set_bss(bss, params->cts_protect, params->preamble,
- params->short_slot_time, params->ht_opmode,
- params->isolate, params->basic_rates);
}
return ret;
nla_put_failure: