Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp6182746rdb; Mon, 18 Sep 2023 06:38:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFgKSeQVJ4PpYKrpu0G9dHb/jkp0q1V/NSNPRwLd8oH2vIMaFJhrQW1oVk2cXcSjee3cTXu X-Received: by 2002:a17:902:da88:b0:1bb:a522:909a with SMTP id j8-20020a170902da8800b001bba522909amr11364758plx.37.1695044328778; Mon, 18 Sep 2023 06:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695044328; cv=none; d=google.com; s=arc-20160816; b=aTZxppXYTgkrldgTYBxmo3cMKMy2wGTqORUW4gOwmaOjSjwAWWuCOOdKY8vw73Yo00 fZulDcVO1HM6OloyksKHhr8110kY2Uikc2X4TfWpQkD2HnoCZsZ4Ls6KQW3+UXyxmLEQ r2LNtoWEZZWb8dCSe7lQyj7bNuf8wqamC32WJLAEoYrMerh7wznST+z95g/+qhUqnT3z MQUMTad8XX48G8+6d85rwrOrRSNZ2S7a7Ek5S+ST8bimFLHh/RM12WlBVcIguGVLJjEV +SKFTWSA4eRJHTm4xKTcx6ibfL8O6Ny3SU5qMCXN61ZjU/ueOxTwC5SlP4mca++PUoRs 1Bwg== 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=z3TtmB6lx0z9BanIyOSPVBht6TJJM5I554WYZI8e4V4=; fh=/GEb7gVUqTR6q5QKTfw0XUP5VVlqVBkkw8R/kfrGqdo=; b=D9KDbiOrS2eAIdfmee47mzsLq7RGjmBTCzxZX1MG6XV/mOtDxCa/V7DpSY8TcJr2k+ wc6kj2qqcN7XSZC5eg/IHBzyDQ8sMxKIjfK35N6opjRwDJcqB8FS7O0W6+V3S77pG4QA yISiqtiJfdTf++CLSk6H3Og4ImMk9DGj56qAcQMmwrrOzVvsRu7KAURR82KGRpMSF79U zlFNqypleFHP4lKgikMZCdBJ4qRC/FJZ/Oj/YJAcISXQV3NTR9CaGn1SQI20EU6y/U8q zl1/Cz+aHRSc8a4Rs1wi0tFbzoUdqCzKIN7dFRIgNhmpEgh3sP9PB4Mkf6APrdhO4Nx5 h1Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Hbb/ocYx"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id n11-20020a170902d2cb00b001c370dc4445si2694831plc.210.2023.09.18.06.38.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 06:38:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Hbb/ocYx"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 0F5F080309E9; Mon, 18 Sep 2023 04:12:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241429AbjIRLMa (ORCPT + 57 others); Mon, 18 Sep 2023 07:12:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241492AbjIRLMM (ORCPT ); Mon, 18 Sep 2023 07:12:12 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75CFC99 for ; Mon, 18 Sep 2023 04:12:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695035526; x=1726571526; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=D3kNr2e9qrcQUnwUxxAoTtzGeXEpHGXahHze6RphMuI=; b=Hbb/ocYxTXsDl2rdwReg8Wvpv1g8x8/Q/DyxRBBworxABP/VDwU56+SB dEyYURFYy3vGO9utvPHwOZx0RNhLUA4OaOWoBUUxxbcAzWCKX1MKaxyt3 BqWJKRQPBUTO+/llUzTDEqjCoFAoC0XMVXlw+0YL1glcUlpbWDcsLoqKP BoPFFz7+wqsYPFoI0TEctPWv2Q7ry4JPz0OQG4FCbWEgU3dpksTG64Sna CvAwByYnVl5dtZN5CtQGuMNtCZVcdDay2nP5Mh1LIZ8XhP/sOxIQ4L+eR ACmAnGBxiiCtVE1YbmTXPFHLxqSBeTwHWpHSOpqKNuPeh0TLHf7bIRKUr A==; X-IronPort-AV: E=McAfee;i="6600,9927,10836"; a="378535882" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="378535882" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 04:12:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10836"; a="861025463" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="861025463" Received: from guyarad-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.214.215.14]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 04:12:03 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Ilan Peer , Gregory Greenman Subject: [PATCH 11/18] wifi: mac80211: Notify the low level driver on change in MLO valid links Date: Mon, 18 Sep 2023 14:10:56 +0300 Message-Id: <20230918140607.7f08b3dd70a4.I64238e0e892709a2bd4764b3bca93cdcf021e2fd@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230918111103.435195-1-gregory.greenman@intel.com> References: <20230918111103.435195-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 18 Sep 2023 04:12:44 -0700 (PDT) From: Ilan Peer Notify the low level driver when there is change in the valid links 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