Message ID | 20220725161603.15201-1-amadeus@jmu.edu.cn (mailing list archive) |
---|---|
State | Awaiting Upstream |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | wifi: mt7601u: Add AP mode support | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Not a local patch |
On Tue, 26 Jul 2022 00:16:03 +0800 Chukun Pan wrote: > Add AP mode support to mt7601u chipset. > Simply tested it with firmware version > 201302052146 and it seems working fine. The chipset does not support CAB properly, trying to run APs on it is a waste of everyone's time. Just buy better HW if you need AP mode. These are $5 dongles so I hope the suggestion is acceptable.
diff --git a/drivers/net/wireless/mediatek/mt7601u/init.c b/drivers/net/wireless/mediatek/mt7601u/init.c index 5d9e952b2966..d18800b41704 100644 --- 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 mt7601u_dev *dev) 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);
Add AP mode support to mt7601u chipset. Simply tested it with firmware version 201302052146 and it seems working fine. Run-tested-by: Lintel Huang <lintel.huang@gmail.com> Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> --- drivers/net/wireless/mediatek/mt7601u/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)