Skip to content

Commit 9533b4a

Browse files
elplinvjw
authored andcommitted
mac80211: add uapsd_queues and max_sp params fields
Add uapsd_queues and max_sp fields to ieee80211_sta. These fields might be needed by low-level drivers in order to configure the AP. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent c75786c commit 9533b4a

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎include/net/mac80211.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,8 @@ struct ieee80211_sta {
954954
u16 aid;
955955
struct ieee80211_sta_ht_cap ht_cap;
956956
bool wme;
957+
u8 uapsd_queues;
958+
u8 max_sp;
957959

958960
/* must be last */
959961
u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *))));

‎net/mac80211/cfg.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,9 @@ static void sta_apply_parameters(struct ieee80211_local *local,
697697
}
698698
spin_unlock_irqrestore(&sta->flaglock, flags);
699699

700+
sta->sta.uapsd_queues = params->uapsd_queues;
701+
sta->sta.max_sp = params->max_sp;
702+
700703
/*
701704
* cfg80211 validates this (1-2007) and allows setting the AID
702705
* only when creating a new station entry

0 commit comments

Comments
 (0)