mac80211: fix a crash issue introduced in the active monitor code
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 36751
This commit is contained in:
parent
439fdd4d65
commit
6e5dd8c0b9
1 changed files with 1 additions and 1 deletions
|
@ -3930,7 +3930,7 @@
|
||||||
change = true;
|
change = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ if ((*flags & NL80211_MNTR_FLAG_ACTIVE) &&
|
+ if (flags && (*flags & NL80211_MNTR_FLAG_ACTIVE) &&
|
||||||
+ !(rdev->wiphy.features & NL80211_FEATURE_ACTIVE_MONITOR))
|
+ !(rdev->wiphy.features & NL80211_FEATURE_ACTIVE_MONITOR))
|
||||||
+ return -EOPNOTSUPP;
|
+ return -EOPNOTSUPP;
|
||||||
+
|
+
|
||||||
|
|
Loading…
Reference in a new issue