* [PATCH] wifi: mt76: Limit the concurrent STA and SoftAP to operate on the same channel
@ 2025-06-19 11:20 Mingyen Hsieh
2025-06-24 22:04 ` kernel test robot
0 siblings, 1 reply; 2+ messages in thread
From: Mingyen Hsieh @ 2025-06-19 11:20 UTC (permalink / raw)
To: nbd, lorenzo
Cc: deren.wu, Sean.Wang, Leon.Yen, Michael.Lo, allan.wang,
Eric-SY.Chang, km.lin, Quan.Zhou, Ryder.Lee, Shayne.Chen,
linux-wireless, linux-mediatek, Leon Yen, Ming Yen Hsieh
From: Leon Yen <leon.yen@mediatek.com>
Due to the lack of NoA(Notice of Absence) mechanism in SoftAP mode, it is
inappropriate to allow concurrent SoftAP and STA to operate on the
different channels.
This patch restricts the concurrent SoftAP and STA to be setup on the same
channel only.
Signed-off-by: Leon Yen <leon.yen@mediatek.com>
Signed-off-by: Ming Yen Hsieh <mingyen.hsieh@mediatek.com>
---
.../net/wireless/mediatek/mt76/mt792x_core.c | 42 ++++++++++++++++---
1 file changed, 36 insertions(+), 6 deletions(-)
diff --git a/drivers/net/wireless/mediatek/mt76/mt792x_core.c b/drivers/net/wireless/mediatek/mt76/mt792x_core.c
index 7f572f8afc02..869fd90202b8 100644
--- a/drivers/net/wireless/mediatek/mt76/mt792x_core.c
+++ b/drivers/net/wireless/mediatek/mt76/mt792x_core.c
@@ -28,7 +28,7 @@ static const struct ieee80211_iface_combination if_comb[] = {
},
};
-static const struct ieee80211_iface_limit if_limits_chanctx[] = {
+static const struct ieee80211_iface_limit if_limits_chanctx_mcc[] = {
{
.max = 2,
.types = BIT(NL80211_IFTYPE_STATION) |
@@ -36,8 +36,7 @@ static const struct ieee80211_iface_limit if_limits_chanctx[] = {
},
{
.max = 1,
- .types = BIT(NL80211_IFTYPE_AP) |
- BIT(NL80211_IFTYPE_P2P_GO)
+ .types = BIT(NL80211_IFTYPE_P2P_GO)
},
{
.max = 1,
@@ -45,16 +44,47 @@ static const struct ieee80211_iface_limit if_limits_chanctx[] = {
}
};
-static const struct ieee80211_iface_combination if_comb_chanctx[] = {
+static const struct ieee80211_iface_combination if_comb_chanctx_mcc[] = {
{
- .limits = if_limits_chanctx,
- .n_limits = ARRAY_SIZE(if_limits_chanctx),
+ .limits = if_limits_chanctx_mcc,
+ .n_limits = ARRAY_SIZE(if_limits_chanctx_mcc),
.max_interfaces = 3,
.num_different_channels = 2,
.beacon_int_infra_match = false,
}
};
+static const struct ieee80211_iface_limit if_limits_chanctx_scc[] = {
+ {
+ .max = 2,
+ .types = BIT(NL80211_IFTYPE_STATION) |
+ BIT(NL80211_IFTYPE_P2P_CLIENT)
+ },
+ {
+ .max = 1,
+ .types = BIT(NL80211_IFTYPE_AP)
+ },
+ {
+ .max = 1,
+ .types = BIT(NL80211_IFTYPE_P2P_DEVICE)
+ }
+};
+
+static const struct ieee80211_iface_combination if_comb_chanctx_scc[] = {
+ {
+ .limits = if_limits_chanctx_scc,
+ .n_limits = ARRAY_SIZE(if_limits_chanctx_scc),
+ .max_interfaces = 3,
+ .num_different_channels = 1,
+ .beacon_int_infra_match = false,
+ }
+};
+
+static const struct ieee80211_iface_combination if_comb_chanctx[] = {
+ if_comb_chanctx_mcc[0],
+ if_comb_chanctx_scc[0],
+};
+
void mt792x_tx(struct ieee80211_hw *hw, struct ieee80211_tx_control *control,
struct sk_buff *skb)
{
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] wifi: mt76: Limit the concurrent STA and SoftAP to operate on the same channel
2025-06-19 11:20 [PATCH] wifi: mt76: Limit the concurrent STA and SoftAP to operate on the same channel Mingyen Hsieh
@ 2025-06-24 22:04 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-06-24 22:04 UTC (permalink / raw)
To: Mingyen Hsieh, nbd, lorenzo
Cc: llvm, oe-kbuild-all, deren.wu, Sean.Wang, Leon.Yen, Michael.Lo,
allan.wang, Eric-SY.Chang, km.lin, Quan.Zhou, Ryder.Lee,
Shayne.Chen, linux-wireless, linux-mediatek, Ming Yen Hsieh
Hi Mingyen,
kernel test robot noticed the following build errors:
[auto build test ERROR on wireless-next/main]
[also build test ERROR on wireless/main linus/master v6.16-rc3 next-20250624]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Mingyen-Hsieh/wifi-mt76-Limit-the-concurrent-STA-and-SoftAP-to-operate-on-the-same-channel/20250619-192503
base: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main
patch link: https://lore.kernel.org/r/20250619112005.2071110-1-mingyen.hsieh%40mediatek.com
patch subject: [PATCH] wifi: mt76: Limit the concurrent STA and SoftAP to operate on the same channel
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20250625/202506250512.Q0I4znsF-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250625/202506250512.Q0I4znsF-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506250512.Q0I4znsF-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/net/wireless/mediatek/mt76/mt792x_core.c:84:3: error: initializer element is not a compile-time constant
if_comb_chanctx_mcc[0],
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
vim +84 drivers/net/wireless/mediatek/mt76/mt792x_core.c
82
83 static const struct ieee80211_iface_combination if_comb_chanctx[] = {
> 84 if_comb_chanctx_mcc[0],
85 if_comb_chanctx_scc[0],
86 };
87
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-24 22:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19 11:20 [PATCH] wifi: mt76: Limit the concurrent STA and SoftAP to operate on the same channel Mingyen Hsieh
2025-06-24 22:04 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.