]> Pileus Git - ~andy/linux/blobdiff - net/mac80211/tx.c
cfg80211: consolidate passive-scan and no-ibss flags
[~andy/linux] / net / mac80211 / tx.c
index c558b246ef0036c38e6c8a00b338b43c46913f78..5ad2e8b1f92c3c838b5804ed69fce2f59c7ab90d 100644 (file)
@@ -1724,8 +1724,7 @@ 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_NO_IR | IEEE80211_CHAN_RADAR)))
                goto fail_rcu;
 
        ieee80211_xmit(sdata, skb, chan->band);