Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2504239rdb; Mon, 5 Feb 2024 08:30:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEscBtbQKZ0eb3eJ1uR9nueMaBMfjgDnGSiUDOfSyO3qRjpQ4ZbWVmkksisF8FQtxkpWJ6C X-Received: by 2002:ac8:6cd:0:b0:42b:f020:f36e with SMTP id j13-20020ac806cd000000b0042bf020f36emr6073383qth.59.1707150619607; Mon, 05 Feb 2024 08:30:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707150619; cv=pass; d=google.com; s=arc-20160816; b=nuR5ZIsDBCtG595ZCA6AeasfcmV6xwUETAz1/vlNAUQ+isQfVV0Sr8IATarN3QoH14 HGK111SnUFwA7yrgV9oVy08Ew8cTneaSwOJzq75rnhsbAAZXIlxKlrW+xhY+zni8zlpb X6ceL0tyod+DRgB5ODXLSZLNCIG30cR7cQaALfRdEXAh4p6VoebYeSmZnL+VUNXgDgXf 7Ere7lxxAeuUfMy9tIdnJ3wr3cjBKIEEVkrpqL38g8mun2XYDG5grZaImULHMjMaoJ5L P0DCOhwtp5ue/49BtJQo0XqioSYLMpgE7DLO/RETWHp7/OVW9luf1UUR7K8buQyenWNb NTQw== 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=JzKuRVbtAP79+ylIb2f44gpDJMpuqtlbLqMJmqKLhR4=; fh=nOFRjFBims6s6+CVFtgpgu/X51YV8aM7zzZujMmWcAs=; b=QBtbFGv4W34CV/plXHuUbg1LoLHxVHHGXGjcCKs3svGmTcLl61CF3fRGqBLNQfm/b8 Bc/eN2hBbqxDBIeZe2iKAYSy4NHQ/Dli/arIhuAYOeyxqigswLRMnRebZqcnZa7aXi0w zA+boVsP6Iugu/xxrd1oMD64yojGDSXmed3EPesE0CullXBaJ6v1o41newAAfIwZs1F9 KKNhFyA+zhXDxKzTtRWMZUqeVUyxH2jjeAtfw14wu/ImdGurj1bgBbaArf1ASfpmAhFd 8ATUO/eknPuzXfCsT2eW4IY8SL2/hMhiJg8NZ7EQDy57y8MIneloVBHqjcZpYHWeODOw exiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=knT1MEFy; 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-3134-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3134-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; AJvYcCUYuTgO0bSeq1rWAuohRSHEthNme8pDC8Q4gU8P1qCogq4BJO8OPtfLcrIlVUprDKhdHT7HUb0p27rnDNLw7rHgTrShgfwQTIBRDey0ug== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g11-20020ac8580b000000b0042a3d046c39si196431qtg.61.2024.02.05.08.30.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:30:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3134-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=knT1MEFy; 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-3134-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3134-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 5E8381C21F58 for ; Mon, 5 Feb 2024 16:30:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DAEE28DD0; Mon, 5 Feb 2024 16:30:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="knT1MEFy" 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 E83AF28DD1 for ; Mon, 5 Feb 2024 16:30:14 +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=1707150616; cv=none; b=IkG/LAizbZwOBGfP/rs4RXAgqQ7pRx2dgt9IMMeIlIW0etj4cVOyVMb0IO8/17aWrPWoImQ9uX2T2X5jBdDUBfsgALR6o7Sd8J67GJQhbXAg6AjxzMmHKBeCmWn688ZXkbdWFsVd/5GWNEw1gnoWR/hNk7NdQFUJwj2ARGx0NIM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707150616; c=relaxed/simple; bh=oLeKogeI5GfB5toZMcEEGEsSPP9Xtv1v4xuXXpCwwI4=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=FTl1bi7Z6CWGNzfavPpao9h5tTyvDiuf6UWCRAofDe6KVxHMFSnH6BIBE86OHlOYRbnLpm04ASoBGGdNKU0jVooy0iOPUztBB5t9QhOWLj3vGDpKnbmYLfKYrN4MtTJXFkEdAbDMr+PCQQPdL8xQyPTM4yLoTgAALfyvEUFYKEM= 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=knT1MEFy; 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 (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 415GCPer021143; Mon, 5 Feb 2024 16:30:11 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=JzKuRVb tAP79+ylIb2f44gpDJMpuqtlbLqMJmqKLhR4=; b=knT1MEFyF3QpWYcNkYjhsdz qfSt3+fXymGyimx6UyU0KJrBIzboq9YCXnN6nAC5PRwfwa/pyk29y9Kkn37dGypf UPDSLe+Hccy/ok+mXo0CNXQEJB7mLHcxtTcH/RFSC4YUGHQz+B4AxWN5giqOg65a JcFd8V3iBFg1nxoWqg7d7Nd/jcKO4jt/8nK8R4A0y9c6l58dGSR2t6d+KKFzY5NX h+9ouKFVeplOENaz01KUepvuDUSI3Am8rHDCkaDrzVTiT+4ut9tgdwFVBEA6slli xjGnyP4sMmBKxVfQYIvrOnarjJWF1HTFQ8CkZ3WUbGm2sGsnKPOv20t/1MEYOeg= = Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w2rvj9cuq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 05 Feb 2024 16:30:10 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 415GUAOt023595 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 5 Feb 2024 16:30:10 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; Mon, 5 Feb 2024 08:30:08 -0800 From: Aditya Kumar Singh To: CC: , Aditya Kumar Singh Subject: [PATCH v2 0/3] wifi: cfg80211/mac80211: add support to flush stations based on link ID Date: Mon, 5 Feb 2024 21:59:49 +0530 Message-ID: <20240205162952.1697646-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: 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: R_CVGu1ZInrSaWSWWRQ6HH4yInj7ZcvJ X-Proofpoint-GUID: R_CVGu1ZInrSaWSWWRQ6HH4yInj7ZcvJ 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-02-05_10,2024-01-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 adultscore=0 phishscore=0 mlxlogscore=259 bulkscore=0 mlxscore=0 clxscore=1015 suspectscore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402050124 Currently whenever sta_flush() function is called, it flushes all stations connected to the given interface. However in case of MLO, all the links would be using the same interface and hence at certain cases flushing all stations is not desireable. There is a need to flush the stations based on link ID. This series aims to add support for the same. Currently two cases are handled - 1. During NL80211_CMD_DEL_STATION command handling. If this is called without any mac address, all stations present on that interfaces are flushed. More details in the patch [1/3] 2. During stopping link AP via ieee80211_stop_ap(). Again here, all stations are flushed. More details in the patch [3/3] Aditya Kumar Singh (3): wifi: cfg80211: add support for link id attribute in NL80211_CMD_DEL_STATION wifi: mac80211: add link id argument for sta_flush() function wifi: mac80211: remove only own link stations during stop_ap --- v2: * re-phrased commit message in 1/3, 2/3 and 3/3. * rebased on latest ToT --- include/net/cfg80211.h | 3 +++ include/uapi/linux/nl80211.h | 4 +++- net/mac80211/cfg.c | 4 ++-- net/mac80211/ibss.c | 4 ++-- net/mac80211/iface.c | 2 +- net/mac80211/mesh.c | 2 +- net/mac80211/mlme.c | 2 +- net/mac80211/ocb.c | 2 +- net/mac80211/sta_info.c | 21 ++++++++++++++------- net/mac80211/sta_info.h | 14 +++++++++++--- net/wireless/nl80211.c | 19 ++++++++++++++++++- net/wireless/trace.h | 7 +++++-- 12 files changed, 62 insertions(+), 22 deletions(-) base-commit: 679dd27b4ef33d4f596cbf450a3b2742fc54962a -- 2.25.1