Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1301965rdb; Mon, 19 Feb 2024 10:27:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW1+FH0wsD9UJZ1Q29Zluy/QBf5go0UihO7htGjVJWs1l9m0d8gSxI8+/9CudX5wv3CsaCj44wEVmDNSt+dSFZeYIZ2n1GsakAVs8hTGA== X-Google-Smtp-Source: AGHT+IEYiOWPvxQsEJ1vRhzqeOM5wzmVriwZPavaN3rmGIXRH6U58CSEcS5J6h7Lv7al/Ez4339e X-Received: by 2002:a05:6358:751c:b0:178:fce4:5f71 with SMTP id k28-20020a056358751c00b00178fce45f71mr14794959rwg.8.1708367239068; Mon, 19 Feb 2024 10:27:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708367239; cv=pass; d=google.com; s=arc-20160816; b=aGpGANFTokK+9ySY60A9S/sW1leTisR8YRA50IGBdw1UX/YhBQKSkLWfsQqDIH/kZH Xt6HGQvJhtpdb3/HGaNj7FLxRsTw5Jju9kuBSYz8Csg6K+Gfz2r1vVGKhOy8kl3v/xn1 jAJ82Zt06kx2iVkjPGAJSIyaW3uK6gYZAJDEQCLQh99WQYRqri7kqzop85tmYYlveBh5 oHAVbA1FoTWFOmKhkjBE/6zv0SI+f81lpAs+E6HyvQmlyn7AXnY/kCRuAWaS3F0u1WlU tSstNnOPGxjLQtAtGzDhpCYe6Wc5QYyWaTBbj76sl4vlN/4OulTjmV24VrsqFnPA8azG nkeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:date:from; bh=j8mH/rUwiHy4CNemwkQXQoTMuy/hwfhLJzdtSmTIsBA=; fh=JLVrDoro1e8CkQcmIT2Zl/gwKniElpuTcwSPfRIjofk=; b=uHikwnuBEXSWG/s9exX6KOqVVdUq6MS4uh93lbvGQYAdjd//3WsQ1m6xYgQv4eJ4R6 CnZp/AZmOUwY3VfM9KMd9UYpQjMx9s0GU6BIKDE3GwQKu/5HVT6O4Csrkc1qitKZfFnG YHj6V4CA4SacwfuQd8r7Cau/K/68fybSJHdGmf7XZmLYQ0n7XDhj4en0p/np3+b9f20n 4kOB2yFXeaVhGKbvQ/3gVw2ewhCkztko9Ngx6yO7gYao5JpaM/eZN1ygmzi/AE/V/+XK 3emHHmWL8D5g+huefgN5PK2bmpYBvWoY7HANCzlY1D3KQoKqBsVS68f5e5nge0UlnV9A qiog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-wireless+bounces-3792-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3792-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w2-20020a63b742000000b005dc7e782c25si4795063pgt.473.2024.02.19.10.27.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 10:27:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3792-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-wireless+bounces-3792-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3792-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 192F0B21286 for ; Mon, 19 Feb 2024 18:26:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C87A44C88; Mon, 19 Feb 2024 18:26:17 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) (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 6762D446A1 for ; Mon, 19 Feb 2024 18:26:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708367176; cv=none; b=KxoCggvw3FCXw78sDO2sLfPrg6yXA5fbvS6q42Qu5Z9Z4ZbZzKsTIK5PduOtGLHwWPRwiu5ui33nhSA5NOoAHkdVdfTA760NyynjqRifFGC+EllZB8wxUEjICo7ujDKLJsbUZGw7lACXaQtVSGIHI6z2uaV6x1IyE5PVf1kpHZA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708367176; c=relaxed/simple; bh=Iy6zVhsNRhQZjW6knEl5S24urcJnl5tZ43JjPWpUb+0=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dbHNoI6XKZK/5ZnF9HRYpZLIbTRHc08yRHP9FwXi5WfQCfuuQwhY7QR+y1rs2DIGZINw/EIq/6CVMisVHTfIDeXJkkcVh6tpyYtMuyF11JVL9k+jZcc0IcS7EP+9raQ1Zv8/dWi5KpM/nSs74TxE/5ZKVv6eaYjHMWp2aJ/Kpu8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-26-217.elisa-laajakaista.fi [88.113.26.217]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id 340bcc1e-cf54-11ee-b3cf-005056bd6ce9; Mon, 19 Feb 2024 20:25:05 +0200 (EET) From: andy.shevchenko@gmail.com Date: Mon, 19 Feb 2024 20:25:05 +0200 To: Alexey Berezhok Cc: Arend van Spriel , Kalle Valo , linux-wireless@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH] wifi: brcmfmac: do not cast hidden SSID attribute value to boolean Message-ID: References: <20240208085121.2430-1-a@bayrepo.ru> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240208085121.2430-1-a@bayrepo.ru> Thu, Feb 08, 2024 at 11:51:21AM +0300, Alexey Berezhok kirjoitti: ... > - settings->hidden_ssid ? > + (settings->hidden_ssid != NL80211_HIDDEN_SSID_NOT_IN_USE) ? > "enabled" : "disabled", Can somebody switch this to use str_enabled_disabled() from string_choices.h? Ideally, add str_disabled_enabled() in that header (as macro with negation on its argument) and use here as str_disabled_enabled(settings->hidden_ssid == NL80211_HIDDEN_SSID_NOT_IN_USE) -- With Best Regards, Andy Shevchenko