Skip to content

Commit

Permalink
mac80211: add uapsd_queues and max_sp params fields
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eliad Peller authored and John W. Linville committed Aug 26, 2011
1 parent c75786c commit 9533b4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/net/mac80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,8 @@ struct ieee80211_sta {
u16 aid;
struct ieee80211_sta_ht_cap ht_cap;
bool wme;
u8 uapsd_queues;
u8 max_sp;

/* must be last */
u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *))));
Expand Down
3 changes: 3 additions & 0 deletions net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,9 @@ static void sta_apply_parameters(struct ieee80211_local *local,
}
spin_unlock_irqrestore(&sta->flaglock, flags);

sta->sta.uapsd_queues = params->uapsd_queues;
sta->sta.max_sp = params->max_sp;

/*
* cfg80211 validates this (1-2007) and allows setting the AID
* only when creating a new station entry
Expand Down

0 comments on commit 9533b4a

Please sign in to comment.