Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2189812rwd; Thu, 15 Jun 2023 23:56:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6rJGIqu+Nl+wd/MxcMNEPCHIuRsS7AsLnHPwH81kYP/WH/uByYSd4gkkBWdNgfVA1STT9r X-Received: by 2002:a05:6359:d30:b0:129:c325:fd5 with SMTP id gp48-20020a0563590d3000b00129c3250fd5mr894708rwb.2.1686898609863; Thu, 15 Jun 2023 23:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686898609; cv=none; d=google.com; s=arc-20160816; b=mP3CtCFsZ2rah8nxgJnZTlVJyW1HPzpJF+8f7KyqGnEF9I/09H+zboi+WrjF28u7QC ndx1DwTfEEcmPGuVHu6GENeNKmFT8SKmI4YRHSMMkUqZKrY2Bhywav1tOrruhX+782hk 4U5JXzAcqPyeQCqiQZbQuCMzVD0qsKcdeFdCp2VpgzmfnW/3VQBoWGHeR4eqokhzu6uG kdyFFKPlxPGost5OzwQnbKVospWkAbdeQnmUIzP7QPN3G6lZudipZx8IcA52SBW5Sz1g BStKUnWXku8z6ZTpN+DunZ26r/lJzpg/wFGYqtQpAy2AZF7AB4S2sIRCasEqZVRL3gTu s0lA== 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=7Zm5CwuTw1l037d10VEvK90Z9djE9AtRFv3zatdRMMw=; b=eWimUmIoXQCVRyKcY/xUO8OsWJpFLsi4ThoNUANs3UATW1zHeXJH0tnYJp5zha1qEe xyoAtSBQ5eBhrfGWzFn5ydsksulaqsZbdgQu7RStmb7KcFXWQJVK3JJ/h6Kbq5Gldwnm Yxz5heLR7+PAgYFo0G7WX2igyu0DsyCnqAjNZlquOQgXQB2ayzDPVjz0CoYQYp+aL81m KIRbjQHVpPfgHxLnJ95JntamS3FB2/ktg6/M0ieLCizu/UMy/DR/uLzf9E2hNkmacrlB 9JeHpq34yhZ5dXeOQVMksI12Tdugqik4l/9H5Ueh8326aNpX1V12liIvayzSgh/rF8zI cbyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BmowvnMI; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y21-20020a634b15000000b005486a1e9440si13839676pga.780.2023.06.15.23.56.42; Thu, 15 Jun 2023 23:56:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BmowvnMI; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243107AbjFPGzC (ORCPT + 61 others); Fri, 16 Jun 2023 02:55:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243431AbjFPGyr (ORCPT ); Fri, 16 Jun 2023 02:54:47 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F4782965 for ; Thu, 15 Jun 2023 23:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686898486; x=1718434486; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Z7hwSfDKiy630sJ/J6AQ6Fc8dquSVM/FwxTkleLgXhA=; b=BmowvnMIFHvC0xersb+lvxmUrU2Y6eRPov7b2XwdyLJVQt3MUW9gtnsm klV3b7V3Fsq27kZsxvmuYU3aif4M0mIsOFMrupLKTCXPBfWTIGLd4IdPq g0mnwixdJcMJWLaSQgYX4zdfaU4fTg4Gq9CZoc3BiWffMeUJlH0forgsJ NZwh7gRAAIwc2JOFFQyE7NspHeELB2mXcBt2Vl3WPUqMyH9qZ+MnNONJB O/APDZNjJ+LJdognTBFhfQi0hJRWWxXeURlOkZF/ML9fFb3S/aEXv59TC A7NLCL9GbIkxKIMWx+U0JpdqScZBfLls46c0ICa2a7guuCzP9pB9n8lUQ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="425078862" X-IronPort-AV: E=Sophos;i="6.00,246,1681196400"; d="scan'208";a="425078862" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 23:54:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10742"; a="802720086" X-IronPort-AV: E=Sophos;i="6.00,246,1681196400"; d="scan'208";a="802720086" Received: from ereznaim-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.intel.com) ([10.214.237.118]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2023 23:54:42 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Emmanuel Grumbach , Gregory Greenman Subject: [PATCH 08/20] wifi: mac80211: feed the link_id to cfg80211_ch_switch_started_notify Date: Fri, 16 Jun 2023 09:53:57 +0300 Message-Id: <20230616094948.41e662ba1d68.I8faae5acb45c58cfeeb6bc6247aedbdaf9249d32@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230616065409.633290-1-gregory.greenman@intel.com> References: <20230616065409.633290-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 From: Emmanuel Grumbach For now, fix this only in station mode. We'll need to fix the AP mode later. Signed-off-by: Emmanuel Grumbach Signed-off-by: Gregory Greenman --- net/mac80211/mlme.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 171ba9d237c2..1fc66f09cbb8 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -1981,8 +1981,9 @@ ieee80211_sta_process_chanswitch(struct ieee80211_link_data *link, IEEE80211_QUEUE_STOP_REASON_CSA); mutex_unlock(&local->mtx); - cfg80211_ch_switch_started_notify(sdata->dev, &csa_ie.chandef, 0, - csa_ie.count, csa_ie.mode, 0); + cfg80211_ch_switch_started_notify(sdata->dev, &csa_ie.chandef, + link->link_id, csa_ie.count, + csa_ie.mode, 0); if (local->ops->channel_switch) { /* use driver's channel switch callback */ -- 2.38.1