On Tue, 2022-05-24 at 14:34 +0300, viktor.barna@xxxxxxxxxx wrote: > > +#define PPE_0US 0 > +#define PPE_8US 1 > +#define PPE_16US 2 > + > +/* > + * Extended Channel Switching capability to be set in the 1st byte of > + * the @WLAN_EID_EXT_CAPABILITY information element > + */ > +#define WLAN_EXT_CAPA1_2040_BSS_COEX_MGMT_ENABLED BIT(0) > + > +/* WLAN_EID_BSS_COEX_2040 = 72 */ > +/* 802.11n 7.3.2.61 */ > +struct ieee80211_bss_coex_20_40_ie { > + u8 element_id; > + u8 len; > + u8 info_req : 1; > + /* Inter-BSS set 1 when prohibits a receiving BSS from operating as a 20/40 Mhz BSS */ > + u8 intolerant40 : 1; > + /* Intra-BSS set 1 when prohibits a receiving AP from operating its BSS as a 20/40MHz BSS */ > + u8 bss20_width_req : 1; > + u8 obss_scan_exemp_req : 1; > + u8 obss_scan_exemp_grant : 1; > + u8 rsv : 3; > +} __packed; You should add these kinds of things to ieee80211.h, but of course they should be endian safe and not use bitfields. > +/* WLAN_EID_BSS_INTOLERANT_CHL_REPORT = 73 */ > +/*802.11n 7.3.2.59 */ > +struct ieee80211_bss_intolerant_chl_report_ie { > + u8 element_id; > + u8 len; > + u8 regulatory_class; > + u8 ch_list[0]; use [] not [0] > +} __packed; > + > +/* Union options that are not included in 'struct ieee80211_mgmt' */ just add them johannes