projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f81a8a0
)
nl80211: fix logic inversion in start_nan()
author
Johannes Berg
<johannes.berg@intel.com>
Mon, 21 Nov 2016 12:55:48 +0000
(13:55 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Fri, 9 Dec 2016 11:47:18 +0000
(12:47 +0100)
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>
net/wireless/nl80211.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/nl80211.c
b/net/wireless/nl80211.c
index 24ab199ef2fcdcf641f07aaee25bec9e17e43f8e..765bd41b16230828521f194a62946838b60cca25 100644
(file)
--- 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))