Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1603631rdb; Wed, 20 Sep 2023 14:05:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEaaulmOpojZI0JJ2AcKBQM0ayimoOxymwLmndlWB6PWnFrA3hpJzN0oFIvcLBAiRykw84o X-Received: by 2002:a05:6e02:188f:b0:350:efac:1b with SMTP id o15-20020a056e02188f00b00350efac001bmr4953753ilu.0.1695243956202; Wed, 20 Sep 2023 14:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695243956; cv=none; d=google.com; s=arc-20160816; b=v7wvuiZe4mqEYxrtY4QbrHBiQ/VMvBlBATOZKT3FoIECAKuVQMv/LW+8McBjVUqzDt mftMeJgpJISOfRtXVJTSmsrMgpdP+aOlsc5YzDW0mZ2BT3u3yr0+NdFnKiuwvma4pOx4 ylyCgjNG5PG15UQdXPNWP+ScOb0yvclFaS5hGNMkYTwDYgZAkiurWGSX+EUgSs9nhDsL PAvTrubNCpzh+LJ9NaQZik06Mb5rmSyWovN8Ed8FRPhftkmiQjbgqKPcEr2lysoDFaGS AayaBFCgpo1j/mS19cfyM9YXK/mJakLd1JubhBM9bUgV7h+IG7Tk1Tof4jlDtHzXrGDx NtgQ== 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=ETQ9/QCXz5KI8x9mT+NynOuyZoqlOxa2EjRdqw+vo5k=; fh=/GEb7gVUqTR6q5QKTfw0XUP5VVlqVBkkw8R/kfrGqdo=; b=lC3Nf3BUJbAv99iY7TLSjJEvd4Z39QUIJ57aXas97FLZS6u+lBNTSdBhAk+c4lNMms Wt3UD2+9E76vS+/wqeIeagc4UuvLOKvwXF3DfgFNTcDDsCoPcGAVE0LdWKK4oGhdK/io 5u8N00bEWy0cV9FErnavY14tbTuX7Vqrbs7LPqpV7Xn666v+BfVOFakcoxWTM36m/TQV pbnTXPdXI2d2fbg2Lk2LWjAjZETnF74Fddjavq9YFp5ucfTPUHjPRRzqR0WX0+BxAv34 P2LlHSFr73HQM9inpuzzU8aiY/5tE7eYVd4jaZQIUCYKbq0PGXh70Zm4KX9ywUs5Ldzu imFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eeoUJlxU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id z126-20020a633384000000b00578d5a135dasi2906308pgz.891.2023.09.20.14.05.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 14:05:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eeoUJlxU; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E90768031D1F; Wed, 20 Sep 2023 11:26:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229540AbjITS04 (ORCPT + 56 others); Wed, 20 Sep 2023 14:26:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbjITS0z (ORCPT ); Wed, 20 Sep 2023 14:26:55 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAD15138 for ; Wed, 20 Sep 2023 11:26:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695234398; x=1726770398; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VJrEtcDlDrFyWZ20cO2/Ef3pMAKc7EAIGJs/qzqKo0g=; b=eeoUJlxUr6Ngk9zYRY6ZhmvhXqeobByGb4xneJEoPhXODBEEqqhFZ/u1 irHQUO07FHRkMs+arxXb+XeaFGajPG9Nluy6ad5gzAzhmrvePgFGeVHve S5tE1bAR54GwWWOYJQ5wbRRyA0jucTUrujNXHLSSGXQUAhsxe9b/4JPAX PYhOAyw7pKmOp/8frAyPifQSg9mURhQyn2qCJdLzRjoTHGjU9dOWzIRTG rUNksj+ODTxgWrKPr9uNlY290+C1gayn7DzRykXbPFZJuPYSvZvjitdm7 f2jyEdKKAZHLvjtdZTMGdnbUE518XCgwV2eL3PMMXvkkcTw5oFpCIa4Pv g==; X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="360556420" X-IronPort-AV: E=Sophos;i="6.03,162,1694761200"; d="scan'208";a="360556420" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2023 11:26:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="723424252" X-IronPort-AV: E=Sophos;i="6.03,162,1694761200"; d="scan'208";a="723424252" Received: from dmani-mobl1.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.214.217.100]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2023 11:26:36 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Ilan Peer , Gregory Greenman Subject: [PATCH v2 11/18] wifi: mac80211: Notify the low level driver on change in MLO valid links Date: Wed, 20 Sep 2023 21:25:22 +0300 Message-Id: <20230920211508.4fc85b0a51b0.I64238e0e892709a2bd4764b3bca93cdcf021e2fd@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230920182529.659973-1-gregory.greenman@intel.com> References: <20230920182529.659973-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 20 Sep 2023 11:26:55 -0700 (PDT) From: Ilan Peer Notify the low level driver when there is change in the valid links. Signed-off-by: Ilan Peer Signed-off-by: Gregory Greenman --- include/net/mac80211.h | 2 ++ net/mac80211/main.c | 3 ++- net/mac80211/mlme.c | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index be3d74942a4a..b3df8cb2919b 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -341,6 +341,7 @@ struct ieee80211_vif_chanctx_switch { * @BSS_CHANGED_UNSOL_BCAST_PROBE_RESP: Unsolicited broadcast probe response * status changed. * @BSS_CHANGED_EHT_PUNCTURING: The channel puncturing bitmap changed. + * @BSS_CHANGED_MLD_VALID_LINKS: MLD valid links status changed. */ enum ieee80211_bss_change { BSS_CHANGED_ASSOC = 1<<0, @@ -376,6 +377,7 @@ enum ieee80211_bss_change { BSS_CHANGED_FILS_DISCOVERY = 1<<30, BSS_CHANGED_UNSOL_BCAST_PROBE_RESP = 1<<31, BSS_CHANGED_EHT_PUNCTURING = BIT_ULL(32), + BSS_CHANGED_MLD_VALID_LINKS = BIT_ULL(33), /* when adding here, make sure to change ieee80211_reconfig */ }; diff --git a/net/mac80211/main.c b/net/mac80211/main.c index bf8f72c412ee..b46f4d733c5d 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -207,7 +207,8 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed) BSS_CHANGED_PS |\ BSS_CHANGED_IBSS |\ BSS_CHANGED_ARP_FILTER |\ - BSS_CHANGED_SSID) + BSS_CHANGED_SSID |\ + BSS_CHANGED_MLD_VALID_LINKS) void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata, u64 changed) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index b480dd181a63..091ec0753df7 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -5736,6 +5736,8 @@ static void ieee80211_ml_reconf_work(struct wiphy *wiphy, if (ret) sdata_info(sdata, "Failed setting valid links\n"); + ieee80211_vif_cfg_change_notify(sdata, BSS_CHANGED_MLD_VALID_LINKS); + out: if (!ret) cfg80211_links_removed(sdata->dev, sdata->u.mgd.removed_links); -- 2.38.1