Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1739344rdb; Thu, 25 Jan 2024 04:59:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHN3vBf0MY66511h+Vc+vLqpnKShtHCE0heY5V8Ljs6lyOQIBLTlyA7FfJFBKtukM0M7yWx X-Received: by 2002:a05:6870:1b85:b0:214:a005:a5e7 with SMTP id hm5-20020a0568701b8500b00214a005a5e7mr773828oab.4.1706187576411; Thu, 25 Jan 2024 04:59:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706187576; cv=pass; d=google.com; s=arc-20160816; b=QUM/AswGj93NIUez4zcFL+OYoCCBEYDj0JSo0IIwPMqN/vFznlTjt7UGBn36HLbBol XgHkrHKL354b3V5u6dpvgJeYwQu9EhoTv4/aX820HlQpClj58YKP20T+TELD31NI5oIs +1xwkix7hqbvBU4qCdf1jLSFuQsqQ1d1/nt4dgCy/CZHKtf4496cKwL8MLY/t9VfEoXW /Kg5QiDbo8VTY+lpprCaKVDuZRe/ngfSn7O4znP48G1VQEc9cbtoT2og5qSwtsREEdmo tPkRsRFsgBkpZRvFEnd+5FQUFoMc3Q1pjRLL118y17ax0nUPbUGgW1E0c0O2xXeQniqf yNjw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=rh3NHLahH101m1s1xoOMCFiIzb2kS7NxNhtDbyK52Yc=; fh=dRNDPLKj1q8SUpbayxqGVeYxeS9at2WOrn0wPVmYJGA=; b=B7axDiPTd1ogcHMC/Ma/JDdB1z0EgJxW80IdF3LiZUBlTJ0a1cnLlyloB3MVACuk9X 9IPkKptDmbtaJ1lGHMpXhZvgDJfgj0/SHvdhfx5vg8sU3WT8C8qrFG8GcMr8ZKSBYRrM FFyNRiKXSoVnqTxjTmIaNJ2EqKluZlHHyVDwySlJE5EbvGj5lBHBx/67GLhq9QhervMF ytIETSDMRggqzJMIxMVT5FLlS/vVPT8P683Hyx4UV82fH2NOifn/JoYj93i5Ay84ky4p ZROTKItCbQ1fKvXuCTQiCUeOAvn2fjg0dKq3GZpalMsygEVrwUTzZQTC/oWUPMRMUjbw DqIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ASUIizWP; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-2478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x23-20020a656ab7000000b005cfbe74de58si9514380pgu.788.2024.01.25.04.59.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 04:59:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ASUIizWP; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-2478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0DE7228E140 for ; Thu, 25 Jan 2024 12:59:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 110FF4EB52; Thu, 25 Jan 2024 12:59:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ASUIizWP" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 4BD0B168D2 for ; Thu, 25 Jan 2024 12:59:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706187567; cv=none; b=qCH0Zq5B7CXFc4sqdmhhfnYmvwsMjz7wtA5JrIThOINtzKTMyGLVqFJG93sBuhQu6PC2PE89LLslf874AVtFnldCn6XQ0YgJoxo+XJ7BGl3WoOjCSy5yHcwYZv/43SGX9ZAZFN47zBXy8C43pG0kJHhA1qwSRfWMFcd2s1PaaXA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706187567; c=relaxed/simple; bh=z4fDd7VydTCmzMMNuxoFI69jt4wfa9Zticx/FrHQy1A=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YIzwdNbBAN+hb1MzU0tK8PeSH+uQWbW04MdMU9qRQBgFhGqdSjCzin/lQwYVzH3B3nxfSQ7zM0U+DVmvPiEC4DFQDK9ui127+61C9LbOdhP2VRZ8nDN/npnK8C0OY/czlwH+PloFgURS6bh8Q0UTWFt6LdKFRUQCnIodxUIwejc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=ASUIizWP; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40P9r4LW020802; Thu, 25 Jan 2024 12:59:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=rh3NHLahH101m1s1xoOMCFiIzb2kS7NxNhtDbyK52Yc=; b=AS UIizWPp6Lp9hpzoDic9pMnsK3YKwbtKc3EGm+Tb6fhDaB5zzflDGwqO7yp/rTBcD G+KsR+tiic3tI0NgJrPazG8gM4KdhKMSEjeGvOB0Ys582cX1ZdojWIBmtn+EPaWg dl1VAuv+K+kJTuJd0PV9ukuhEjslBe+gCIIGa3IzPMIzG4RgeQF1Wc+Q0viHaruv TmAKnGmWGc4xv7K+NWu4uAm5xP7jxy0FWeq/wACkATgajmdPgKPvvLmUT3JhTcNt wq8ZuMjbL3BAr3k5NWkk8tFswA4SWfaFqgkDgiEULHhdi4P2wAZhzlPhqVQGw7Y7 /qoTyRK3H701KBiOnIeQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vumcwrphd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 12:59:19 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40PCxJcn013291 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 25 Jan 2024 12:59:19 GMT Received: from cdcwlex322514-lin.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 25 Jan 2024 04:59:17 -0800 From: Aditya Kumar Singh To: CC: , Aditya Kumar Singh Subject: [PATCH v5 0/3] wifi: cfg80211/mac80211: add link_id handling in AP channel switch during Multi-Link Operation Date: Thu, 25 Jan 2024 18:28:52 +0530 Message-ID: <20240125125855.827619-5-quic_adisi@quicinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240125125855.827619-1-quic_adisi@quicinc.com> References: <20240125125855.827619-1-quic_adisi@quicinc.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: bSJLuAvT1DnPrXGK_itV2FGODzewTrwR X-Proofpoint-GUID: bSJLuAvT1DnPrXGK_itV2FGODzewTrwR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-25_08,2024-01-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 malwarescore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 adultscore=0 phishscore=0 mlxlogscore=773 impostorscore=0 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401250090 Currently, during channel switch, deflink (or link_id 0) is always considered. However, with Multi-Link Operation (MLO), there is a need to handle link specific data structures based on the actual operational link_id during channel switch operation. Hence, add support for the same. Non-MLO based operations will use link_id as 0 or deflink member as applicable. While at it, beacon count down now needs to be updated on proper link_id's beacon, do that as well. Aditya Kumar Singh (3): wifi: cfg80211: send link id in channel_switch ops wifi: mac80211: add support for AP channel switch with MLO wifi: mac80211: update beacon counters per link basis --- v5: * fixed compilation issue reported by kernel test robot. v4: * fixed compilation issue reported by kernel test robot. * rebased on latest ToT. * moved link_id arguement into csa_params struct in [1/3] v3: * splitted [v2 1/2] into [v3 1/3] and [v3 2/3] having simple cfg80211 changes in 1/3 for easy review. Rest in 2/3 [Johannes] * used wiphy_dereference() instead of sdata_dereference() [Johannes] v2: * reabsed on ToT * removed unwanted locking sequence during cancelling CSA work handler since now locking is moved to wiphy level, that part is uncessary now. --- drivers/net/wireless/ath/ath10k/mac.c | 4 +- drivers/net/wireless/ath/ath10k/wmi.c | 2 +- drivers/net/wireless/ath/ath11k/mac.c | 2 +- drivers/net/wireless/ath/ath11k/wmi.c | 2 +- drivers/net/wireless/ath/ath12k/wmi.c | 2 +- drivers/net/wireless/ath/ath9k/beacon.c | 2 +- .../net/wireless/ath/ath9k/htc_drv_beacon.c | 2 +- .../net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 6 +- .../wireless/intel/iwlwifi/mvm/time-event.c | 2 +- drivers/net/wireless/mediatek/mt76/mac80211.c | 2 +- .../net/wireless/mediatek/mt76/mt7615/mcu.c | 2 +- .../net/wireless/mediatek/mt76/mt7915/mcu.c | 2 +- .../net/wireless/mediatek/mt76/mt7996/mcu.c | 2 +- .../wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 2 +- drivers/net/wireless/ti/wlcore/event.c | 2 +- drivers/net/wireless/virtual/mac80211_hwsim.c | 2 +- include/net/cfg80211.h | 3 + include/net/mac80211.h | 7 +- net/mac80211/cfg.c | 110 +++++++++++------- net/mac80211/tx.c | 14 ++- net/wireless/nl80211.c | 1 + net/wireless/trace.h | 7 +- 22 files changed, 112 insertions(+), 68 deletions(-) base-commit: acf868ff60b1cd1f2e597f0b15aee2ff43f9fcd3 -- 2.25.1