diff options
| author | Zong-Zhe Yang <[email protected]> | 2024-04-17 17:00:50 +0800 |
|---|---|---|
| committer | Ping-Ke Shih <[email protected]> | 2024-04-22 09:29:03 +0800 |
| commit | d50334c38af65ac5cdcc4a1b66b26c79922e1e06 (patch) | |
| tree | 9ec3d7cc6d63927e00d73411b9a68269b94fdf14 | |
| parent | 08b5d052d17a89bb8706b2888277d0b682dc1610 (diff) | |
wifi: rtw89: set WIPHY_FLAG_DISABLE_WEXT before MLO
We will support MLO on 802.11be chip, e.g. RTL8922A, in the future. At that
time being, we will set WIPHY_FLAG_SUPPORTS_MLO according to chip info and
FW features at runtime. But, with WIPHY_FLAG_SUPPORTS_MLO flag, cfg80211
will disable WEXT. In case inconsistent user experience, if 802.11be chip,
we disable WEXT uniformly from now on.
Signed-off-by: Zong-Zhe Yang <[email protected]>
Signed-off-by: Ping-Ke Shih <[email protected]>
Link: https://msgid.link/[email protected]
| -rw-r--r-- | drivers/net/wireless/realtek/rtw89/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw89/core.c b/drivers/net/wireless/realtek/rtw89/core.c index a02c26b51fa6..dda69e8d114d 100644 --- a/drivers/net/wireless/realtek/rtw89/core.c +++ b/drivers/net/wireless/realtek/rtw89/core.c @@ -4512,6 +4512,9 @@ static int rtw89_core_register_hw(struct rtw89_dev *rtwdev) if (!chip->support_rnr) hw->wiphy->flags |= WIPHY_FLAG_SPLIT_SCAN_6GHZ; + if (chip->chip_gen == RTW89_CHIP_BE) + hw->wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT; + hw->wiphy->features |= NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR; hw->wiphy->max_scan_ssids = RTW89_SCANOFLD_MAX_SSID; |