cfg80211: add cfg80211_find_vendor_ie() function
authorEliad Peller <eliad@wizery.com>
Thu, 15 Sep 2011 08:53:01 +0000 (11:53 +0300)
committerChristian Lamparter <chunkeey@googlemail.com>
Wed, 23 Nov 2011 21:02:33 +0000 (22:02 +0100)
Add function to find vendor-specific ie (along with
vendor-specific ie struct definition and P2P OUI values)

Signed-off-by: Eliad Peller <eliad@wizery.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
include/linux/ieee80211.h

index a0846f4f599d3ee55465fd4e364e9e3d879f8564..eb3ded8046442c9d2ea9707398fc5e30629a6028 100644 (file)
@@ -790,6 +790,13 @@ struct ieee80211_mmie {
        u8 mic[8];
 } __attribute__ ((packed));
 
+struct ieee80211_vendor_ie {
+       u8 element_id;
+       u8 len;
+       u8 oui[3];
+       u8 oui_type;
+} __packed;
+
 /* Control frames */
 struct ieee80211_rts {
        __le16 frame_control;
@@ -1500,6 +1507,9 @@ enum ieee80211_sa_query_action {
 
 #define WLAN_PMKID_LEN                 16
 
+#define WLAN_OUI_WFA                   0x506f9a
+#define WLAN_OUI_TYPE_WFA_P2P          9
+
 /*
  * WMM/802.11e Tspec Element
  */