* [PATCH] wifi: mt7601u: Add AP mode support
@ 2022-07-25 16:16 Chukun Pan
2022-07-25 17:02 ` Jakub Kicinski
0 siblings, 1 reply; 2+ messages in thread
From: Chukun Pan @ 2022-07-25 16:16 UTC (permalink / raw)
To: Jakub Kicinski
Cc: Kalle Valo, David S . Miller, Eric Dumazet, Paolo Abeni,
Matthias Brugger, Lintel Huang, linux-wireless, netdev,
linux-kernel, Chukun Pan
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(-)
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);
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] wifi: mt7601u: Add AP mode support
2022-07-25 16:16 [PATCH] wifi: mt7601u: Add AP mode support Chukun Pan
@ 2022-07-25 17:02 ` Jakub Kicinski
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Kicinski @ 2022-07-25 17:02 UTC (permalink / raw)
To: Chukun Pan
Cc: Kalle Valo, David S . Miller, Eric Dumazet, Paolo Abeni,
Matthias Brugger, Lintel Huang, linux-wireless, netdev,
linux-kernel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-25 17:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-25 16:16 [PATCH] wifi: mt7601u: Add AP mode support Chukun Pan
2022-07-25 17:02 ` Jakub Kicinski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®