mac80211: fix a crash issue introduced in the active monitor code
authorFelix Fietkau <nbd@openwrt.org>
Tue, 28 May 2013 21:20:22 +0000 (21:20 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 28 May 2013 21:20:22 +0000 (21:20 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36751

package/mac80211/patches/300-pending_work.patch

index 33120a0..c66693d 100644 (file)
                change = true;
        }
  
-+      if ((*flags & NL80211_MNTR_FLAG_ACTIVE) &&
++      if (flags && (*flags & NL80211_MNTR_FLAG_ACTIVE) &&
 +          !(rdev->wiphy.features & NL80211_FEATURE_ACTIVE_MONITOR))
 +              return -EOPNOTSUPP;
 +