[1/5] wifi: wilc1000: set preamble size to auto as default in wilc_init_fw_config()
Message ID | 20240115-wilc_1000_fixes-v1-1-54d29463a738@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-26155-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp1760132dyc; Mon, 15 Jan 2024 07:07:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfJn1GAskK5sypzCGpvlYvMtfLqLcjbW/eREBNRQ3IgT+XTizJ3TvWVhuRepmyHnRwCf2O X-Received: by 2002:ac8:4e89:0:b0:429:fdb2:6246 with SMTP id 9-20020ac84e89000000b00429fdb26246mr526578qtp.37.1705331240233; Mon, 15 Jan 2024 07:07:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705331240; cv=none; d=google.com; s=arc-20160816; b=RCyQa3PHqARn877Y9KSik+tKBKOlZ8qOMA+qv6BodEUgyQWzMQttoB/aosCKvwTRH8 F+W1xkdDUET0AUrU9YXU94PadHpXPixvvbIRu457Lg/I55Wl+j8u8ne3Xqa6F05+Bzb3 zlP5WdcYWsF8A2LH5tXpP7zIhLJGB7ESUb3DoshXmjkHpZT8oUsuXWAlnfEhVETtssC1 LhvLVjEXcOxAG0UnmEVUQyurJd0AStnYV6sHJYmquuJiXvCZnuVuF/MN5t02CZ3gAdM8 iW8vGaxHi3GRQRXyfJFzbPUZT/pDoSwe8s2Sh9KhMoeDgAb2EHZhnuM91KMZXiOPgpZ7 26dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=f53Zp5Ie7SvA/urVLBu9knCFVK7DSFZQ8gZToRBEIg4=; fh=fVWNSIr8Vd5WRJo6LslfqG3nFGLhcHDnKbQ0ZKCs5kk=; b=p/LtJfbBA2HHlC4h0nLndSDJlB4iaBAqWUsjDEurhYY8QkvXKaubttr+JbDCmqeln/ KWQ6zKHN5NaSX+cwybl6+k60a89orBXGWLYu+aVjXED743K5nEmOUuwLy/YpA5NCOXRx ejML9ICbNmFp6oEVv6z7QkLJUfMmtVeM2Rs9zB5pJg0JG2nAspRANCxj61K3YBuHbB5L JhoabbI5Wu98MaPk+h0bDGp2iQFzHxsPK+IECi6oji9E76AjG/lAC4fRCgA0oKjYMgAc uleFdeFFTXJKyreMreKJoL4P5wTkcPWYXWQqSQytpE3KQhVult7VWkao8Lo6O0+vXDn7 2bSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=OF5Itzhq; spf=pass (google.com: domain of linux-kernel+bounces-26155-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26155-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p9-20020a05622a048900b00429b3b3dc08si8243041qtx.742.2024.01.15.07.07.20 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 07:07:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26155-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=OF5Itzhq; spf=pass (google.com: domain of linux-kernel+bounces-26155-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26155-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 0AF6B1C21B64 for <ouuuleilei@gmail.com>; Mon, 15 Jan 2024 15:07:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B343017C72; Mon, 15 Jan 2024 15:06:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="OF5Itzhq" Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53FAD179B5; Mon, 15 Jan 2024 15:06:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: from relay9-d.mail.gandi.net (unknown [217.70.183.199]) by mslow1.mail.gandi.net (Postfix) with ESMTP id D9714C646B; Mon, 15 Jan 2024 14:59:20 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 905CAFF80E; Mon, 15 Jan 2024 14:59:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1705330753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f53Zp5Ie7SvA/urVLBu9knCFVK7DSFZQ8gZToRBEIg4=; b=OF5ItzhqFaamgBezgWVg9/B2KXGRP9tnRoLiz7gqbObeTDOch0oAdJ1BN+ou03qFQWa03k YGosK7D0zkB51PkdUbRgQ6tRuJFjFxurKykh5by0HzrwIVrePxv4xeGMBq0ONpz3m4sXBN AeY7aYS8FnHqm0HrgA2HhyZJpzO/blLF3vGgaYPef1/zXxvA9dmcJ28LeAr37QRDHNrc93 9pF48Da9UoZ4T6Lb0hdvtzZyoBTzrlkKUIfk3QnQ0eu9or2866oFKneEsTfLboFmKCaker ttH58df2vTQ7QK1565WiKtrLJOZoxad1TBYuhxHSjrBfcJ495VBfq7GQCfJTUQ== From: =?utf-8?q?Alexis_Lothor=C3=A9?= <alexis.lothore@bootlin.com> Date: Mon, 15 Jan 2024 15:56:30 +0100 Subject: [PATCH 1/5] wifi: wilc1000: set preamble size to auto as default in wilc_init_fw_config() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240115-wilc_1000_fixes-v1-1-54d29463a738@bootlin.com> References: <20240115-wilc_1000_fixes-v1-0-54d29463a738@bootlin.com> In-Reply-To: <20240115-wilc_1000_fixes-v1-0-54d29463a738@bootlin.com> To: linux-wireless@vger.kernel.org Cc: Ajay Singh <ajay.kathat@microchip.com>, Claudiu Beznea <claudiu.beznea@tuxon.dev>, Kalle Valo <kvalo@kernel.org>, David Mosberger-Tang <davidm@egauge.net>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, linux-kernel@vger.kernel.org, =?utf-8?q?Alexis_Lothor=C3=A9?= <alexis.lothore@bootlin.com> X-Mailer: b4 0.12.4 X-GND-Sasl: alexis.lothore@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788169410673987077 X-GMAIL-MSGID: 1788169410673987077 |
Series |
wifi: wilc1000: minor fixes
|
|
Commit Message
Alexis Lothoré
Jan. 15, 2024, 2:56 p.m. UTC
From: Ajay Singh <ajay.kathat@microchip.com> Changed the default value preamble to WILC_FW_PREAMBLE_AUTO in wilc_init_fw_config(). Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> --- drivers/net/wireless/microchip/wilc1000/netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Alexis Lothoré <alexis.lothore@bootlin.com> wrote: > From: Ajay Singh <ajay.kathat@microchip.com> > > Changed the default value preamble to WILC_FW_PREAMBLE_AUTO in > wilc_init_fw_config(). > > Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> > Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> The commit message should always answer to the question "Why?". I can add that if you tell me what to add.
Hi Kalle, On 1/18/24 10:31, Kalle Valo wrote: > Alexis Lothoré <alexis.lothore@bootlin.com> wrote: > >> From: Ajay Singh <ajay.kathat@microchip.com> >> >> Changed the default value preamble to WILC_FW_PREAMBLE_AUTO in >> wilc_init_fw_config(). >> >> Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> >> Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> > > The commit message should always answer to the question "Why?". I can add that > if you tell me what to add. Yeah, sorry for the lack of description, I may have forgotten to update this one. I suggest to update it with the following message: "WILC driver currently applies some default configuration whenever the firmware is initialized, and sets the default preamble size to short. However, despite this passed option, firmware is also able to successfully connect to access points only using long preamble, so this setting does not really enforce short preambles and is misleading regarding applied configuration. Update default configuration and make it match the firmware behavior by passing the existing WILC_FW_PREAMBLE_AUTO value (2 instead of 0). The updated setting does not really alter firmware behavior since it is still capable to connect to both short preamble and long preamble access points, but at list the setting now expresses for real the corresponding firmware behavior" To give a bit of context around this one: I do not have access to the firmware internals, I just took the patch from Ajay and I merely did some tests around it with multiple APs (basically, making a WILC STA connect and ping the AP), and ensured with wireshark to get at least one AP be really "locked" with long preamble, with WILC managing to connect to it. Thanks, Alexis
On 1/18/24 08:08, Alexis Lothoré wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > Hi Kalle, > > On 1/18/24 10:31, Kalle Valo wrote: >> Alexis Lothoré <alexis.lothore@bootlin.com> wrote: >> >>> From: Ajay Singh <ajay.kathat@microchip.com> >>> >>> Changed the default value preamble to WILC_FW_PREAMBLE_AUTO in >>> wilc_init_fw_config(). >>> >>> Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> >>> Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> >> >> The commit message should always answer to the question "Why?". I can add that >> if you tell me what to add. > > Yeah, sorry for the lack of description, I may have forgotten to update this > one. I suggest to update it with the following message: > > "WILC driver currently applies some default configuration whenever the firmware > is initialized, and sets the default preamble size to short. However, despite > this passed option, firmware is also able to successfully connect to access > points only using long preamble, so this setting does not really enforce short > preambles and is misleading regarding applied configuration. > > Update default configuration and make it match the firmware behavior by passing > the existing WILC_FW_PREAMBLE_AUTO value (2 instead of 0). The updated setting > does not really alter firmware behavior since it is still capable to connect to > both short preamble and long preamble access points, but at list the setting now > expresses for real the corresponding firmware behavior" > > To give a bit of context around this one: I do not have access to the firmware > internals, I just took the patch from Ajay and I merely did some tests around it > with multiple APs (basically, making a WILC STA connect and ping the AP), and > ensured with wireshark to get at least one AP be really "locked" with long > preamble, with WILC managing to connect to it. > Here are some more details about this change. It have been implemented to address the transmission(Tx) blackout issue observed in the 802.11b mode. The modification has no impact on the other modes, which will continue to work as they did in the previous implementation. This change will allow the 802.11b transmission(2, 5.5, 11Mbps) to use long preamble. Regards, Ajay
On 1/18/24 17:52, Ajay.Kathat@microchip.com wrote: > On 1/18/24 08:08, Alexis Lothoré wrote: [...] >> "WILC driver currently applies some default configuration whenever the firmware >> is initialized, and sets the default preamble size to short. However, despite >> this passed option, firmware is also able to successfully connect to access >> points only using long preamble, so this setting does not really enforce short >> preambles and is misleading regarding applied configuration. >> >> Update default configuration and make it match the firmware behavior by passing >> the existing WILC_FW_PREAMBLE_AUTO value (2 instead of 0). The updated setting >> does not really alter firmware behavior since it is still capable to connect to >> both short preamble and long preamble access points, but at list the setting now >> expresses for real the corresponding firmware behavior" >> >> To give a bit of context around this one: I do not have access to the firmware >> internals, I just took the patch from Ajay and I merely did some tests around it >> with multiple APs (basically, making a WILC STA connect and ping the AP), and >> ensured with wireshark to get at least one AP be really "locked" with long >> preamble, with WILC managing to connect to it. >> > > Here are some more details about this change. It have been implemented > to address the transmission(Tx) blackout issue observed in the 802.11b > mode. The modification has no impact on the other modes, which will > continue to work as they did in the previous implementation. This change > will allow the 802.11b transmission(2, 5.5, 11Mbps) to use long preamble. Ah, so it fixes a specific bug (and makes parts of my suggested description wrong). Has there been any report about this "TX blackout issue" on the mailing lists ? If so, we could enrich the message with some details from the report and add some missing Reported-By/Fixes/Closes tags. Alexis
Hi Alexis, On 1/19/24 00:43, Alexis Lothoré wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > On 1/18/24 17:52, Ajay.Kathat@microchip.com wrote: >> On 1/18/24 08:08, Alexis Lothoré wrote: > > [...] > >>> "WILC driver currently applies some default configuration whenever the firmware >>> is initialized, and sets the default preamble size to short. However, despite >>> this passed option, firmware is also able to successfully connect to access >>> points only using long preamble, so this setting does not really enforce short >>> preambles and is misleading regarding applied configuration. >>> >>> Update default configuration and make it match the firmware behavior by passing >>> the existing WILC_FW_PREAMBLE_AUTO value (2 instead of 0). The updated setting >>> does not really alter firmware behavior since it is still capable to connect to >>> both short preamble and long preamble access points, but at list the setting now >>> expresses for real the corresponding firmware behavior" >>> >>> To give a bit of context around this one: I do not have access to the firmware >>> internals, I just took the patch from Ajay and I merely did some tests around it >>> with multiple APs (basically, making a WILC STA connect and ping the AP), and >>> ensured with wireshark to get at least one AP be really "locked" with long >>> preamble, with WILC managing to connect to it. >>> >> >> Here are some more details about this change. It have been implemented >> to address the transmission(Tx) blackout issue observed in the 802.11b >> mode. The modification has no impact on the other modes, which will >> continue to work as they did in the previous implementation. This change >> will allow the 802.11b transmission(2, 5.5, 11Mbps) to use long preamble. > > Ah, so it fixes a specific bug (and makes parts of my suggested description > wrong). Has there been any report about this "TX blackout issue" on the mailing > lists ? If so, we could enrich the message with some details from the report and > add some missing Reported-By/Fixes/Closes tags. > For this issue, there are no details on the mailing lists. It was discovered by internal QA team. Regards, Ajay
Alexis Lothoré <alexis.lothore@bootlin.com> wrote: > From: Ajay Singh <ajay.kathat@microchip.com> > > WILC driver currently applies some default configuration whenever the firmware > is initialized, and sets the default preamble size to short. However, despite > this passed option, firmware is also able to successfully connect to access > points only using long preamble, so this setting does not really enforce short > preambles and is misleading regarding applied configuration. > > Update default configuration and make it match the firmware behavior by passing > the existing WILC_FW_PREAMBLE_AUTO value (2 instead of 0). The updated setting > does not really alter firmware behavior since it is still capable to connect to > both short preamble and long preamble access points, but at list the setting now > expresses for real the corresponding firmware behavior. > > More info: it has been implemented to address the transmission (Tx) blackout > issue observed in the 802.11b mode. The modification has no impact on the other > modes, which will continue to work as they did in the previous implementation. > This change will allow the 802.11b transmission (2, 5.5, 11Mbps) to use long > preamble. > > > Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> > Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com> Patch applied to wireless-next.git, thanks. a8e5fefa9123 wifi: wilc1000: set preamble size to auto as default in wilc_init_fw_config()
diff --git a/drivers/net/wireless/microchip/wilc1000/netdev.c b/drivers/net/wireless/microchip/wilc1000/netdev.c index 91d71e0f7ef2..8923eb64c964 100644 --- a/drivers/net/wireless/microchip/wilc1000/netdev.c +++ b/drivers/net/wireless/microchip/wilc1000/netdev.c @@ -284,7 +284,7 @@ static int wilc_init_fw_config(struct net_device *dev, struct wilc_vif *vif) if (!wilc_wlan_cfg_set(vif, 0, WID_11G_OPERATING_MODE, &b, 1, 0, 0)) goto fail; - b = WILC_FW_PREAMBLE_SHORT; + b = WILC_FW_PREAMBLE_AUTO; if (!wilc_wlan_cfg_set(vif, 0, WID_PREAMBLE, &b, 1, 0, 0)) goto fail;