Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp584047rdb; Thu, 15 Feb 2024 08:59:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXmKw7Xw9YTp4bzWRVqtfpvJ/h0JoUE/qBY5Gly4dDVxhJAabcCh3sR4o+Y0kkx5yfwjKFua7+b+NbfKZS08Jx60y6towBSGTvhTOOl0A== X-Google-Smtp-Source: AGHT+IH1NsJ4ZBaJspjMoItdc+QyOwUjSA6Ntm+r3WCypvO70rfAbt2mqW1jWGqyirCntF1EQ8bI X-Received: by 2002:a17:903:2287:b0:1d9:ec15:e4d9 with SMTP id b7-20020a170903228700b001d9ec15e4d9mr2486582plh.27.1708016352131; Thu, 15 Feb 2024 08:59:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708016352; cv=pass; d=google.com; s=arc-20160816; b=G3OErxOznRyWMR60Js1urTeW26pbeNmDR/jrpDIGFC5+6fJq/VuPEY5XGO/tK3nGfQ 7o5Wt7F2mhCU/pS9Uje0nPPdx+nIPQza+wd15yuUrZ7kUxCYxJwjOVRb9Np247d8/zfg nHVyZ1+utXsGNbXkA4IsDfwpKbWVMoWoFa51pSy8P9j5DPw5kCh/svb5MPNPL2nlz7/6 XVTAId2x8MGbtcNcgjQR9o7Sa38L+JHTp2xQsEJ/3eJ0kypWwTcISOG49rMj6LwMJSQK PPMngmzOikq2k43Zlrb1fPSNW3UAJ0RNlAMp62eznayFAEFGj/kJnQM6Ry/o2gxxdduY KSxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=tHaTc7mB5fC1U8nauAM8JVm9/GGEYLSsMESHBa5W6H0=; fh=xP2qW0lBLBq9aUQS8KTA7D3PlXWwsStLI0x+BxAaHqY=; b=hEeqvHUiunzeIaJNxO2CvEoDI+tAsuGZhtUDstqYmNNVMbI9B4/3Iuux2cD14V16kQ YKoeIwxLpIxTq2Fsxp/XhT0/LVyZVXtP9+RdvHAAATJfspVQ+RpL1I7Oq65Lv+/TZop2 p7BQhxXiL/ZRh010s1TKmRiBp1Ev0yMzz9qv0uqFWDreO1FzAyglz/7jG9cCnxcUdgTK RSwf0xKR6YOr4zLRJsd0HAY2ioNBjSJFcijbCmrUMusk0fSJ7jKYnIXGQZ7d/vB5zuQq NTAvhsBxRaeeEqB5qdvAqpwhC6h5bJjrmr7uQIjIplN9Rm8RnxFHxp99ixa2vzH9HDNS GnrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rcXLgPJy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3640-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3640-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lm11-20020a170903298b00b001db67377e9dsi1496982plb.176.2024.02.15.08.59.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 08:59:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3640-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rcXLgPJy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-3640-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3640-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D22EF28167A for ; Thu, 15 Feb 2024 16:59:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FAAB1369AB; Thu, 15 Feb 2024 16:58:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rcXLgPJy" 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 DBF15135A75; Thu, 15 Feb 2024 16:58:19 +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=1708016300; cv=none; b=sTUhWYQWc6XBiU0KkdWqT6eb4UAs34QeXaJn2F5GkM/Z99jBpC4pA76fti4GySFHlnjvrzc1VL6pP8/+b6HrH2SbGmNogubcW1pK0LByssnJIsVNQB5sWMeALwJovJeam+fAPCPhQETMVCgid+tMqaT2ie0i5j5SUMx63ORl1ys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708016300; c=relaxed/simple; bh=tHaTc7mB5fC1U8nauAM8JVm9/GGEYLSsMESHBa5W6H0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=up+iTjMdEZ21DxfLpe1g+bKsrs+C+0SEbltk2Q5uXtFoFjxdmW7jiRbxWST5T7Gq8/9eehl2wyw26/x701UuaC6Q+xki+6pLfHAO7Pu+oRsOxFA4ePDNP01kJAFeC49KeJdMKk24YFRxi8XRvafe616Roh2L9PPwxqjlX2q9pss= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rcXLgPJy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD083C43390; Thu, 15 Feb 2024 16:58:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708016299; bh=tHaTc7mB5fC1U8nauAM8JVm9/GGEYLSsMESHBa5W6H0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=rcXLgPJytbnbK9h2e3K1BhIMHqEsPeuPz3Uw/tCTPnw5uB6L/as07LFmlF7DtuiX5 V2wiz9hTj3ZdJn0WpwSKK2Kt7r3CJnQBl7Vj5ujzxqEYQIsgkmjIFeTKe519DeUAai w3AOvzDQLyk5MD5AGEdJ5XdN+sBAtO6/L6WZHdlwsxLGubG325xbExt2QMVVUmHmj5 1Sw3Fe07qnr26okcMNiw4XIs8z6wbmb3HRTA9a272iu3v2Ypp6DSDRmtGdDVj59dmg siUD50QoG1rlBitXXy6kxF20hJxpnChBAIsXKua8stjZvdJaNlMBucSYLr5pU6y1/o 25RYruXj8gfEg== From: Kalle Valo To: Alexis =?utf-8?Q?Lothor=C3=A9?= Cc: Johannes Berg , Ajay Singh , Thomas Petazzoni , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Igor Mitsyanko , Sergey Matyukevich Subject: Re: [PATCH 1/2] wifi: nl80211: force WLAN_AKM_SUITE_SAE in big endian in NL80211_CMD_EXTERNAL_AUTH References: <20240215-nl80211_fix_akm_suites_endianness-v1-0-57e902632f9d@bootlin.com> <20240215-nl80211_fix_akm_suites_endianness-v1-1-57e902632f9d@bootlin.com> Date: Thu, 15 Feb 2024 18:58:15 +0200 In-Reply-To: <20240215-nl80211_fix_akm_suites_endianness-v1-1-57e902632f9d@bootlin.com> ("Alexis =?utf-8?Q?Lothor=C3=A9=22's?= message of "Thu, 15 Feb 2024 15:13:52 +0100") Message-ID: <87cysxekbc.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Alexis Lothor=C3=A9 writes: > User-space supplicant (observed at least on wpa_supplicant) historically > parses the NL80211_ATTR_AKM_SUITES from the NL80211_CMD_EXTERNAL_AUTH > message as big endian _only_ when its value is WLAN_AKM_SUITE_SAE, while > processing anything else in host endian. This behavior makes any driver > relying on SAE external auth to switch AKM suite to big endian if it is > WLAN_AKM_SUITE_SAE. A fix bringing compatibility with both endianness > has been brought into wpa_supplicant, however we must keep compatibility > with older versions, while trying to reduce the occurences of this manual > conversion in wireless drivers. > > Add the be32 conversion specifically on WLAN_AKM_SUITE_SAE in nl80211 lay= er > to keep compatibility with older wpa_supplicant versions. > > Suggested-by: Johannes Berg > Signed-off-by: Alexis Lothor=C3=A9 A pointer to the discussion would be nice to have: Link: https://lore.kernel.org/all/09eeb7d4-c922-45ee-a1ac-59942153dbce@boot= lin.com/ I assume Johannes can add that. Alexis, thanks so much for working on this! This has been bugging me for long but never found the time to investigate it. --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes