[PATCH v2 19/19] wifi: mt76: mt792x: allow three channels in the NAN combination

Sean Wang sean.wang at kernel.org
Mon Nov 16 15:16:30 PST 2026


From: Jacobs Wu <jacobs.wu at mediatek.com>

A NAN data path schedule can use two channels, e.g. channel 6 on
2.4 GHz and channel 149 on 5 GHz, while a station interface is
connected on a third channel. The station + NAN combination only
allows two different channels, so:

- if the station is connected first, wpa_supplicant, which takes the
  number of NAN schedule channels from this limit, rejects the NAN
  schedule and no NDP can be set up:

    NAN: No unused radio frequency available for freq 5745

- if NAN is started first, mac80211 evacuates one of the NAN channels
  when the station connects.

The firmware time-shares the three channels, so allow three different
channels in this combination.

Fixes: 420e0bbd52ab ("wifi: mt76: mt792x: advertise NAN data support")
Suggested-by: Andrzej Ostruszka <andrzejo at google.com>
Signed-off-by: Jacobs Wu <jacobs.wu at mediatek.com>
---
 drivers/net/wireless/mediatek/mt76/mt792x_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mediatek/mt76/mt792x_core.c b/drivers/net/wireless/mediatek/mt76/mt792x_core.c
index 472333ac1a62..a835c8d89618 100644
--- a/drivers/net/wireless/mediatek/mt76/mt792x_core.c
+++ b/drivers/net/wireless/mediatek/mt76/mt792x_core.c
@@ -118,7 +118,7 @@ static const struct ieee80211_iface_combination if_comb_chanctx_nan[] = {
 		.limits = if_limits_nan_mcc,
 		.n_limits = ARRAY_SIZE(if_limits_nan_mcc),
 		.max_interfaces = MT792x_MAX_INTERFACES,
-		.num_different_channels = 2,
+		.num_different_channels = 3,
 		.beacon_int_infra_match = false,
 	},
 	{
-- 
2.43.0




More information about the Linux-mediatek mailing list