Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1714290pxm; Thu, 24 Feb 2022 08:06:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvKAqlDoGPYQ1rCSIjT1nBL118E1WlPFaW1KF6da7slUeQPkDWvgoOdH8Db3GGjIVLJXTC X-Received: by 2002:a17:902:ceca:b0:14f:ce67:d087 with SMTP id d10-20020a170902ceca00b0014fce67d087mr3381072plg.59.1645718776625; Thu, 24 Feb 2022 08:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645718776; cv=none; d=google.com; s=arc-20160816; b=SkdzEXTG0N13nVEKr3uyZ3IN3/Iwxoq7I/cWH1zD2zx5HErLEQR5fMx8AJ+A7zExm0 V1glm5x8/xJVcwi9gu1JPMCzICif+mzd49c2CsNm7iPPQn5njLc3Yi0J4qfuoZeuoscc H7Y7DnSghKvuKfduc/gcVxOxmSlMecvYeRRASM1hEcbymCy9fddDrr6YtV2prSNHsYOq UAh4FXyodTxz3MVysdscyQF/vB1ujRAOehcg13/vjVOUeNTnt/Oqsdd6xujUPo3keaSZ nE67kZKyxpczkz1fKqLCUxja7qWDFADMKMCw5sPx899k9GLIfBOi5ioM4brxYzS2KN0M P6UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TJeCLESNi8uHysxZEAtOzWiunNEhSn6dDhUs0jMtJnk=; b=FZs2f9xUMIpvaSBKVUUtIO6Q1EyhuDFKWJcratfsbSWquQUPRnSoLdljfOIphtDHkB MOKnhrS3wBC5zKDrLQlG76aBQYNGLawdgeVJblhME3+hBiVuWsWgCn8MTWyFrte0vu4h y5ZtxBM9RahzDztUMTgHxwNBEVTw9THfsdyxN69iPV45fZWCyktWF09MU7FZD+Swev8z rcfrCjcuqMTj2jIjMmMNouyCy6NW8nUkHqWkFpoHPqNP1Qp31xCk7GsUgQ3Rpz8FpsfK 7POW8Z74mGKoZW2jHaAMxxcRcMBycStxmgT39M66F/i0NRqYOnP7hAiPMYw9Sz8MBuoL I03g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mg5Xqr+7; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a19si2670451plm.599.2022.02.24.08.06.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 08:06:16 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mg5Xqr+7; spf=softfail (google.com: domain of transitioning linux-wireless-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0873A18DA89; Thu, 24 Feb 2022 08:02:19 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234141AbiBXL4N (ORCPT + 73 others); Thu, 24 Feb 2022 06:56:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234140AbiBXL4N (ORCPT ); Thu, 24 Feb 2022 06:56:13 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2F2F254569 for ; Thu, 24 Feb 2022 03:55:43 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7EA2861874 for ; Thu, 24 Feb 2022 11:55:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECD45C340EF; Thu, 24 Feb 2022 11:55:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645703742; bh=v7JT792GZb9ZDhpBQladCImKtYOivVYsLE3WX2yNUlo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mg5Xqr+7c/t7WJsHOtoYkZVHngW5fjefkOa9UESgYQJw29LXVlab6oZ9P7wPcnHTF XsG9q+KxUqYPQxxka6y5GgyjqsfP4nS5/jrvyE/UR85dvNqPaTywltbgNwKoXXAExT D3+jp6o3sMskFr+wmBB55PNsr6TJIKQdkPhvTAKesH3QngzW5oGB+kmP9WvNC+4uAU EtqONFr62HC8Smk11ciE4LS7qUwdC6fNDQjIlgVvO81Rkr45kpB6rxwvmCxB4jYCRp wtxhxMz1zeeh9EPbzrBZLLipwctua/gkW023J676Gnz90mvj6B5sDY0Kk2qB5QFH9S zYA3aKNvOYuYA== From: Lorenzo Bianconi To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com, quic_alokad@quicinc.com, john@phrozen.org, nbd@nbd.name, ryder.lee@mediatek.com, money.wang@mediatek.com, evelyn.tsai@mediatek.com Subject: [PATCH v14 mac80211-next 3/3] mac80211: update bssid_indicator in ieee80211_assign_beacon Date: Thu, 24 Feb 2022 12:55:00 +0100 Message-Id: X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Update bssid_indicator in ieee80211_bss_conf according to the number of bssid in the set. Signed-off-by: Lorenzo Bianconi --- net/mac80211/cfg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 464d2896fbbc..9ecccacafc62 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1071,6 +1071,9 @@ static int ieee80211_assign_beacon(struct ieee80211_sub_if_data *sdata, new->mbssid_ies = (struct cfg80211_mbssid_elems *)pos; pos += struct_size(new->mbssid_ies, elem, mbssid->cnt); ieee80211_copy_mbssid_beacon(pos, new->mbssid_ies, mbssid); + /* update bssid_indicator */ + sdata->vif.bss_conf.bssid_indicator = + ilog2(__roundup_pow_of_two(mbssid->cnt + 1)); } if (csa) { -- 2.35.1