Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: ieee80211: add more NAN definitions

These will be needed to implement NAN synchronization in mac80211_hwsim.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260326121156.ebb52db4c1eb.Ie8142cf92fc8c97c744a7c8b0a94ce3da6ff75ec@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Benjamin Berg and committed by
Johannes Berg
8ea6b92f 7f0de94e

+38
+37
include/linux/ieee80211-nan.h
··· 37 37 #define NAN_DEV_CAPA_NDPE_SUPPORTED 0x08 38 38 #define NAN_DEV_CAPA_S3_SUPPORTED 0x10 39 39 40 + /* NAN attributes, as defined in Wi-Fi Aware (TM) specification 4.0 Table 42 */ 41 + #define NAN_ATTR_MASTER_INDICATION 0x00 42 + #define NAN_ATTR_CLUSTER_INFO 0x01 43 + 44 + struct ieee80211_nan_attr { 45 + u8 attr; 46 + __le16 length; 47 + u8 data[]; 48 + } __packed; 49 + 50 + struct ieee80211_nan_master_indication { 51 + u8 master_pref; 52 + u8 random_factor; 53 + } __packed; 54 + 55 + struct ieee80211_nan_anchor_master_info { 56 + union { 57 + __le64 master_rank; 58 + struct { 59 + u8 master_addr[ETH_ALEN]; 60 + u8 random_factor; 61 + u8 master_pref; 62 + } __packed; 63 + } __packed; 64 + u8 hop_count; 65 + __le32 ambtt; 66 + } __packed; 67 + 68 + #define for_each_nan_attr(_attr, _data, _datalen) \ 69 + for (_attr = (const struct ieee80211_nan_attr *)(_data); \ 70 + (const u8 *)(_data) + (_datalen) - (const u8 *)_attr >= \ 71 + (int)sizeof(*_attr) && \ 72 + (const u8 *)(_data) + (_datalen) - (const u8 *)_attr >= \ 73 + (int)sizeof(*_attr) + le16_to_cpu(_attr->length); \ 74 + _attr = (const struct ieee80211_nan_attr *) \ 75 + (_attr->data + le16_to_cpu(_attr->length))) 76 + 40 77 #endif /* LINUX_IEEE80211_NAN_H */
+1
include/linux/ieee80211.h
··· 2240 2240 2241 2241 #define WLAN_OUI_WFA 0x506f9a 2242 2242 #define WLAN_OUI_TYPE_WFA_P2P 9 2243 + #define WLAN_OUI_TYPE_WFA_NAN 0x13 2243 2244 #define WLAN_OUI_TYPE_WFA_DPP 0x1A 2244 2245 #define WLAN_OUI_MICROSOFT 0x0050f2 2245 2246 #define WLAN_OUI_TYPE_MICROSOFT_WPA 1