aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ieee80211.h
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@gmail.com>2013-03-21 10:47:54 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-03-22 06:33:12 -0400
commit19dde0bd71e3dffb03ddc509019e22250f4e20c0 (patch)
tree18e9660ff014d64b47b6c9b65deccc0148e3d7cf /include/linux/ieee80211.h
parent59c1ec2b7884a044967883d9e6169a2cbb4715f3 (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.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h
index 4cf0c9e4dd99..d10b5bba3268 100644
--- a/include/linux/ieee80211.h
+++ b/include/linux/ieee80211.h
@@ -1027,6 +1027,26 @@ enum ieee80211_p2p_attr_id {
1027 IEEE80211_P2P_ATTR_MAX 1027 IEEE80211_P2P_ATTR_MAX
1028}; 1028};
1029 1029
1030/* Notice of Absence attribute - described in P2P spec 4.1.14 */
1031/* Typical max value used here */
1032#define IEEE80211_P2P_NOA_DESC_MAX 4
1033
1034struct ieee80211_p2p_noa_desc {
1035 u8 count;
1036 __le32 duration;
1037 __le32 interval;
1038 __le32 start_time;
1039} __packed;
1040
1041struct ieee80211_p2p_noa_attr {
1042 u8 index;
1043 u8 oppps_ctwindow;
1044 struct ieee80211_p2p_noa_desc desc[IEEE80211_P2P_NOA_DESC_MAX];
1045} __packed;
1046
1047#define IEEE80211_P2P_OPPPS_ENABLE_BIT BIT(7)
1048#define IEEE80211_P2P_OPPPS_CTWINDOW_MASK 0x7F
1049
1030/** 1050/**
1031 * struct ieee80211_bar - HT Block Ack Request 1051 * struct ieee80211_bar - HT Block Ack Request
1032 * 1052 *