Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mac80211: treat the WME sta flag as a bit

Correct flag usage - use it as a bit index instead of a bit value.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Arik Nemtsov and committed by
John W. Linville
cd32984f 2fb40577

+1 -1
+1 -1
net/wireless/nl80211.c
··· 2620 2620 2621 2621 /* parse WME attributes if sta is WME capable */ 2622 2622 if ((rdev->wiphy.flags & WIPHY_FLAG_AP_UAPSD) && 2623 - (params.sta_flags_set & NL80211_STA_FLAG_WME) && 2623 + (params.sta_flags_set & BIT(NL80211_STA_FLAG_WME)) && 2624 2624 info->attrs[NL80211_ATTR_STA_WME]) { 2625 2625 struct nlattr *tb[NL80211_STA_WME_MAX + 1]; 2626 2626 struct nlattr *nla;