Skip to content

Commit 50181fe

Browse files
benzeajmberg-intel
authored andcommitted
wifi: ieee80211: add structs for TBTT information access
The TBTT information can have various lengths with different elements thare are present. Add definitions for the two types that we are interested in (i.e. the ones that contain the BSSID). Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Signed-off-by: Gregory Greenman <gregory.greenman@intel.com> Link: https://lore.kernel.org/r/20230618214436.2a6f8766a3ec.Ic962e28492212cc8ee1eb602b8f07a4ea172fc4a@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent eb14260 commit 50181fe

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

include/linux/ieee80211.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4523,6 +4523,28 @@ struct ieee80211_rnr_mld_params {
45234523
#define IEEE80211_RNR_MLD_PARAMS_UPDATES_INCLUDED 0x1000
45244524
#define IEEE80211_RNR_MLD_PARAMS_DISABLED_LINK 0x2000
45254525

4526+
/* Format of the TBTT information element if it has 7, 8 or 9 bytes */
4527+
struct ieee80211_tbtt_info_7_8_9 {
4528+
u8 tbtt_offset;
4529+
u8 bssid[ETH_ALEN];
4530+
4531+
/* The following element is optional, structure may not grow */
4532+
u8 bss_params;
4533+
u8 psd_20;
4534+
} __packed;
4535+
4536+
/* Format of the TBTT information element if it has >= 11 bytes */
4537+
struct ieee80211_tbtt_info_ge_11 {
4538+
u8 tbtt_offset;
4539+
u8 bssid[ETH_ALEN];
4540+
__le32 short_ssid;
4541+
4542+
/* The following elements are optional, structure may grow */
4543+
u8 bss_params;
4544+
u8 psd_20;
4545+
struct ieee80211_rnr_mld_params mld_params;
4546+
} __packed;
4547+
45264548
/* multi-link device */
45274549
#define IEEE80211_MLD_MAX_NUM_LINKS 15
45284550

0 commit comments

Comments
 (0)