Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp530418rdb; Thu, 21 Dec 2023 17:54:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPbd5MTxiG/yXOFzkdDWa+2fHjMMs5ZgSgwhTfJmR4kwdIHCUuFsX8KzT0m8NhShPtFF4q X-Received: by 2002:a37:ad02:0:b0:77e:fba3:9d24 with SMTP id f2-20020a37ad02000000b0077efba39d24mr781734qkm.136.1703210087121; Thu, 21 Dec 2023 17:54:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703210087; cv=none; d=google.com; s=arc-20160816; b=0HW9vfh/zr4QK0oPcAAmSktuIskeCw5BOAyt/vuLPyLNtqG87WRwoa2+z4If3OnRVB NMSyTNI1+bwPNJ7Xp16lAVpkTXv1C/lJIaxIwwVD6Jvxd7HwoeGuw3j1i3r0SL9ZL4vT OSBv+bTkhKDR/iA6JzsV00fzdLHcbup/SMinSley46pTu5btOkNTP+IcNUYDnG7FMR16 MUoq/w+6IARyQruq22qfmshSklTORLWG5YQVQFMQowQMGj3GXguSWn/ohRARXDcHfdQG dITsC0QIzVbRABuNt96NgAM/OUObzyabntXVsCYpFWhgibQYehc7zIiEou+tudPK4fu9 Z/Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=AMZ6A7eCVITr4pLibddInh2vcxmxnLeWtK/0aWlR/wQ=; fh=LQGtYe9vP0onFiP/6l3tkQw/DADLCp+GjsQcHD3gn8k=; b=KPfWIxzQrJ6OFmR3GcGr6zxSINW7+33oNMENxSDY7ul8KC5ppG3Gee0A6czqup7u3X C3ZuFzKmcXn2rfb5E5P0K08yElBLA3VMTHbTJD6MWKUMUl0o1+NfzV3Gyes6Do/AEzwO JHqtvyhqb8Ny9Hr2So610WsUkGQO5itnwQ+23RPPVJL5kesi6+NDehxoVFXkRKILXGx5 1d74UeAiFQgjV9/u2rzvSrrFD50S34TKr3vq6yOXap4ZQKv3NrY+2xCopr76DRv+zE/N z/pULtgYpRu8OTvFVmDhE63s8dsEU1l4uKp3zjocqm0vuQztQZZ7faGWyjprP79Zz0o8 EkNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1191-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s20-20020a05620a29d400b0077f5a4b7457si3893619qkp.344.2023.12.21.17.54.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 17:54:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1191-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1191-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 057741C213D4 for ; Fri, 22 Dec 2023 01:54:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33C05A50; Fri, 22 Dec 2023 01:54:41 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B51CA31 for ; Fri, 22 Dec 2023 01:54:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3BM1sSR611801030, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 3BM1sSR611801030 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Dec 2023 09:54:28 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.17; Fri, 22 Dec 2023 09:54:28 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 22 Dec 2023 09:54:27 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7]) by RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7%5]) with mapi id 15.01.2375.007; Fri, 22 Dec 2023 09:54:27 +0800 From: Ping-Ke Shih To: Martin Kaistra , "linux-wireless@vger.kernel.org" CC: Jes Sorensen , Kalle Valo , Bitterblue Smith , Sebastian Andrzej Siewior Subject: RE: [PATCH v2 20/21] wifi: rtl8xxxu: make supporting AP mode only on port 0 transparent Thread-Topic: [PATCH v2 20/21] wifi: rtl8xxxu: make supporting AP mode only on port 0 transparent Thread-Index: AQHaNC0oaJY+qGCnXUKN9G8m+k3jo7C0ikyQ Date: Fri, 22 Dec 2023 01:54:27 +0000 Message-ID: <7bbb0d0b803d49088957b47ad716e99b@realtek.com> References: <20231221164353.603258-1-martin.kaistra@linutronix.de> <20231221164353.603258-21-martin.kaistra@linutronix.de> In-Reply-To: <20231221164353.603258-21-martin.kaistra@linutronix.de> Accept-Language: en-US, zh-TW Content-Language: zh-TW x-kse-serverinfo: RTEXMBS01.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback > -----Original Message----- > From: Martin Kaistra > Sent: Friday, December 22, 2023 12:44 AM > To: linux-wireless@vger.kernel.org > Cc: Jes Sorensen ; Kalle Valo ;= Ping-Ke Shih > ; Bitterblue Smith ; Sebasti= an Andrzej Siewior > > Subject: [PATCH v2 20/21] wifi: rtl8xxxu: make supporting AP mode only on= port 0 transparent >=20 [...] > + > + /* > + * priv->vifs[0] is NULL here, based on how this function is curr= ently > + * called from rtl8xxxu_add_interface(). > + * When this function will be used in the future for a different > + * scenario, please check whether vifs[0] or vifs[1] can be NULL = and if > + * necessary add code to set port_num =3D 1. > + */ Did you run scripts/checkpatch.pl to this patch? Initial line of comment bl= ock for networking code should not empty, so it should be below:=20 + /* priv->vifs[0] is NULL here, based on how this function is curren= tly + * called from rtl8xxxu_add_interface(). + * When this function will be used in the future for a different + * scenario, please check whether vifs[0] or vifs[1] can be NULL an= d if + * necessary add code to set port_num =3D 1. + */