From 1a3216b0414a93a36aa9bbf154f8e323454f5ac4 Mon Sep 17 00:00:00 2001 From: adrian Date: Tue, 8 Nov 2011 04:00:24 +0000 Subject: Add 802.11h quiet time element support into net80211. This supports both station and hostap modes: * Station mode quiet time element support listens to quiet time IE's and modifies the local quiet time configuration as appropriate; * Hostap mode both obeys the locally configured quiet time period and includes it in beacon frames so stations also can obey as needed. Submitted by: Himali Patel Sponsored by: Sibridge Technologies --- sys/net80211/ieee80211.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sys/net80211/ieee80211.h') diff --git a/sys/net80211/ieee80211.h b/sys/net80211/ieee80211.h index 5d8d8fa..028afec 100644 --- a/sys/net80211/ieee80211.h +++ b/sys/net80211/ieee80211.h @@ -759,6 +759,18 @@ struct ieee80211_country_ie { /* * 802.11h Channel Switch Announcement (CSA). */ +struct ieee80211_quiet_ie { + uint8_t quiet_ie; /* IEEE80211_ELEMID_QUIET */ + uint8_t len; + uint8_t tbttcount; /* quiet start */ + uint8_t period; /* beacon intervals between quiets */ + uint16_t duration; /* TUs of each quiet*/ + uint16_t offset; /* TUs of from TBTT of quiet start */ +} __packed; + +/* + * 802.11h Channel Switch Announcement (CSA). + */ struct ieee80211_csa_ie { uint8_t csa_ie; /* IEEE80211_ELEMID_CHANSWITCHANN */ uint8_t csa_len; -- cgit v1.1