From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=211.75.126.72 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796356295; b=vabGCUI3CcmssQtd0r+Azn2YTDKADz2YHyu1h5jw3V+l/lb23B2lnq9Enm7db+jjRqN+ 1A0ZZd18Knv42zZ5CxPzyLmGaetUMr7FeSMp8KBebyscU6przjpotr/GVqZS3mH8FYeKc mllWDKxloaBlVvq0odSw4MqKpNQ1Vd1i+MOI4qYavJRvJEFwmYO5pVgSi1dRdkDweT/FX bNCrvpvN00hmnQ0LqZumU/SBCbqesvr2ZHZSu1Y4CmqsrMQspHukGRujL09zsBZoE1qwb oCvw2MS10YsyivaPW2w/10s1jOJTROQGvc9VrOd0xFvnM+R2CFD/vS6+TpioI2NsZNw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796356295; h=DMARC-Filter:X-SpamFilter-By:DKIM-Signature:Received:Received: Received:Received:From:To:CC:Subject:Thread-Topic:Thread-Index:Date: Message-ID:References:In-Reply-To:Accept-Language:Content-Language: x-originating-ip:Content-Type:Content-Transfer-Encoding:MIME-Version; bh=8Dqi24QIa+WmWPhTmACaEh/1hCAxqM2YvfEzG+flLP0=; b=q6Eu4N1x5p7X6fbOJ+QJoMnrMtrKPoRfKdABZGCDW1KJFs0d/I4NvXII6u7YBs1wSA7W laL5+FK3JOuOwp6yA0CaiOqod/X5GI7A2/wU8lKXeYKJQTFwoCsyN0XNIkXwpOZHcGRGo CzFVV1CukDiEm+2qc1GRnDDfcrNlp4G749vIGjL+X84CZLsp+b579wRTnMM0Zssal/LN1 +GCYsvLP2Q1eigcXRd0xdN7of+LEx0TaioxiA7nEzyt771iZQHdTaNCb+7IRBeiRm6x55 b/GoIpPtTZaYa50bJDcgIbVP111DXZQSLTlR4aKNh4FG9hxgvsKnnkefVEFCBIlbgrw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; dkim=pass header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=Hhr9zBx4; arc=none smtp.remote-ip=211.75.126.72 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37CBC606A322; Fri, 4 Dec 2026 03:51:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 37CBC606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=Hhr9zBx4 X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 6B43pGNc92527085, This message is accepted by code: ctloc85258 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realtek.com; s=dkim; t=1796356276; bh=8Dqi24QIa+WmWPhTmACaEh/1hCAxqM2YvfEzG+flLP0=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=Hhr9zBx4sXwXcUE40Li2pY1Dv2Y46vFEfTbJnjJoF+CPARVsj91bZ1iMbTxJnuoXh BubrvKm4R5YAwa9yU6ltxyfijQF/5kBivoB1jOxodDsomwDlDX92nOeelPv6ueiYcI AbGRB8x/w9Bu1F5kQtCGxrNY2ltwRIMD5Ar+Kff7BWe7W7CkRG4QYOGBao5bgrtvBs GkhJDmyXd+9/LDqDqKOs4rArXSb0teIdIIxbQ6EtpcXckE0iUz2qGOsnZUeoBdVv8J Q25VxWhhcxks84+M74OooQ1PSkHIeY+D55MsktROyLy0U8Ch6PhILfCzYeu/63bhKF VskMr/6EJPcXQ== Received: from mail.realtek.com (rtkexhmbs03.realtek.com.tw[10.21.1.53]) by rtits2.realtek.com.tw (8.15.2/3.29/5.94) with ESMTPS id 6B43pGNc92527085 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 4 Dec 2026 11:51:16 +0800 Received: from RTKEXHMBS06.realtek.com.tw (10.21.1.56) by RTKEXHMBS03.realtek.com.tw (10.21.1.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Fri, 4 Dec 2026 11:51:16 +0800 Received: from RTKEXHMBS06.realtek.com.tw (10.21.1.56) by RTKEXHMBS06.realtek.com.tw (10.21.1.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Fri, 4 Dec 2026 11:51:16 +0800 Received: from RTKEXHMBS06.realtek.com.tw ([fe80::eeeb:c765:ca73:5eef]) by RTKEXHMBS06.realtek.com.tw ([fe80::eeeb:c765:ca73:5eef%10]) with mapi id 15.02.2562.056; Fri, 4 Dec 2026 11:51:16 +0800 From: Ping-Ke Shih To: Mehmet Fide CC: Luka Gejak , Bitterblue Smith , "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "mehmet.fide@screeningeagle.com" Subject: RE: [PATCH rtw-next v17 2/3] wifi: rtw88: support channel switch in AP mode Thread-Topic: [PATCH rtw-next v17 2/3] wifi: rtw88: support channel switch in AP mode Thread-Index: AQHdg1ayna7zJX4BmU2Tuohvm7ubd7dMPAlA Date: Fri, 4 Dec 2026 03:51:16 +0000 Message-ID: References: <20261203184700.3636262-1-mehmet.fide@gmail.com> <20261203184700.3636262-3-mehmet.fide@gmail.com> In-Reply-To: <20261203184700.3636262-3-mehmet.fide@gmail.com> Accept-Language: en-US, zh-TW Content-Language: zh-TW Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Mehmet Fide wrote: > +static int rtw_ops_pre_channel_switch(struct ieee80211_hw *hw, > + struct ieee80211_vif *vif, > + struct ieee80211_channel_switch *ch= sw) > +{ > + struct rtw_dev *rtwdev =3D hw->priv; > + > + if (vif->type !=3D NL80211_IFTYPE_STATION && Prefer positive list. vif->type =3D=3D 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)