aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index c2416fbd1b27..1063a7e57d62 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -2570,12 +2570,13 @@ static int ieee80211_probe_client(struct wiphy *wiphy, struct net_device *dev,
2570 2570
2571 rcu_read_lock(); 2571 rcu_read_lock();
2572 sta = sta_info_get(sdata, peer); 2572 sta = sta_info_get(sdata, peer);
2573 if (sta) 2573 if (sta) {
2574 qos = test_sta_flag(sta, WLAN_STA_WME); 2574 qos = test_sta_flag(sta, WLAN_STA_WME);
2575 rcu_read_unlock(); 2575 rcu_read_unlock();
2576 2576 } else {
2577 if (!sta) 2577 rcu_read_unlock();
2578 return -ENOLINK; 2578 return -ENOLINK;
2579 }
2579 2580
2580 if (qos) { 2581 if (qos) {
2581 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | 2582 fc = cpu_to_le16(IEEE80211_FTYPE_DATA |