mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 03:35:32 -04:00
wifi: rtw89: 8852cu: add quirk to disable 2.4 GHz band
Add RTW89_QUIRK_DISABLE_2GHZ to the rtw89_quirks enum to allow per-device suppression of the 2.4 GHz band. Apply the quirk only for the 0x28de:0x2432 (VID:PID) USB device, which operates only in 5/6 GHz bands. Signed-off-by: David Lee <sc.lee@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/20260717061910.54466-4-pkshih@realtek.com
This commit is contained in:
@@ -6418,6 +6418,9 @@ static int rtw89_core_set_supported_band(struct rtw89_dev *rtwdev)
|
||||
u8 support_bands = rtwdev->chip->support_bands;
|
||||
int ret;
|
||||
|
||||
if (test_bit(RTW89_QUIRK_DISABLE_2GHZ, rtwdev->quirks))
|
||||
support_bands &= ~BIT(NL80211_BAND_2GHZ);
|
||||
|
||||
if (support_bands & BIT(NL80211_BAND_2GHZ)) {
|
||||
sband = rtw89_core_sband_dup(rtwdev, &rtw89_sband_2ghz);
|
||||
if (!sband)
|
||||
|
||||
@@ -6057,6 +6057,7 @@ enum rtw89_quirks {
|
||||
RTW89_QUIRK_THERMAL_PROT_120C,
|
||||
RTW89_QUIRK_THERMAL_PROT_110C,
|
||||
RTW89_QUIRK_HW_INFO_SYSFS,
|
||||
RTW89_QUIRK_DISABLE_2GHZ,
|
||||
|
||||
NUM_OF_RTW89_QUIRKS,
|
||||
};
|
||||
|
||||
@@ -97,7 +97,8 @@ static const struct rtw89_driver_info rtw89_8852cu_valve_info = {
|
||||
.variant = NULL,
|
||||
.board = &rtw89_8852cu_valve_board,
|
||||
.quirks = NULL,
|
||||
.dev_id_quirks = BIT(RTW89_QUIRK_HW_INFO_SYSFS),
|
||||
.dev_id_quirks = BIT(RTW89_QUIRK_HW_INFO_SYSFS) |
|
||||
BIT(RTW89_QUIRK_DISABLE_2GHZ),
|
||||
.bus = {
|
||||
.usb = &rtw8852c_usb_info,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user