Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256105
b: refs/heads/master
c: 39df600
h: refs/heads/master
i:
  256103: 4ac76f1
v: v3
  • Loading branch information
Arik Nemtsov authored and John W. Linville committed Jun 29, 2011
1 parent 46c291e commit 3ec3603
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f01dce9474e9f09290707b523a134a9605845b00
refs/heads/master: 39df600aa6ac027b53c4ce3089cba57467a960df
2 changes: 2 additions & 0 deletions trunk/include/net/mac80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ enum set_key_cmd {
* @aid: AID we assigned to the station if we're an AP
* @supp_rates: Bitmap of supported rates (per band)
* @ht_cap: HT capabilities of this STA; restricted to our own TX capabilities
* @wme: indicates whether the STA supports WME. Only valid during AP-mode.
* @drv_priv: data area for driver use, will always be aligned to
* sizeof(void *), size is determined in hw information.
*/
Expand All @@ -941,6 +942,7 @@ struct ieee80211_sta {
u8 addr[ETH_ALEN];
u16 aid;
struct ieee80211_sta_ht_cap ht_cap;
bool wme;

/* must be last */
u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *))));
Expand Down
5 changes: 4 additions & 1 deletion trunk/net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,11 @@ static void sta_apply_parameters(struct ieee80211_local *local,

if (mask & BIT(NL80211_STA_FLAG_WME)) {
sta->flags &= ~WLAN_STA_WME;
if (set & BIT(NL80211_STA_FLAG_WME))
sta->sta.wme = false;
if (set & BIT(NL80211_STA_FLAG_WME)) {
sta->flags |= WLAN_STA_WME;
sta->sta.wme = true;
}
}

if (mask & BIT(NL80211_STA_FLAG_MFP)) {
Expand Down

0 comments on commit 3ec3603

Please sign in to comment.