Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1900424rdh; Tue, 26 Sep 2023 06:59:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEX01Dj8oh9ljzm3psdxrU3GOXsSs9kAgit2x2qFKdxmEX2A1luV7wwz/VPYKG51VsOGYtd X-Received: by 2002:a05:6a00:2e86:b0:692:a727:1fde with SMTP id fd6-20020a056a002e8600b00692a7271fdemr11188730pfb.14.1695736763841; Tue, 26 Sep 2023 06:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695736763; cv=none; d=google.com; s=arc-20160816; b=pKtF+7uanf20QMyCE0voq4cWcqiQDJqGFAjUYY/PWhC2Zo9gjGfEXCsYKsDxpgeU/q r8HMD5a7h1Rx8y+NGsV3onozxT8pfUDxibyUHq6y8Xcj/NbYhHJ+oq8I/p9QZSXz7lCO iOYTuCZajCKqeia4F+VV0gPckgxpQqFc2rc6Jq9ZZaZIgTPKwMZYa7oqh6PuZ/AglORc c/ijKwcHpMZ9xJBen91KUDeEABMnSwzStFHonXu7gWMHMFSM46OWZBXCxNrmohglrofY VIx8UgPYXGzxOUGzZNgjt3AAfjDYXYWjENj2N/6XC+D6P9S4SKwfvbF25FRjd7C8MEhh Seyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=7KX7gmu7XvED0hTUK8Sl+TUYmK0vJVCwAoQGvtQrvQQ=; fh=YFxtJ1xXx2t8gOU3zOKGdBZLQQRAPE7/C3S1y3bq7Yo=; b=0p9US61SXkNLiD/q1laMCj5qOYG70IUiD1W9UAoGXL1gmhMO18TxhB2pE4kI+oXkPu RihOf5zEQ7nRJH2ly+PAcfEzTKEQp9kirijsuH7ytt0lzpEOo4jJOObxTK2P++Wi5fHX QniJlllBOLb2FAICYoYxORDDbS568+9qdDrHMUuKAnpsyo071tUZASBvJKOR4cHVa+6Z YNU75YYWoMfLVZeFhi09UgwEj0+nhdKgi4ykRwAuaUakF2q5grZmc/aLFMHx86zqjaMh wVV8DrQ1vu+usRVrYUewc6VYNQrXIOVWhFcGZxrLg/De7c7wI5lm0NEmzCZ3CA9vly1T pHDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Cs7dLWXm; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u7-20020a627907000000b0068a3cb58334si12823519pfc.320.2023.09.26.06.59.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 06:59:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Cs7dLWXm; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 66521801B307; Tue, 26 Sep 2023 02:17:18 -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 S234120AbjIZJRR (ORCPT + 56 others); Tue, 26 Sep 2023 05:17:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234118AbjIZJRQ (ORCPT ); Tue, 26 Sep 2023 05:17:16 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA8C010A for ; Tue, 26 Sep 2023 02:17:09 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38Q5BnFa029280; Tue, 26 Sep 2023 09:17:06 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-type; s=qcppdkim1; bh=7KX7gmu7XvED0hTUK8Sl+TUYmK0vJVCwAoQGvtQrvQQ=; b=Cs7dLWXmK22aBGzbHt0Olyhxo29jK/bV7YSOXUgkk29IMsfSLrnppuLco+t5R3afC3c4 n5R5k76HFlGed5iAQwqoJ7jUHPtqAlbXkz3RwQxOt6n2R6F7zQ5NnzrjpSWnMjtS/JRG LboQT5CfZQkSgYDaPOzgurWRde+BFdHvmvQ16gNMTYvVVG9x6r7JYvnyvDmy6lnsTnps JoGO0NdJE3iKGKgXuZFBB+gJdKjrapRA6NRVHdbdPq4Myau1HDlU9zaQTTCfe4ebq4CH 82hka+ZJkuK5uzL8v1TyZaH/8xyBrUD9sAyBZQelDi7/vH/1qtcU4pTZGCX1YITI4er6 BQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tbmwwrxg6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Sep 2023 09:17:05 +0000 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 38Q9H5G0031416 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Sep 2023 09:17:05 GMT Received: from adisi-linux.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.36; Tue, 26 Sep 2023 02:17:02 -0700 From: Aditya Kumar Singh To: CC: , Aditya Kumar Singh Subject: [PATCH v3 0/3] wifi: cfg80211/mac80211: add link_id handling in AP channel switch during Multi-Link Operation Date: Tue, 26 Sep 2023 14:46:45 +0530 Message-ID: <20230926091648.17184-1-quic_adisi@quicinc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] 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: 6B7dhvFzOZ8-hKFRalUSr5wyjMkpAEIW X-Proofpoint-ORIG-GUID: 6B7dhvFzOZ8-hKFRalUSr5wyjMkpAEIW X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-26_07,2023-09-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 bulkscore=0 impostorscore=0 malwarescore=0 lowpriorityscore=0 phishscore=0 mlxlogscore=772 spamscore=0 priorityscore=1501 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309260080 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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]); Tue, 26 Sep 2023 02:17:18 -0700 (PDT) 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 --- 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 +- .../net/wireless/marvell/mwifiex/cfg80211.c | 3 +- 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 +- 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 | 117 +++++++++++------- net/mac80211/ibss.c | 2 +- net/mac80211/ieee80211_i.h | 3 +- net/mac80211/mesh.c | 2 +- net/mac80211/tx.c | 14 ++- net/wireless/nl80211.c | 2 +- net/wireless/rdev-ops.h | 7 +- net/wireless/trace.h | 12 +- 26 files changed, 127 insertions(+), 81 deletions(-) base-commit: 5482c0a28b2634e7a7d8ddaca7feac183e74b528 -- 2.17.1