diff options
author | Arend van Spriel <arend@broadcom.com> | 2012-11-05 09:29:09 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-05 09:35:32 -0500 |
commit | ba350fbc53b5798104b3fc245bb3c3461a4ef8dc (patch) | |
tree | c619853371660dcc64dfdc1cdec5828ce6efc611 | |
parent | 8655201726b7707fa777582c30979fdd53e815a9 (diff) |
wireless: add peer-to-peer related definitions
The Peer-to-Peer IE is vendor-specific IE identified by WiFi Alliance
OUI and specific P2P OUI type. The payload of this IE consists of
so-called P2P attributes. This patch adds definitions for processing
these attributes.
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | include/linux/ieee80211.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 85764a90073..4530d496095 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h | |||
@@ -905,6 +905,38 @@ struct ieee80211_tdls_data { | |||
905 | } u; | 905 | } u; |
906 | } __packed; | 906 | } __packed; |
907 | 907 | ||
908 | /* | ||
909 | * Peer-to-Peer IE attribute related definitions. | ||
910 | */ | ||
911 | /** | ||
912 | * enum ieee80211_p2p_attr_id - identifies type of peer-to-peer attribute. | ||
913 | */ | ||
914 | enum ieee80211_p2p_attr_id { | ||
915 | IEEE80211_P2P_ATTR_STATUS = 0, | ||
916 | IEEE80211_P2P_ATTR_MINOR_REASON, | ||
917 | IEEE80211_P2P_ATTR_CAPABILITY, | ||
918 | IEEE80211_P2P_ATTR_DEVICE_ID, | ||
919 | IEEE80211_P2P_ATTR_GO_INTENT, | ||
920 | IEEE80211_P2P_ATTR_GO_CONFIG_TIMEOUT, | ||
921 | IEEE80211_P2P_ATTR_LISTEN_CHANNEL, | ||
922 | IEEE80211_P2P_ATTR_GROUP_BSSID, | ||
923 | IEEE80211_P2P_ATTR_EXT_LISTEN_TIMING, | ||
924 | IEEE80211_P2P_ATTR_INTENDED_IFACE_ADDR, | ||
925 | IEEE80211_P2P_ATTR_MANAGABILITY, | ||
926 | IEEE80211_P2P_ATTR_CHANNEL_LIST, | ||
927 | IEEE80211_P2P_ATTR_ABSENCE_NOTICE, | ||
928 | IEEE80211_P2P_ATTR_DEVICE_INFO, | ||
929 | IEEE80211_P2P_ATTR_GROUP_INFO, | ||
930 | IEEE80211_P2P_ATTR_GROUP_ID, | ||
931 | IEEE80211_P2P_ATTR_INTERFACE, | ||
932 | IEEE80211_P2P_ATTR_OPER_CHANNEL, | ||
933 | IEEE80211_P2P_ATTR_INVITE_FLAGS, | ||
934 | /* 19 - 220: Reserved */ | ||
935 | IEEE80211_P2P_ATTR_VENDOR_SPECIFIC = 221, | ||
936 | |||
937 | IEEE80211_P2P_ATTR_MAX | ||
938 | }; | ||
939 | |||
908 | /** | 940 | /** |
909 | * struct ieee80211_bar - HT Block Ack Request | 941 | * struct ieee80211_bar - HT Block Ack Request |
910 | * | 942 | * |