Skip to content

Commit

Permalink
wifi: ieee80211: add UL-bandwidth definition of trigger frame
Browse files Browse the repository at this point in the history
Define UL-bandwidth values of trigger frame according to 802.11 std.

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://lore.kernel.org/r/20230925080902.51449-2-pkshih@realtek.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Po-Hao Huang authored and Johannes Berg committed Sep 25, 2023
1 parent c513228 commit 823a025
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/linux/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,13 @@ static inline u16 ieee80211_sn_sub(u16 sn1, u16 sn2)
#define IEEE80211_TRIGGER_TYPE_BQRP 0x6
#define IEEE80211_TRIGGER_TYPE_NFRP 0x7

/* UL-bandwidth within common_info of trigger frame */
#define IEEE80211_TRIGGER_ULBW_MASK 0xc0000
#define IEEE80211_TRIGGER_ULBW_20MHZ 0x0
#define IEEE80211_TRIGGER_ULBW_40MHZ 0x1
#define IEEE80211_TRIGGER_ULBW_80MHZ 0x2
#define IEEE80211_TRIGGER_ULBW_160_80P80MHZ 0x3

struct ieee80211_hdr {
__le16 frame_control;
__le16 duration_id;
Expand Down

0 comments on commit 823a025

Please sign in to comment.