diff options
author | Janusz Dziedzic <janusz.dziedzic@gmail.com> | 2013-03-21 15:47:54 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-22 11:33:12 +0100 |
commit | 19dde0bd71e3dffb03ddc509019e22250f4e20c0 (patch) | |
tree | 18e9660ff014d64b47b6c9b65deccc0148e3d7cf /include/linux/ieee80211.h | |
parent | 59c1ec2b7884a044967883d9e6169a2cbb4715f3 (diff) |
cfg80211: add P2P Notice of Absence attribute
Add P2P Notice of Absence attribute structure.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/linux/ieee80211.h')
-rw-r--r-- | include/linux/ieee80211.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 4cf0c9e4dd9..d10b5bba326 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -1027,6 +1027,26 @@ enum ieee80211_p2p_attr_id { IEEE80211_P2P_ATTR_MAX }; +/* Notice of Absence attribute - described in P2P spec 4.1.14 */ +/* Typical max value used here */ +#define IEEE80211_P2P_NOA_DESC_MAX 4 + +struct ieee80211_p2p_noa_desc { + u8 count; + __le32 duration; + __le32 interval; + __le32 start_time; +} __packed; + +struct ieee80211_p2p_noa_attr { + u8 index; + u8 oppps_ctwindow; + struct ieee80211_p2p_noa_desc desc[IEEE80211_P2P_NOA_DESC_MAX]; +} __packed; + +#define IEEE80211_P2P_OPPPS_ENABLE_BIT BIT(7) +#define IEEE80211_P2P_OPPPS_CTWINDOW_MASK 0x7F + /** * struct ieee80211_bar - HT Block Ack Request * |