Allow management frame injection on DFS channels if the channel has been CAC checked and is available Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@xxxxxxxxx> --- net/mac80211/tx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 3456c04..edb1d3e 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -1694,8 +1694,10 @@ netdev_tx_t ieee80211_monitor_start_xmit(struct sk_buff *skb, * radar detection by itself. We can do that later by adding a * monitor flag interfaces used for AP support. */ - if ((chan->flags & (IEEE80211_CHAN_NO_IBSS | IEEE80211_CHAN_RADAR | - IEEE80211_CHAN_PASSIVE_SCAN))) + if (((chan->flags & (IEEE80211_CHAN_PASSIVE_SCAN | + IEEE80211_CHAN_NO_IBSS))) || + ((chan->flags & IEEE80211_CHAN_RADAR) && + chan->dfs_state != NL80211_DFS_AVAILABLE)) goto fail_rcu; ieee80211_xmit(sdata, skb, chan->band); -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html