Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2556163rdb; Wed, 21 Feb 2024 11:13:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXgxPocPFeG5PvzN97mPZAD8JpTeDlAaL12gJXZrmvxJ14YFequkGLr6kRN35Q1WLeX3LWJmXr5BK4Ymwo5Lj6WZuaSQ6wzLutSuqicMQ== X-Google-Smtp-Source: AGHT+IGYvz8ocdoiVTrnd/ptiOtB6yiAMBanaWBYKhlshUMho1dlA9pdaZuBKp1qcl7YrIDmOxJY X-Received: by 2002:a17:902:d48e:b0:1dc:1e7c:6dd4 with SMTP id c14-20020a170902d48e00b001dc1e7c6dd4mr6299803plg.68.1708542821996; Wed, 21 Feb 2024 11:13:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708542821; cv=pass; d=google.com; s=arc-20160816; b=ccxhualHyDPWSGMuUcApAD7UQgrde0B05p5yEdZWFitcl1CQAb+t4pQ/mMIeJ8FzML ue79iUtZu7fsw+vDz3NjKaGwqqVu7zcCXjRN1C6mV9DwNLOs7XvMade02nvehyeU2CeF j0rT69qL0cvSWehaTkydxmhuQy8JH3EcgBy82nBHwE/yVDXhVQGyCXlixiVlupNTdCRZ yE3NghTmvjg5mguGm33gMEYliqCzy7U7VR81zk/IW+uwKrSNtGfFXTXlIbpjEw0Dh5ru NNbncVbS/tXjMMY17jWvyuSuyABb5Wp3z+fOuFesz4obXsan9XnDJTaeO/wMHO5RuSEV AyCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=4Ajgmu1YBYolt2qcHh2FzfwWAJpvzrv8hf7VfslDjLU=; fh=viwtcgDZw3DI15Bh1Z17sC1ZMSSdHDkdnGSSP4cUN+k=; b=uT38Qp32AvW80r91U9An4ez3FTWcrO74Cjeyxs/TaLIq7wkI2gqJlUtdk2MiW3MZWd uGH0HQ/HxDe/KBawCoeSayOeufXgnaNK5RWoajthNyeIdn2b3bNR0OzL9l90xLpDq/GE u5XwOWp76OBiUraKa68tH1migBdscZt8QYJSoQKEBjwlu8UEWlXlrEh/rd17PqwIlcy/ 1p6ux8Xuo85H3rg1dlUluDk+jtfsNq23ds3yXdLn1WJKWK9UrxW4YXJ5JanbV0YQdHs6 vnq4bfWQZDsPf0J0NWMCcslAJXtYzlO6hrYr/TiWVYs/9adTIdvoyfiECrWQDP+jyKuA Z5sg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YX0oeWJz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3878-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3878-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 p17-20020a170902e75100b001d95e26b2bbsi8816919plf.75.2024.02.21.11.13.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 11:13:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3878-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YX0oeWJz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3878-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3878-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 EAACCB21DCE for ; Wed, 21 Feb 2024 18:54:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A09185927; Wed, 21 Feb 2024 18:54:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YX0oeWJz" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E5E9283CCE; Wed, 21 Feb 2024 18:54:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708541684; cv=none; b=IVEv30orgwj2xsEmj1PuPhYOssptTanTFC9gZY0F92hVi/81ltCLY7ZGJQYxFkSAyU2ikJhMOVkoqcn1dMEifSCRjotzF9bO9osO/4RkXvOidhly1kx/gz0grT8iEyMnMiA9Eg+tbUPIlMmwfTHW5ekIdGJPG76KEha/bmAiFHg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708541684; c=relaxed/simple; bh=b/p+fxSCKAw7wiBKITe2X7yTKmf+xbNvYQZ58i6OmbQ=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=btf/rr0WZkbb5yISwXkEAdG4lL3SdUI/wD19HQqwoE5YAJfJ8O6OZlclkOIax5WERGEheP/fCw+EelGxU0fpgUeuYiq2FeKKx8SsL5U3IFsNMIVjvYMQKLGja9rIqMVztsxRKzzI5mm/fJlmsnulor1cIwM8mRNrivtXEyvbbOg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YX0oeWJz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5354DC433C7; Wed, 21 Feb 2024 18:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708541683; bh=b/p+fxSCKAw7wiBKITe2X7yTKmf+xbNvYQZ58i6OmbQ=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=YX0oeWJzVn5Uva2Oc3cKr/Mp8sWYNfTnMZrzYfPemrGbaPTJGUK/6NpWLd3pb7LK2 r4yKiA4ASt0AigwCJ42VuKy7UtuR8i2Gud8R+/rwFWkL5TyS91060BKaoeC7/sGfDI idxfcCy/bBi2rkGQ9ufRa6j+JDcLQeG3ZQxr+nlihh6KNwtLHFOQFUM9c9WkTxrZQd P2XlOQq+oFPHJFlvka9fTNnGWGvVn+PKb7z2iXOSOzzGx0Nu7AX2Oama4tgqRXK/54 rY57mtwj8OryjoAznRy6yuNZSKyV6goWm/sUdTD1+lAr0t+fuIMkPlFn67ic/Shcra QdgQdTzImS5Kw== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH 2/2] wifi: wilc1000: remove AKM suite be32 conversion for external auth request From: Kalle Valo In-Reply-To: <20240215-nl80211_fix_akm_suites_endianness-v1-2-57e902632f9d@bootlin.com> References: <20240215-nl80211_fix_akm_suites_endianness-v1-2-57e902632f9d@bootlin.com> To: =?utf-8?q?Alexis_Lothor=C3=A9?= Cc: Johannes Berg , Ajay Singh , Thomas Petazzoni , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Igor Mitsyanko , Sergey Matyukevich , =?utf-8?q?Alexis_Lothor=C3=A9?= , kernel test robot User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170854167959.1918455.695828297472841721.kvalo@kernel.org> Date: Wed, 21 Feb 2024 18:54:41 +0000 (UTC) Alexis Lothoré wrote: > The driver currently raises the following sparse warning: > [...] cfg80211.c:360:42: warning: incorrect type in assignment (different > base types) > [...] cfg80211.c:360:42: expected unsigned int key_mgmt_suite > [...] cfg80211.c:360:42: got restricted __be32 [usertype] > CHECK drivers/net/wireless/microchip/wilc1000/netdev.c > > This conversion was needed because historically the external supplicant > (observed with wpa_supplicant) expects AKM suite as big endian in > NL80211_CMD_EXTERNAL_AUTH message when the AKM suite is WLAN_AKM_SUITE_SAE. > This is not needed anymore: > - new (to be released) versions of wpa_supplicant now reads it in host > endian _while_ keeping compatibility for older drivers > - for new drivers used with current/old wpa_supplicant, this conversion has > been added to nl80211 to force big endian when the AKM suite is > WLAN_AKM_SUITE_SAE > > Remove this not-needed-anymore conversion to fix the sparse warning. > > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202308290615.lUTIgqUl-lkp@intel.com/ > Tested-on: WILC1000 hwB SPI WILC_WIFI_FW_REL_16_1-13452 > Signed-off-by: Alexis Lothoré Patch applied to wireless-next.git, thanks. 00413dd36414 wifi: wilc1000: remove AKM suite be32 conversion for external auth request -- https://patchwork.kernel.org/project/linux-wireless/patch/20240215-nl80211_fix_akm_suites_endianness-v1-2-57e902632f9d@bootlin.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches