From: Eliad Peller Date: Thu, 15 Sep 2011 08:53:01 +0000 (+0300) Subject: cfg80211: add cfg80211_find_vendor_ie() function X-Git-Tag: 1.9.5~22 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=58801a3b4a1d0342c8bd57ddebe1f9580059808c;p=carl9170fw.git cfg80211: add cfg80211_find_vendor_ie() function Add function to find vendor-specific ie (along with vendor-specific ie struct definition and P2P OUI values) Signed-off-by: Eliad Peller Reviewed-by: Johannes Berg Signed-off-by: John W. Linville Signed-off-by: Christian Lamparter --- diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index a0846f4..eb3ded8 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -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 */