RE: [PATCH rtw-next v17 2/3] wifi: rtw88: support channel switch in AP mode

From: Ping-Ke Shih

Date: Thu Dec 03 2026 - 22:51:46 EST


Mehmet Fide <mehmet.fide@xxxxxxxxx> wrote:
> +static int rtw_ops_pre_channel_switch(struct ieee80211_hw *hw,
> + struct ieee80211_vif *vif,
> + struct ieee80211_channel_switch *chsw)
> +{
> + struct rtw_dev *rtwdev = hw->priv;
> +
> + if (vif->type != NL80211_IFTYPE_STATION &&

Prefer positive list.

vif->type == NL80211_IFTYPE_AP?

> + bitmap_weight(rtwdev->hw_port, RTW_PORT_NUM) > 1)
> + return -EBUSY;
> +
> + return 0;
> +}
> +

As Luka's comment, please conder shrinking your commit message.
(you can make a decision yourself)