summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-11-21 13:55:48 +0100
committerJohannes Berg <johannes.berg@intel.com>2016-12-09 12:47:18 +0100
commiteeb04a9688f4f939f2a0eaec5a2d53e05e75e691 (patch)
treeb52457100ab52ac09be695754abde0faf695d842 /net/wireless
parentf81a8a02bb3b3e882ba6aa580230c13b5be64849 (diff)
downloadlinux-eeb04a9688f4f939f2a0eaec5a2d53e05e75e691.tar.bz2
nl80211: fix logic inversion in start_nan()
Arend inadvertently inverted the logic while converting to wdev_running(), fix that. Fixes: 73c7da3dae1e ("cfg80211: add generic helper to check interface is running") Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-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 24ab199ef2fc..765bd41b1623 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -10628,7 +10628,7 @@ static int nl80211_start_nan(struct sk_buff *skb, struct genl_info *info)
if (wdev->iftype != NL80211_IFTYPE_NAN)
return -EOPNOTSUPP;
- if (!wdev_running(wdev))
+ if (wdev_running(wdev))
return -EEXIST;
if (rfkill_blocked(rdev->rfkill))