Add support for Time Advertisement
This adds preliminary support for IEEE 802.11v Time Advertisement mechanism with UTC TSF offset.
This commit is contained in:
parent
96b2cb226a
commit
39b97072b2
11 changed files with 156 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue