RE: [PATCH rtw-next] wifi: rtw88: program the beacon interval
From: Ping-Ke Shih
Date: Tue Nov 17 2026 - 01:47:24 EST
Mehmet Fide <mehmet.fide@xxxxxxxxx> wrote:
> diff --git a/drivers/net/wireless/realtek/rtw88/mac80211.c
> b/drivers/net/wireless/realtek/rtw88/mac80211.c
> index 5e40cf06a9e3..5f411df5586e 100644
> --- a/drivers/net/wireless/realtek/rtw88/mac80211.c
> +++ b/drivers/net/wireless/realtek/rtw88/mac80211.c
> @@ -432,6 +432,10 @@ static void rtw_ops_bss_info_changed(struct ieee80211_hw *hw,
> if (changed & BSS_CHANGED_BEACON_INT) {
> if (ieee80211_vif_type_p2p(vif) == NL80211_IFTYPE_STATION)
> coex_stat->wl_beacon_interval = conf->beacon_int;
> + else if (vif->type != NL80211_IFTYPE_STATION &&
Please white list of vif.
As commit message, here should be vif->type == NL80211_IFTYPE_AP.
The rtw88 can also support NL80211_IFTYPE_ADHOC, so you can add it as well
if you want.
> + rtwvif->port == RTW_PORT_0)
> + rtw_write16(rtwdev, REG_MBSSID_BCN_SPACE,
> + conf->beacon_int);
> }
>
> if (changed & BSS_CHANGED_BEACON) {