From: Felix Fietkau Date: Tue, 28 May 2013 21:20:22 +0000 (+0000) Subject: mac80211: fix a crash issue introduced in the active monitor code X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=4e626b0e5e12c237832a8c99cbf54c6d7834d034;hp=3168bcbe3ee169318cad1afaa08ed99b765d0231 mac80211: fix a crash issue introduced in the active monitor code Signed-off-by: Felix Fietkau SVN-Revision: 36751 --- diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch index 33120a0903..c66693d237 100644 --- a/package/mac80211/patches/300-pending_work.patch +++ b/package/mac80211/patches/300-pending_work.patch @@ -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; +