Re: [PATCH] wifi: rtw89: Don't return default channel from disabled bands
From: Maxim Skokov
Date: Sat Sep 05 2026 - 19:32:19 EST
On Wed, Aug 12, 2026 at 04:36:28PM -0400, Nícolas F. R. A. Prado wrote:
> Update rtw89_get_default_chandef() to consider the available bands when
> picking the default channel.
Tested on RTL8851BE (rtw89_8851be), applied on top of wireless-next at
base-commit ca800a9302764c445de0da0e84d2252400a770ee.
This chip declares BIT(NL80211_BAND_2GHZ) in support_bands and does not
set RTW89_QUIRK_DISABLE_2GHZ, so it takes the first branch of the new
logic -- the path that has to keep behaving exactly as before. No
regression observed:
- driver probes cleanly, firmware 0.29.41.3 loads, no WARNs and no
backtraces in dmesg
- both bands still enumerate in 'iw phy': 14 channels on 2.4 GHz,
24 channels on 5 GHz
- association and traffic verified on both bands separately, 2.4 GHz
(channel 6) and 5 GHz (channel 36)
Tested-by: Maxim Skokov <skokovmaksimevg@xxxxxxxxx>