Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1032327rdb; Tue, 30 Jan 2024 06:11:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlOitBHIbrNm/kS7Umb0rUDL23h3EYSc+MKFjD0dqHLkNAWVBmVmTAnbk5p7p7L6lWgcPb X-Received: by 2002:a05:620a:278a:b0:785:3549:cf69 with SMTP id g10-20020a05620a278a00b007853549cf69mr396785qkp.5.1706623892523; Tue, 30 Jan 2024 06:11:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706623892; cv=pass; d=google.com; s=arc-20160816; b=sg8f8lks+oszYtlu/OxcJcJx6RHuu7LPoNKXQZOfDnAFLD6a/xJrz5o6SEsgohC9Kz nCrKpVbgsB4/7Boqyu0O5Xg5fReAkGltmGz9Obb5pXKJzl6o01DxvIjGz6YMbdul1+qf uuNIv2YKJYB1dekxHdPeKEs/TU9Zv4l3Dp7ZwywlDF/Z2PEiKOOSzzuOQQM+E29O/BqP B9HYW32QUFEU0y+CgtuOyiEP6o1Dh6PWqQUdg3nAvfPMh0Y/IJrVVBmOnx7hyoEinjKr JLGKCa/6Iy6mXLou1fwvPdmBkRcWnT6KQJ7N5mgiqKYLfz2l0jDA33A69u3SaGDrhQOt Zqow== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=XCbWVlf+H+uaEawIvNyPrfkdOOrLvhh2W3wovD7alQU=; fh=xu8dUr6FkYwGbgZLC/REYIRr2MfffiNpwrYxbYQtwYE=; b=ozcudmawcQTEaiZsUXaA79ciZo2yzewmwgsP3stt4rj2X7Xhpir+tmp/JJoWKcW8Kq 5pyxBmZdtZTXYOtdRZdY3ZWWLGRKAYOoQNAgfez/qqEu2wXbRb6QQLESMpa6T32TutHX uIeCB/+c3euplSabalX8ksvQaINIjd6GR3+rGxmUV/0DV/vvzqauEGzPuDEyQPRFEEZu 8SyUOpUBbeBWxwBD4agUBYMlRGIqWRjFTAiI98OBcN3//Tc5Rv6jDpb+Fu8daNjCaGFw wnInXFMjewwIP31DlPyIREdQ35axH0l4Tm8GSQRcF+McMN6w8eN6wfiv8NSbj2ubCpv2 yn1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZeWk2g4P; 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-2816-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2816-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=1; AJvYcCXQpl1a1SQzQGviEeJf7fLzDXOSc206ISpY3SCShPVfT0UvvCzSvfQjrJukANRATgHXxzwwDvkYI1oTdTPV8yF1VC5VBp0sQFZkD26RBg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c12-20020a05620a0cec00b007835218c6f3si5328594qkj.230.2024.01.30.06.11.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 06:11:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2816-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZeWk2g4P; 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-2816-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2816-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 155E21C23F84 for ; Tue, 30 Jan 2024 14:10:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19C716D1DB; Tue, 30 Jan 2024 14:09:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ZeWk2g4P" 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 2355E6DCF9 for ; Tue, 30 Jan 2024 14:09:45 +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=1706623788; cv=none; b=EJXGhDSBVM2GXneG3j5cE72wr5Uy0ZAgZaw6V9jD7+rgs8C9HAzDbvN4h5YY0o26ac9liKUFiZ3tAW9kbDAaLyHloJJP7DRrY5LUuBlhIpDh+RobPtIalbqov6hi1MXz4wRXKuGabTTsBIRniOCKSmLW57z8pomm51KbhMFV9OU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706623788; c=relaxed/simple; bh=Sx/bFi9/Rf8hTdCwlEEn+ha3n8AZMEZ2NSlEQyl4pDw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=GFE6U9iPb3RgWDg1VOwKxMnXE68sJoHgarREffvvgykyBOsGFwWDHfwUEoSOFyAhh8gOu+JFZTlkmq6kVB0wd6vpJ63F3dGZ6Fnc1TPxWGWriMP3geElHd3TjEsiCPQOYS/bgwhadQwRh9SQ43Cz+kU+K4/iwGoLGJIYUyUuCss= 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=ZeWk2g4P; 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 (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40U9Rf5j028636; Tue, 30 Jan 2024 14:09:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=XCbWVlf +H+uaEawIvNyPrfkdOOrLvhh2W3wovD7alQU=; b=ZeWk2g4PfMueHo0yqasZYTw /AhIp8rRe7XcmcwHMRZhJA8/1RFNdmqoOZjZn1J/AjuVtLs3Fx91LPJgOQTUPacW TubctfsW4WqmxLg5aWt5TzNEiHE/srUs1mtnNLtcX7LLeU2nYTcqPyCxoA2+soOq owgPaStRDb08Ga8eV74qDMCgnqRL20dZk6RuYyeJ9tZPsimMZ6CK7Mnq5hWBTcQV CBp0lX/Yt8+rNtfMi7MQchgtsqmmaU/rvcomZfpgMq2tff2tBZgnS2HdAWQF93kX PRZOss8RbmJ2usKSE3RzkuxOq/6gQ3C8lmaS7SdG4/qLumXGM8hAbPZyfqRVa0g= = Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vxvsr0uer-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Jan 2024 14:09:42 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40UE9fvw030316 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Jan 2024 14:09:41 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; Tue, 30 Jan 2024 06:09:39 -0800 From: Aditya Kumar Singh To: CC: , Aditya Kumar Singh Subject: [PATCH v8 0/5] wifi: cfg80211/mac80211: add link_id handling in AP channel switch during Multi-Link Operation Date: Tue, 30 Jan 2024 19:39:13 +0530 Message-ID: <20240130140918.1172387-1-quic_adisi@quicinc.com> X-Mailer: git-send-email 2.25.1 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: nasanex01a.na.qualcomm.com (10.52.223.231) 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-GUID: u8IthednQK5TbuNLfuABWZNtS-1kHlon X-Proofpoint-ORIG-GUID: u8IthednQK5TbuNLfuABWZNtS-1kHlon 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-30_07,2024-01-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=739 spamscore=0 lowpriorityscore=0 suspectscore=0 phishscore=0 malwarescore=0 clxscore=1015 impostorscore=0 adultscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401300104 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 (5): wifi: cfg80211: send link id in channel_switch ops wifi: mac80211: update beacon counters per link basis wifi: mac80211: handle set csa/after_csa beacon on per link basis wifi: mac80211: start and finalize channel switch on link basis wifi: mac80211: add support to call csa_finish on a link --- v8: * fixed space error in documentation in 1/5 * minor commit message rephrasing in 3/5 and 5/5. v7: * fixed proper link id validation in 2/5 and 5/5. (>=) * added comma in trace print in 1/5 v6: * splitted v5 2/3 into v6 3/5, 4/5 and 5/5 * rephrased commit mesage in 1/5 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 | 108 +++++++++++------- net/mac80211/link.c | 2 + net/mac80211/tx.c | 14 ++- net/wireless/nl80211.c | 1 + net/wireless/trace.h | 7 +- 23 files changed, 112 insertions(+), 68 deletions(-) base-commit: 28b3df1fe6ba2cb439ba109f095aa841fef3a54f -- 2.25.1