Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp366312rdb; Tue, 19 Dec 2023 21:56:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IG29fW2b8Xq91kX21Cs2xf2ko0C43ohPa7Y4vXrrE7eUAmO9svpO6JDxMVU7mqciInz3o56 X-Received: by 2002:a05:6a00:ac7:b0:6d0:aece:cdfc with SMTP id c7-20020a056a000ac700b006d0aececdfcmr6886603pfl.41.1703051784145; Tue, 19 Dec 2023 21:56:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703051784; cv=none; d=google.com; s=arc-20160816; b=yaFU+CA/1gKFuWbJF3GpsGcmjUvXivQy3Esw6vCd4qbtoM/oWFl02O+tELZd/XpkQT o9ot0vNG1V2+r4BL8RxKrZoOL4B63GPdEFnsxn7+aMnOGKBs7wvEkIfvSJMxDcr25mH9 zMhobU+ybHqt50MSNO1R69oVOBuvzsv9zXfgBAcn0SuRV+XQ7v0l0qoJZub36uTFJqtp 2oCkOUsFpj693wySgIA+0FmIyLtPjOG7eV54bv6yr5VgUUfZC0+JKA4V0/MPlGsFI7y+ E97jk1Kxv2xu8AIgS84BQO6KLNNgq95eyiSDuV3sbKhB0Z2li8wX6MWC1Ql+JXGjoODY nNyA== 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=KEA1JAQydKb3B1QT0f+qB3Z/nteXHZg9DPgXviaCkzU=; fh=LQGtYe9vP0onFiP/6l3tkQw/DADLCp+GjsQcHD3gn8k=; b=lbGb8PsN3BVd8/8+WFaRQDQy7k9aIFXFgoeCob6ItpvD2ZEtJhhBist+aRJwVneBl0 ilmLGpm7p/a+i458yYkAfKt9AMY6AU7zjE1iHMtW875/QbPW+HhpF2D58H3M3kKjWzmS mWSxwO8rXeB7sRy8v0rica0Z6UNCH68q/MP+DCp4mBBiZn9GKpnHkz6sXXq45/dAVb04 ZeQa36LzLP50k06krjcls74Wo3F2+5ucGf8LVw8YC6v09nUY3z5RS8ZiWrOdzaTID1K9 wsIgYt/l6jH8cIBkQrgn56jYakXyHanRh4fXtPbqrE2xsLt4nXHg50IDUrZCTDg3dLDZ TdXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1061-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v11-20020a655c4b000000b005cd9ebd3b33si4591008pgr.796.2023.12.19.21.56.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 21:56:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless+bounces-1061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1061-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 46EB1B22FC8 for ; Wed, 20 Dec 2023 05:56:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47DFF1D52A; Wed, 20 Dec 2023 05:56:16 +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 6E41E1D528 for ; Wed, 20 Dec 2023 05:56:14 +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 3BK5u3OF1507987, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 3BK5u3OF1507987 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Dec 2023 13:56:03 +0800 Received: from RTEXDAG02.realtek.com.tw (172.21.6.101) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Wed, 20 Dec 2023 13:56:03 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXDAG02.realtek.com.tw (172.21.6.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 20 Dec 2023 13:56:03 +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; Wed, 20 Dec 2023 13:56:03 +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 09/20] wifi: rtl8xxxu: support multiple interfaces in set_aifs() Thread-Topic: [PATCH 09/20] wifi: rtl8xxxu: support multiple interfaces in set_aifs() Thread-Index: AQHaMb/JrstsK/ueY0Kd5ajvdUY6ybCxrjpQ Date: Wed, 20 Dec 2023 05:56:03 +0000 Message-ID: <1c39a5b7d335409a8a044889cb769024@realtek.com> References: <20231218143645.433356-1-martin.kaistra@linutronix.de> <20231218143645.433356-10-martin.kaistra@linutronix.de> In-Reply-To: <20231218143645.433356-10-martin.kaistra@linutronix.de> Accept-Language: en-US, zh-TW Content-Language: zh-TW x-kse-serverinfo: RTEXDAG02.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 X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback > -----Original Message----- > From: Martin Kaistra > Sent: Monday, December 18, 2023 10:37 PM > To: linux-wireless@vger.kernel.org > Cc: Jes Sorensen ; Kalle Valo ;= Ping-Ke Shih > ; Bitterblue Smith ; Sebasti= an Andrzej Siewior > > Subject: [PATCH 09/20] wifi: rtl8xxxu: support multiple interfaces in set= _aifs() >=20 > In concurrent mode supported by this driver, both interfaces will use > the same channel and same wireless mode. > It is therefore possible to get the wireless mode by checking the first > connected interface. >=20 > Signed-off-by: Martin Kaistra > --- > .../wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 18 +++++++++++------- > 1 file changed, 11 insertions(+), 7 deletions(-) >=20 > diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > index 2b546bce01237..827e715f0e585 100644 > --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c > @@ -4913,14 +4913,18 @@ static void rtl8xxxu_set_aifs(struct rtl8xxxu_pri= v *priv, u8 slot_time) > u8 aifs, aifsn, sifs; > int i; >=20 > - if (priv->vif) { > - struct ieee80211_sta *sta; > + for (i =3D 0; i < ARRAY_SIZE(priv->vifs); i++) { > + if (priv->vifs[i]) { if (!priv->vifs[i]) continue; Then, you can only stir few code.=20 Ping-Ke