Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp292639rdb; Thu, 8 Feb 2024 06:16:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXdyGBNpl7PqKOKdDMdjb4sv5Yub1mmvZ3cscCXLQ0PSVeRIG3p7ELGj0M2LTC/SQLSM5Qwrm42wtV7eVvC8VnwRMpzxLT3oo6EWtGxYw== X-Google-Smtp-Source: AGHT+IHEu6wxdbqOxjcwMdb5QBx+Eojq6/DX62qIduEshfaYhBC136bRNkbaTrCA8ppBhpm3tWSo X-Received: by 2002:a05:6830:344a:b0:6e1:12fb:aa27 with SMTP id b10-20020a056830344a00b006e112fbaa27mr9044653otu.12.1707401773047; Thu, 08 Feb 2024 06:16:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707401773; cv=pass; d=google.com; s=arc-20160816; b=GoLikBIrUhv0g52IFIfTSgeo3aBPaNxigMfNmpKRYkSBjzBfvIzpVM09Zslc/+bG9X J5ciBgrGTIW9/nlJ2X8OIDNbRSqWuQ8dwDTyPnykF0FLLjycNR6qOuUt+MOFUpuuYTTr Q7JerDZGYZZBYcA1pPPG0lFLjZ7ThcdsE5KmBA3mjjZlKeNNs7KPdEZsuxOCmlTa4D2z AdWPdXTNz1WV26mMwB/AbSX00LtNBAH9zJYRL2HDlt/H5Cp6WElQmWCWwpxEA7z0VSiH 9aZIec4fraIDd8aSPyo7NHS3+47Yd+BQlkseH0cUtLCotEHpdns30iOUFSvLZFPC49Y8 +yfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=5wjaga5xoExEujSbT0Acktc+XrWkfwDH2yfFbAKwyB0=; fh=f5hn2hkpAG3iAdS+Qzh0K/qlNeq2juCnvCQuJG3tSq4=; b=om9xHC4bxuBS1EBJ8RHOroHHHIk5Pj18WB8p/7TNIiKpYzNT8m74byhGxw0E1uOIvF AFRrmKuFA9E/29nPzkp08CPQ+k+7GT2Y8mB8Jh8jjYNNOK3jJBaAwMhr0LQIMbUBGJjN 41FRgskg34QiutWqZukuv7QJr/KlYrlve2rcYL3xb+OgBCk5KomquWOVi2ovXwyggzt7 kiNvx5YUEXkj2/CmfJl5IWIgztGULF1WF6AMTf4S757nJ3TJYeU9OoCvsDz+sPsaOvS0 9WBeQGRGy6u1kT6/yVHsd5aa7mbOjvDv+JQtgMrgQhy14d9Hysfk2IVgiVYT7Kh6mOru R5FA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=NHolznpL; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-3339-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3339-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net X-Forwarded-Encrypted: i=2; AJvYcCUc0S5ibO6FJrbmroHc8PGsxTcgMyT7CQuozCJ7wgyHbrgvW89UUTS+p8QjB161ktJ5NxlqQXJxBzIqe1XKiNSYlfenB+FqJ+8KNm6UHQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j20-20020ac85f94000000b0042c2797629csi63110qta.771.2024.02.08.06.16.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 06:16:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3339-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=NHolznpL; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-3339-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3339-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 7CC841C273C4 for ; Thu, 8 Feb 2024 14:15:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF54D78696; Thu, 8 Feb 2024 14:15:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="NHolznpL" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 32B50768E9 for ; Thu, 8 Feb 2024 14:15:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707401728; cv=none; b=kOsszSvVUwzKTDuxgLM3dq+iwd2HzKRrO6eUAknxvEc+PISsdG9DaMzVLUSMnZP7BcbezYX+C9fpY91+s31Y+wnbH81I3h41evV5T8yM074QTa/8mDwb3r1Qx+mkK/ui3pBDZd350d9fJWZ5ySrhUdvm7ICJLuAr2xlmOTngcjA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707401728; c=relaxed/simple; bh=9AIBb3iZHa1191UrOwMgj9ffYgrh7mCXUXRtu6cVm7Q=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=VijrwYwUyUz2Qf6z8TXP4I4xp2YInDgMT3b20rIaa6NP8JB2GdmhPry9V+6Q0WCHLtdiSCYONo3HiM5l9PSRJDwB3efFy5GD+8B2Miw+2xPaGIM29eyFKnxohxDHr6ljsLkZSrdgF90qMhqwrv79B2oaRbXZZkytj4gPZHGGAO8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=NHolznpL; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=5wjaga5xoExEujSbT0Acktc+XrWkfwDH2yfFbAKwyB0=; t=1707401727; x=1708611327; b=NHolznpL/W8UqOdoevXmkXtoP3PdpnqoPVLc79fpnfPJ7fh x0z5zbA/80BlPpaxKbo2SgMQN4Wb6LyYjOCNzHXNcS3fFpEdsgfmSi/AWqJDPXhM22fP9OaSqUsbj BlTgOswMHCbZkGYhF4b/6LKBvhuvE0lkyYHOskgUPmJKgD8/rserdE2wpF25CILGPChnJstz09HXp 51m40j4TZeleAYHytB7ynE5ntOmKdLwCPEzIe9IBR5E48zu6EEZ1SfFFjPgHnRCMjCla8q83qjdqD aMjKIZGY+j45Xk1ZJQzTSkuYgIPSsujStMTu8XQJmZJpvP4qSAYR3aPMomSPaT7w==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rY5BT-0000000HW84-2LXh; Thu, 08 Feb 2024 15:15:23 +0100 Message-ID: <4e3b72023f30d8765154805816e6eb1f4e73593c.camel@sipsolutions.net> Subject: Re: [PATCH] wifi: brcmfmac: do not cast hidden SSID attribute value to boolean From: Johannes Berg To: Arend van Spriel , Alexey Berezhok , Arend van Spriel Cc: Kalle Valo , linux-wireless@vger.kernel.org, lvc-project@linuxtesting.org Date: Thu, 08 Feb 2024 15:15:22 +0100 In-Reply-To: <1bc49c2a-1f62-4801-90c3-048b27f6475c@broadcom.com> References: <20240208085121.2430-1-a@bayrepo.ru> <1bc49c2a-1f62-4801-90c3-048b27f6475c@broadcom.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 (3.50.3-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Thu, 2024-02-08 at 15:06 +0100, Arend van Spriel wrote: >=20 > settings->hidden_ssid has already been used above in following call: >=20 > err =3D brcmf_fil_iovar_int_set(ifp, "closednet", > settings->hidden_ssid); >=20 > So we pass the value as is to firmware using the same assumption, ie.=20 > NL80211_HIDDEN_SSID_NOT_IN_USE. Is this not ABI thus very unlikely to=20 > change? The ABI won't change, that'd break all the users of nl80211 that use this :-) > @Johannes: > Actually not quite understanding the reason for having this setting in= =20 > nl80211. hidden_ssid means SSID element length is zero, right? >=20 Well, there at least _were_ APs doing the correct SSID length but setting all octets to zero ... Not sure that's still a thing though. johannes