diff options
author | Arik Nemtsov <arik@wizery.com> | 2012-09-07 00:22:40 +0300 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2012-09-09 14:05:14 -0700 |
commit | 2d266067893660e2a4b5f166a909ee8638a5c96a (patch) | |
tree | 4a5a1abf6099c6a77111e76ec52361019fb45b61 | |
parent | 5c44edb00c9384534a1b50981071874436aaecd5 (diff) | |
download | external_wpa_supplicant_8-2d266067893660e2a4b5f166a909ee8638a5c96a.zip external_wpa_supplicant_8-2d266067893660e2a4b5f166a909ee8638a5c96a.tar.gz external_wpa_supplicant_8-2d266067893660e2a4b5f166a909ee8638a5c96a.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 5 GHz. 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. This fixes a bug introduced in
commit e5693c4775bae65faa960f80889f98b0a6cb2e1c.
Signed-hostap: Arik Nemtsov <arik@wizery.com>
-rw-r--r-- | src/ap/beacon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/beacon.c b/src/ap/beacon.c index 2f813f3..f761bf5 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -668,7 +668,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 = hapd->conf->ssid.ssid; params.ssid_len = hapd->conf->ssid.ssid_len; params.pairwise_ciphers = hapd->conf->rsn_pairwise ? |