aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-09-03 10:50:17 +0300
committerArik Nemtsov <arik@wizery.com>2012-09-04 16:00:29 +0300
commita14ea0109e5cebce07126fb8b35ffc55ad25c1b0 (patch)
tree2b4bc7b5db7e77e4333332a5563f6ffcfb4f8ead /src
parent28d0719ff31de776031f73a13bfe804371588dbe (diff)
downloadexternal_wpa_supplicant_8_ti-a14ea0109e5cebce07126fb8b35ffc55ad25c1b0.zip
external_wpa_supplicant_8_ti-a14ea0109e5cebce07126fb8b35ffc55ad25c1b0.tar.gz
external_wpa_supplicant_8_ti-a14ea0109e5cebce07126fb8b35ffc55ad25c1b0.tar.bz2
AP: configure basic rates from iface and not conf
The conf doesn't contain any basic rates in some cases. Most notably, when starting a p2p GO in 5Ghz. Use the iface rates which are initialized in hostapd_prepare_rates() to the conf rates or set to default values if no conf values exist. Signed-hostap: Arik Nemtsov <arik@wizery.com>
Diffstat (limited to 'src')
-rw-r--r--src/ap/beacon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/beacon.c b/src/ap/beacon.c
index 0f29ccd..a1bb067 100644
--- a/src/ap/beacon.c
+++ b/src/ap/beacon.c
@@ -643,7 +643,7 @@ void ieee802_11_set_beacon(struct hostapd_data *hapd)
params.proberesp_len = resp_len;
params.dtim_period = hapd->conf->dtim_period;
params.beacon_int = hapd->iconf->beacon_int;
- params.basic_rates = hapd->iconf->basic_rates;
+ params.basic_rates = hapd->iface->basic_rates;
params.ssid = (u8 *) hapd->conf->ssid.ssid;
params.ssid_len = hapd->conf->ssid.ssid_len;
params.pairwise_ciphers = hapd->conf->rsn_pairwise ?