diff --git a/package/kernel/mac80211/patches/subsys/901-wifi-mt7601u-Add-AP-mode-support.patch b/package/kernel/mac80211/patches/subsys/901-wifi-mt7601u-Add-AP-mode-support.patch new file mode 100644 index 0000000000..654954e454 --- /dev/null +++ b/package/kernel/mac80211/patches/subsys/901-wifi-mt7601u-Add-AP-mode-support.patch @@ -0,0 +1,36 @@ +From: Chukun Pan +To: Jakub Kicinski +Cc: Kalle Valo , + "David S . Miller" , + Eric Dumazet , + Paolo Abeni , + Matthias Brugger , + Lintel Huang , + linux-wireless@vger.kernel.org, netdev@vger.kernel.org, + linux-kernel@vger.kernel.org, Chukun Pan +Subject: [PATCH] wifi: mt7601u: Add AP mode support +Date: Tue, 26 Jul 2022 00:16:03 +0800 [thread overview] +Message-ID: <20220725161603.15201-1-amadeus@jmu.edu.cn> (raw) + +Add AP mode support to mt7601u chipset. +Simply tested it with firmware version +201302052146 and it seems working fine. + +Run-tested-by: Lintel Huang +Signed-off-by: Chukun Pan +--- + drivers/net/wireless/mediatek/mt7601u/init.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +--- a/drivers/net/wireless/mediatek/mt7601u/init.c ++++ b/drivers/net/wireless/mediatek/mt7601u/init.c +@@ -609,7 +609,8 @@ int mt7601u_register_device(struct mt760 + SET_IEEE80211_PERM_ADDR(hw, dev->macaddr); + + wiphy->features |= NL80211_FEATURE_ACTIVE_MONITOR; +- wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); ++ wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | ++ BIT(NL80211_IFTYPE_AP); + wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS; + + wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_CQM_RSSI_LIST);