Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp117824lqz; Fri, 29 Mar 2024 10:17:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNx7KlPEMiJa428FoOHQT0pELSm9COxppHpVCBUxwf/cltwBXadsVa1r1YSwBiAlK+V089EM5hpjw/dTFc9ibdHOz/e6UPlFE1vrzBeA== X-Google-Smtp-Source: AGHT+IFBWmOZEh3YfAstsLyJkJpZUvH2AzfU76EWN9eHuOhMg/Dy+XO3nmi1rHNpmNS/XA2GSAKI X-Received: by 2002:a05:6a00:9385:b0:6ea:df65:ff7d with SMTP id ka5-20020a056a00938500b006eadf65ff7dmr3145024pfb.10.1711732621368; Fri, 29 Mar 2024 10:17:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711732621; cv=pass; d=google.com; s=arc-20160816; b=U5hdaXXVRUScCb/Yl0xlGkWgLKiHcnIhDD2HH3Ej2QFO326LC3MxtHdOYxkmFCRQ3W 5yA3WvLeXpssWZFE1/vt7KdHLIu7ca7CEqFpIoI+SsEaRehiLSb4LWu8SJqAwdCGKt4s gJe8p+rb9Zq7Mlotaj3RyQw5WGgHIxmNNIxgvxCCWmgjmsk8UTflK9ZkaqZunYCE9ebP t5dyfO0z/UrdwfkxpFYMi1YlAy/2Qb98n15SZud23zT0WbRepJ6JTYXxok7M5UdrTV5z liXqh8IJt/JP7WBZVh06gxyi7jxUcAEP2ADKwWhdtQ5ikvvisiVT1OZkhOXxvFsFJuRq pbuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=w2Wbdio+voAPhLoZffWxoA2TpZPl4hlRHVJNP7extlM=; fh=MF2peTgYJ//G8t751nSOVbIbH2TOrwM3JpiMYcMIVv8=; b=XYjlea2QF5/rnphxqYqgTYA6DSGetMRnLL3u29cW68xFZJi7yZTSh8oY1As+x0u+bb tqJNI7oz+oGIbis3b2PEGvhFFn67TOpHZvxFg31UHhLUVQi0R/1U8ILUwA+D4BY/Vcsr rDUtQ5vSmlY3xW1CTuHd61wzj1PK6awdGAHHxT65R1YdJGZ2T9QHcfri0b/T3H8ehv53 xiW7AL23OZi+6v3Vp82XuIM8xhy1QOPgmPIsOWDH9WLKHPpQv41htOVyZz31z26S9gYK +b2b5GCcRZo2V78uwtRNnuUFVXPisp5c7hS0JFSYjXk/DtF71dGJPcasWCJxWxYI+7UK mJVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=o12mlgC3; 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-5593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5593-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 i63-20020a62c142000000b006eabdbccd99si3959837pfg.174.2024.03.29.10.17.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 10:17:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5593-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=o12mlgC3; 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-5593-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5593-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 B9CBC2854E7 for ; Fri, 29 Mar 2024 17:14:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E2D92C698; Fri, 29 Mar 2024 17:14:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="o12mlgC3" 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 DDD974A0A for ; Fri, 29 Mar 2024 17:13:59 +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=1711732441; cv=none; b=RgriV9kFvfbdU6dYxbhXMJePXjCHFuBci0pkW5x2eimCKSYzpC6Q4vnau9DLRPL2NqDCunJ50ZBmDWA45JXw7iOPcE0kf7u5KR+pMNs6ACwP/I43VvUsogBhKdiRynylDkTSVczvBWTlFA0nO5QwgEgjUNWP8g6Xws56ZTOQmZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711732441; c=relaxed/simple; bh=hisFj6rG7zQLznOMrexoCcqrPsmtCZ1QiwkJTal0sCg=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=IOyUJzdkkP0/4bUnoQ/bgYIBtejD5+ZSkyIRACFk5D5kR5mF21c8rUVoplN1a18pHBV+bkE7bMsl0UnnlqN8HivnZNriOxD0iiAKSP08Z1JsXK2dg4rkqfdjR7LnwJntUmYHCzz4kbfO+elRgn8HzuOJpnNCUpMPqPchzc27uvo= 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=o12mlgC3; 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 (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42TFjGJ2001307; Fri, 29 Mar 2024 17:13:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=w2Wbdio+voAPhLoZffWxoA2TpZPl4hlRHVJNP7extlM=; b=o1 2mlgC31zDw4kbgQ6fw261a/zdegAiXTTP1RKgx4CTgDoKHWFBssiu0RJXlrI1IaT SOP+BHIg4MDun5FreUSGSaPu2PtdHJv7DpxlH1ff/1h9G0NkdM/Uc6RDtyNUdyuR Mr/Iw5getGQ7HnFk9X2DiNgrZzJyvxm86klxGGPyTXvPUQOTqaPBC4Y+M6SukrRg yUIERL6pyTYgfUHB8RD/wgSu/P2eufJDQxXEkAtTchMeNFRX7/YuSe/yp1dVSKPn EVxWDPP/8ZjGnDOFb8fXRQS9CnxqJjaCcaS0QohcIVRABAYs7wrW0DVa8xf7LaiG 8d2npkgi9+k9Exmwfouw== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x5xcy0fvg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Mar 2024 17:13:55 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42THDtc8005933 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Mar 2024 17:13:55 GMT Received: from [10.50.15.209] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 29 Mar 2024 10:13:54 -0700 Message-ID: <8b0f6f62-ff3a-483c-bceb-2f9c56526f44@quicinc.com> Date: Fri, 29 Mar 2024 22:43:54 +0530 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC 2/2] wifi: mac80211: Add support for link reconfigure removal Content-Language: en-US To: Johannes Berg CC: References: <20240328055235.3034174-1-quic_mdharane@quicinc.com> <20240328055235.3034174-3-quic_mdharane@quicinc.com> <3f77e4e0455fbfdec7e14777cf116175eae32f49.camel@sipsolutions.net> From: Manish Dharanenthiran In-Reply-To: <3f77e4e0455fbfdec7e14777cf116175eae32f49.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: FsG0TSUg6IVbeUTuHUWIzJcO0vOa66eW X-Proofpoint-ORIG-GUID: FsG0TSUg6IVbeUTuHUWIzJcO0vOa66eW 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-03-29_13,2024-03-28_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=661 adultscore=0 malwarescore=0 mlxscore=0 priorityscore=1501 spamscore=0 phishscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403290152 On 3/28/2024 11:53 PM, Johannes Berg wrote: > On Thu, 2024-03-28 at 11:22 +0530, Manish Dharanenthiran wrote: >> >> +int __ieee80211_link_reconfig_remove(struct ieee80211_local *local, >> + struct ieee80211_sub_if_data *sdata, >> + const struct cfg80211_link_reconfig_removal_params *params) >> +{ >> + struct ieee80211_link_data *link; >> + int ret; >> + >> + if (!ieee80211_sdata_running(sdata)) >> + return -ENETDOWN; >> + >> + if (sdata->vif.type != NL80211_IFTYPE_AP) >> + return -EINVAL; >> + >> + link = sdata_dereference(sdata->link[params->link_id], sdata); >> + if (!link) >> + return -ENOLINK; >> + >> + ret = drv_link_reconfig_remove(local, sdata, params); >> + >> + return ret; > > Again ... remove the 'ret' variable, it serves no purpose at all. > >> +} >> + >> +int ieee80211_update_link_reconfig_remove_status(struct ieee80211_vif *vif, >> + unsigned int link_id, >> + u8 tbtt_count, u64 tsf, >> + enum ieee80211_link_reconfig_remove_state status) >> +{ >> + struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif); >> + >> + if (vif->type != NL80211_IFTYPE_AP) { >> + sdata_err(sdata, "Discarding link reconfig status for unsupported vif type\n"); > > Uh, no. Remove that message please. > Sure, will make this if block in different way. >> +TRACE_EVENT(drv_link_reconfig_remove, >> + TP_PROTO(struct ieee80211_local *local, >> + struct ieee80211_sub_if_data *sdata, >> + const struct cfg80211_link_reconfig_removal_params *params), >> + >> + TP_ARGS(local, sdata, params), >> + >> + TP_STRUCT__entry(LOCAL_ENTRY >> + VIF_ENTRY >> + __field(u32, link_id) >> + __field(u16, count) >> + __dynamic_array(u8, frame, params->ie_len) >> + ), > > All the same things about indentation apply here. > > johannes >