summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArik Nemtsov2011-09-26 08:36:42 +0200
committerJohn W. Linville2011-09-27 20:36:04 +0200
commitcd32984f64cb4fdd84e33f30da1f10582fc43cbf (patch)
tree3c234c09586f0bbe1ce14cea470ccf3e919c52f9
parentwl3501_cs: min_t() cast truncates high bits (diff)
downloadkernel-qcow2-linux-cd32984f64cb4fdd84e33f30da1f10582fc43cbf.tar.gz
kernel-qcow2-linux-cd32984f64cb4fdd84e33f30da1f10582fc43cbf.tar.xz
kernel-qcow2-linux-cd32984f64cb4fdd84e33f30da1f10582fc43cbf.zip
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>
-rw-r--r--net/wireless/nl80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 74d16192fbf0..bf3fc4f264f5 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -2620,7 +2620,7 @@ static int nl80211_new_station(struct sk_buff *skb, struct genl_info *info)
/* parse WME attributes if sta is WME capable */
if ((rdev->wiphy.flags & WIPHY_FLAG_AP_UAPSD) &&
- (params.sta_flags_set & NL80211_STA_FLAG_WME) &&
+ (params.sta_flags_set & BIT(NL80211_STA_FLAG_WME)) &&
info->attrs[NL80211_ATTR_STA_WME]) {
struct nlattr *tb[NL80211_STA_WME_MAX + 1];
struct nlattr *nla;