diff mbox series

[3/3] mt76: set monitor mode scan ext. feature

Message ID 20200303115017.9845-3-markus.theil@tu-ilmenau.de (mailing list archive)
State Rejected
Delegated to: Felix Fietkau
Headers show
Series [1/3] nl80211: add monitor mode scan feature | expand

Commit Message

Markus Theil March 3, 2020, 11:50 a.m. UTC
This patch enables monitor mode scanning for the mt76 driver.

I tested this with the following interface combinations:
  * 1 monitor VIF
  * 1 STA VIF + 1 monitor VIF
  * 1 AP VIF + 1 monitor VIF

Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
---
 drivers/net/wireless/mediatek/mt76/mac80211.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/net/wireless/mediatek/mt76/mac80211.c b/drivers/net/wireless/mediatek/mt76/mac80211.c
index 96018fd65779..781511cc736d 100644
--- a/drivers/net/wireless/mediatek/mt76/mac80211.c
+++ b/drivers/net/wireless/mediatek/mt76/mac80211.c
@@ -316,6 +316,7 @@  int mt76_register_device(struct mt76_dev *dev, bool vht,
 
 	wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_CQM_RSSI_LIST);
 	wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_AIRTIME_FAIRNESS);
+	wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_MONITOR_MODE_SCAN);
 
 	wiphy->available_antennas_tx = dev->antenna_mask;
 	wiphy->available_antennas_rx = dev->antenna_mask;