diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2011-10-18 00:24:16 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-10-18 00:24:16 +0300 |
commit | 39b97072b2a45551e6f20e6251eeaca269f22a2d (patch) | |
tree | c48adab1555d67a90d93cee938528065447fe82e /src/ap/beacon.c | |
parent | 96b2cb226a79a6e9ce565b0939ee76a26e497717 (diff) | |
download | external_wpa_supplicant_8_ti-39b97072b2a45551e6f20e6251eeaca269f22a2d.zip external_wpa_supplicant_8_ti-39b97072b2a45551e6f20e6251eeaca269f22a2d.tar.gz external_wpa_supplicant_8_ti-39b97072b2a45551e6f20e6251eeaca269f22a2d.tar.bz2 |
Add support for Time Advertisement
This adds preliminary support for IEEE 802.11v Time Advertisement
mechanism with UTC TSF offset.
Diffstat (limited to 'src/ap/beacon.c')
-rw-r--r-- | src/ap/beacon.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ap/beacon.c b/src/ap/beacon.c index 696d5e4..831506c 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -357,6 +357,9 @@ void handle_probe_req(struct hostapd_data *hapd, pos = hostapd_eid_ext_capab(hapd, pos); + pos = hostapd_eid_time_adv(hapd, pos); + pos = hostapd_eid_time_zone(hapd, pos); + pos = hostapd_eid_interworking(hapd, pos); pos = hostapd_eid_adv_proto(hapd, pos); pos = hostapd_eid_roaming_consortium(hapd, pos); @@ -494,6 +497,12 @@ void ieee802_11_set_beacon(struct hostapd_data *hapd) tailpos = hostapd_eid_ext_capab(hapd, tailpos); + /* + * TODO: Time Advertisement element should only be included in some + * DTIM Beacon frames. + */ + tailpos = hostapd_eid_time_adv(hapd, tailpos); + tailpos = hostapd_eid_interworking(hapd, tailpos); tailpos = hostapd_eid_adv_proto(hapd, tailpos); tailpos = hostapd_eid_roaming_consortium(hapd, tailpos); |