aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/mac80211.h2
-rw-r--r--net/mac80211/cfg.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 2f01d84ca52f..2e752df57510 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -954,6 +954,8 @@ struct ieee80211_sta {
954 u16 aid; 954 u16 aid;
955 struct ieee80211_sta_ht_cap ht_cap; 955 struct ieee80211_sta_ht_cap ht_cap;
956 bool wme; 956 bool wme;
957 u8 uapsd_queues;
958 u8 max_sp;
957 959
958 /* must be last */ 960 /* must be last */
959 u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *)))); 961 u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *))));
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 6ab67ab34b5c..0baaaecf4558 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -697,6 +697,9 @@ static void sta_apply_parameters(struct ieee80211_local *local,
697 } 697 }
698 spin_unlock_irqrestore(&sta->flaglock, flags); 698 spin_unlock_irqrestore(&sta->flaglock, flags);
699 699
700 sta->sta.uapsd_queues = params->uapsd_queues;
701 sta->sta.max_sp = params->max_sp;
702
700 /* 703 /*
701 * cfg80211 validates this (1-2007) and allows setting the AID 704 * cfg80211 validates this (1-2007) and allows setting the AID
702 * only when creating a new station entry 705 * only when creating a new station entry