From patchwork Mon Jan 29 05:28:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aditya Kumar Singh X-Patchwork-Id: 768478 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 6B0D74438C for ; Mon, 29 Jan 2024 05:28:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706506136; cv=none; b=O9vmBH48XdVnjvk9MBqMXKMGUeg/obrClV0elqCht7DMe3z7FcHRj7AUYa5SMhX8wuZ6fN7glMsLAoZklDpsGRfWlk2wmrS4E9HubhcdmnVH4qT6XQGvZZEWf4iX+lWSdly39R1PEYLTTVkuVabkflP9FZNFkz+VqVapLQUZf0c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706506136; c=relaxed/simple; bh=hqsvxWCpv3STpfWNFHOmW7M4ZVeoBH8iJmfteXDoxF8=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=lgFKAbx2AuYwTm+e4pxB1ZsWbZhDy4qs6/oAGYGSrVoXVnYGYEgRPxQwAUZ8p5tWC9Aqv1w/+KOOyOXcY6+9hj1m/KuJXb0JmkEbbk/83eVzn41hyk8EP1ZIfWcy6JTg2Q5F7Y2g/tK6JwAdZp1Mk7MjPk6vVUL9OYOoiyeGxnA= 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=ZWyRTbV7; arc=none smtp.client-ip=205.220.180.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ZWyRTbV7" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40T35UkC004409; Mon, 29 Jan 2024 05:28:50 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=tIYpuzX 6P3P5vqYF6ZS5qhAeh/EcdVdMrp4hkKLN5H4=; b=ZWyRTbV7FDDXuWzk1LY/qaK vWd9XCAtHv7yIO+p/zMYt2h4g0701edNW7gdoMUXdUhZ4Xlmh0USp4p1c0qmSiC2 wDwqvQJqa6c8zZf74WEdpLA9I3jUc70BdRBU7/0Z56n55RceQHnuxe2N2cKGCTXr p8cMTlynADUsSE6iUFepQaPB1kE2NqsBLPjSW5b+tGuyg6KC7+lbFSPbeAPk8HTO AkVNGKYKxnp8f55oX70ip2k4ixyOR4v6YVrEt3IkhQH25My7sNa2vWklwV26GhYA tBXFuJ2vzYPXng5x2SKbmhnEY2IwboC/ZvgBFspuGp/foGnxgSZmtiYyP3iDy7Q= = Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vx3t9r6cf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jan 2024 05:28:49 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40T5SnLV012808 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jan 2024 05:28:49 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; Sun, 28 Jan 2024 21:28:47 -0800 From: Aditya Kumar Singh To: CC: , Aditya Kumar Singh Subject: [PATCH v6 0/5] wifi: cfg80211/mac80211: add link_id handling in AP channel switch during Multi-Link Operation Date: Mon, 29 Jan 2024 10:58:27 +0530 Message-ID: <20240129052832.905113-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 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: INQJtwVpQfHanhQd5iQklwXMSXpbWbfP X-Proofpoint-ORIG-GUID: INQJtwVpQfHanhQd5iQklwXMSXpbWbfP 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-29_02,2024-01-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=778 phishscore=0 lowpriorityscore=0 bulkscore=0 adultscore=0 impostorscore=0 clxscore=1015 spamscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401290036 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 --- 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. --- 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 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