2
0

394-mac80211-allocate-TXQs-for-active-monitor-interfaces.patch 912 B

1234567891011121314151617181920212223242526
  1. From: Felix Fietkau <[email protected]>
  2. Date: Sat, 22 Sep 2018 15:05:59 +0200
  3. Subject: [PATCH] mac80211: allocate TXQs for active monitor interfaces
  4. Monitor mode interfaces with the active flag are passed down to the driver.
  5. Drivers using TXQ expect that all interfaces have allocated TXQs before
  6. they get added.
  7. Fixes: 79af1f866193d ("mac80211: avoid allocating TXQs that won't be used")
  8. Cc: [email protected]
  9. Reported-by: Catrinel Catrinescu <[email protected]>
  10. Signed-off-by: Felix Fietkau <[email protected]>
  11. ---
  12. --- a/net/mac80211/iface.c
  13. +++ b/net/mac80211/iface.c
  14. @@ -1816,7 +1816,8 @@ int ieee80211_if_add(struct ieee80211_lo
  15. if (local->ops->wake_tx_queue &&
  16. type != NL80211_IFTYPE_AP_VLAN &&
  17. - type != NL80211_IFTYPE_MONITOR)
  18. + (type != NL80211_IFTYPE_MONITOR ||
  19. + (params->flags & MONITOR_FLAG_ACTIVE)))
  20. txq_size += sizeof(struct txq_info) +
  21. local->hw.txq_data_size;