From 6e5dd8c0b9a5c80e77a3ecf2ff217632c2abee3c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 28 May 2013 21:20:22 +0000 Subject: [PATCH] mac80211: fix a crash issue introduced in the active monitor code Signed-off-by: Felix Fietkau SVN-Revision: 36751 --- package/mac80211/patches/300-pending_work.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch index 33120a09031..c66693d2375 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; + -- 2.30.2