Enable AP mode for MT7601U

pull/208/head
Igor Zalatov (from Citadel PC) 2022-04-12 22:00:47 +03:00
parent 2eda0f451f
commit 78f4c58aa2
2 changed files with 18 additions and 4 deletions

View File

@ -1,6 +1,6 @@
--- a/drivers/net/usb/qmi_wwan.c
+++ b/drivers/net/usb/qmi_wwan.c
@@ -931,7 +931,7 @@ static const struct usb_device_id produc
--- a/drivers/net/usb/qmi_wwan.c 2022-04-06 14:46:43.418228000 +0300
+++ b/drivers/net/usb/qmi_wwan.c 2022-04-08 10:29:51.091747200 +0300
@@ -931,7 +931,7 @@
{QMI_FIXED_INTF(0x413c, 0x81b6, 10)}, /* Dell Wireless 5811e */
{QMI_FIXED_INTF(0x03f0, 0x4e1d, 8)}, /* HP lt4111 LTE/EV-DO/HSPA+ Gobi 4G Module */
{QMI_FIXED_INTF(0x22de, 0x9061, 3)}, /* WeTelecom WPD-600N */

View File

@ -0,0 +1,14 @@
--- a/drivers/net/wireless/mediatek/mt7601u/init.c 2022-04-06 14:46:43.628228000 +0300
+++ b/drivers/net/wireless/mediatek/mt7601u/init.c 2022-04-06 15:32:35.028228000 +0300
@@ -612,8 +612,9 @@
SET_IEEE80211_PERM_ADDR(hw, dev->macaddr);
- wiphy->features |= NL80211_FEATURE_ACTIVE_MONITOR;
- wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
+ wiphy->features |= NL80211_FEATURE_ACTIVE_MONITOR | NL80211_FEATURE_AP_SCAN;
+ wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_AP) | BIT(NL80211_IFTYPE_MONITOR);
+ wiphy->software_iftypes = BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_AP) | BIT(NL80211_IFTYPE_MONITOR);
ret = mt76_init_sband_2g(dev);
if (ret)