浏览代码

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

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 36751
Felix Fietkau 12 年之前
父节点
当前提交
6e5dd8c0b9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      package/mac80211/patches/300-pending_work.patch

+ 1 - 1
package/mac80211/patches/300-pending_work.patch

@@ -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;
 +
 +