Skip to content
Snippets Groups Projects
Commit 6e5dd8c0 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

mac80211: fix a crash issue introduced in the active monitor code


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

SVN-Revision: 36751
parent 439fdd4d
No related branches found
No related tags found
No related merge requests found
...@@ -3930,7 +3930,7 @@ ...@@ -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;
+ +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment