Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp406903rdb; Thu, 18 Jan 2024 07:08:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IH844PYi8sq9KUoJbUCMWOJa0GAhggyYCDrG7payckoPGTa2YkVJPG1GR+gHUE2fFEo4OM1 X-Received: by 2002:ae9:c208:0:b0:783:6e78:5126 with SMTP id j8-20020ae9c208000000b007836e785126mr870648qkg.19.1705590512084; Thu, 18 Jan 2024 07:08:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705590512; cv=pass; d=google.com; s=arc-20160816; b=OUAmp4WmL8s0vVj5ewLEiEI8Y5TmFUcEkVe0ijKitO52cjOzgP8MBjD+CpFV2cat6W c/TdVX0u3k7j9vkJEIUcaRvmROy9PZ7FtgKk306QYC0XYkQRjcvSUnvIZJfuXsRQ/5uP wXkZdBoDSAJe1Ve7FHdX7z2RRcy8R7bIz3Qk6K243S225B3GvD/flPsJ0oSVqzYocruw 3Wc+g87ry3RFcXNvJJzImdAVLY7ZPTFy/SrC/FR70xcNr+k+BOECarOnm7cm6HqaerAS cDCINnvxAe7l8TGXVOkmPyBFevvcdcvDI0qZVBKpLMavpbAGgVVS3FmBXmOcIPD0mJ4f w7Dw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=iQAD/UZ9fh1/qpvfDjH4Pqz6jPjqTD3KaK9G915cbu4=; fh=js9qvX0dq+ebHVDB8o1rVCkwNN44xgRYRz9duIW3lfw=; b=JkVKeED6yhDFI4sk7ayiHZ0ng5spPS9n+nhusH4tXzV+Bb7u6JwE0yWtr4mSpxGcH1 KR8jW2bgRCvHqyoIaHnK9wVAyuW3t56E51fgd67uj4WpeFDMerJ5neIY4HytpnnPsGPy Vy287OSZoBU93xgZ67WFGxOuTfPmK+SlvXAUIbSm/XfWD4PMuQtqCCWcW7TH7zKJ2cz6 tW5ZTKw15wiDspOAmU0FjBbh8cXIfIivuohgPcHyJXCWSeX7owD+Tc6dyb+ITZibkxGs RFUZFEZPnMcHPZKR5eNihXYw6VV8O2LiNZ8GIJ0TbsqpzfjxTO0W3J5vQNKdJ3JecJeZ lvvg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dDasMuKO; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-wireless+bounces-2191-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2191-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c13-20020a05620a200d00b007831b225795si13811760qka.187.2024.01.18.07.08.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 07:08:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2191-linux.lists.archive=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=dDasMuKO; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-wireless+bounces-2191-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2191-linux.lists.archive=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 D1A021C233EC for ; Thu, 18 Jan 2024 15:08:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 465C41E51D; Thu, 18 Jan 2024 15:08:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="dDasMuKO" X-Original-To: linux-wireless@vger.kernel.org Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 DAD851DA39; Thu, 18 Jan 2024 15:08:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705590508; cv=none; b=IgqfValUCofln7iMzQC3N3NjoKpAjKDJpdnHPNyWcI3C5KIDkIjISF0e6fP2cMUi1JcCHEsN2nU5T79i5z2iHjjxVJ1SOSKVkLBByAKZUsO0OsnpTYwjAxl/w3a/UVdbPaEssuLCm2FmDDMV6rVmhG6NvMWkco2/EO31vlmox6E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705590508; c=relaxed/simple; bh=xG63ptXfgfpddL3ZDZjgviSVKaNelChLn9GLTViB+qQ=; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-GND-Sasl; b=L7+KKaiv3ZA9on6DdVoj3EFCjuCDobcsip7/inJ7yaO2x/GI2QgqcE/E6dTg0fKRVS6lpPrPXxemqgi1mnk+rLcO9VcbqK5t+WIS2BWxO3qch6NZo+uoBm0+uwNyxu2k9nfhD2Z1PynoBvOGpzUlqrHq9cgwrcTtnN2e3dPMT7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=dDasMuKO; arc=none smtp.client-ip=217.70.183.197 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: by mail.gandi.net (Postfix) with ESMTPSA id 8F2E21C000A; Thu, 18 Jan 2024 15:08:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1705590498; 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=iQAD/UZ9fh1/qpvfDjH4Pqz6jPjqTD3KaK9G915cbu4=; b=dDasMuKON9WYTKRaN0Tfbw+RYw3WU7gTWGUbz1JamL8FOStdmKWdb1E0dyTgiX/p8ByiFI tkgPTpqB/KUSOljb+sxj2B6FHCnS/ALJTpIAUa+YTlKu5GUNtCGj3ocG9EMqzU4mWOKbyL HkRcALFq4+k/n8r3xP5qegKKEDdhXY3KZvs5xWDx2EkedVbOiuFAwTz5yZLQrMfyzijMH9 aOcNjlHPXKItvCmHLsSy/HZidCyP1vHrhFHslbVVcAADt6ajd4HTZoll5LIih0Q+UuzV1K rZ56PHHHhSHls5lAMpnF51Wba2nxxnPzws6yf0tECPrF0vDAU5M/3DT4bDE9zQ== Message-ID: <000e823e-ede1-408b-b8e1-fd9c1c73fd6e@bootlin.com> Date: Thu, 18 Jan 2024 16:08:17 +0100 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/5] wifi: wilc1000: set preamble size to auto as default in wilc_init_fw_config() To: Kalle Valo Cc: linux-wireless@vger.kernel.org, Ajay Singh , Claudiu Beznea , David Mosberger-Tang , Thomas Petazzoni , linux-kernel@vger.kernel.org References: <20240115-wilc_1000_fixes-v1-1-54d29463a738@bootlin.com> <170557027237.2797779.2354857290141885659.kvalo@kernel.org> Content-Language: en-US From: =?UTF-8?Q?Alexis_Lothor=C3=A9?= In-Reply-To: <170557027237.2797779.2354857290141885659.kvalo@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: alexis.lothore@bootlin.com Hi Kalle, On 1/18/24 10:31, Kalle Valo wrote: > Alexis Lothoré wrote: > >> From: Ajay Singh >> >> Changed the default value preamble to WILC_FW_PREAMBLE_AUTO in >> wilc_init_fw_config(). >> >> Signed-off-by: Ajay Singh >> Signed-off-by: Alexis Lothoré > > 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 -- Alexis Lothoré, Bootlin Embedded Linux and Kernel engineering https://bootlin.com