Commit 39df600aa6ac027b53c4ce3089cba57467a960df
Committed by
John W. Linville
1 parent
f01dce9474
Exists in
master
and in
38 other branches
mac80211: propagate information about STA WME support down
Add a memeber to the ieee80211_sta structure to indicate whether the STA supports WME. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Showing 2 changed files with 6 additions and 1 deletions Side-by-side Diff
include/net/mac80211.h
... | ... | @@ -933,6 +933,7 @@ |
933 | 933 | * @aid: AID we assigned to the station if we're an AP |
934 | 934 | * @supp_rates: Bitmap of supported rates (per band) |
935 | 935 | * @ht_cap: HT capabilities of this STA; restricted to our own TX capabilities |
936 | + * @wme: indicates whether the STA supports WME. Only valid during AP-mode. | |
936 | 937 | * @drv_priv: data area for driver use, will always be aligned to |
937 | 938 | * sizeof(void *), size is determined in hw information. |
938 | 939 | */ |
... | ... | @@ -941,6 +942,7 @@ |
941 | 942 | u8 addr[ETH_ALEN]; |
942 | 943 | u16 aid; |
943 | 944 | struct ieee80211_sta_ht_cap ht_cap; |
945 | + bool wme; | |
944 | 946 | |
945 | 947 | /* must be last */ |
946 | 948 | u8 drv_priv[0] __attribute__((__aligned__(sizeof(void *)))); |
net/mac80211/cfg.c
... | ... | @@ -674,8 +674,11 @@ |
674 | 674 | |
675 | 675 | if (mask & BIT(NL80211_STA_FLAG_WME)) { |
676 | 676 | sta->flags &= ~WLAN_STA_WME; |
677 | - if (set & BIT(NL80211_STA_FLAG_WME)) | |
677 | + sta->sta.wme = false; | |
678 | + if (set & BIT(NL80211_STA_FLAG_WME)) { | |
678 | 679 | sta->flags |= WLAN_STA_WME; |
680 | + sta->sta.wme = true; | |
681 | + } | |
679 | 682 | } |
680 | 683 | |
681 | 684 | if (mask & BIT(NL80211_STA_FLAG_MFP)) { |