mac80211: fix a crash issue introduced in the active monitor code
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36751 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
c802b55757
commit
0a860b5f30
|
@ -3930,7 +3930,7 @@
|
|||
change = true;
|
||||
}
|
||||
|
||||
+ if ((*flags & NL80211_MNTR_FLAG_ACTIVE) &&
|
||||
+ if (flags && (*flags & NL80211_MNTR_FLAG_ACTIVE) &&
|
||||
+ !(rdev->wiphy.features & NL80211_FEATURE_ACTIVE_MONITOR))
|
||||
+ return -EOPNOTSUPP;
|
||||
+
|
||||
|
|
Loading…
Reference in New Issue