Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp631062lqh; Thu, 28 Mar 2024 11:23:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAz6G9Yeeop/DHsgRrplFZmccXic0j2qddUnzOy9JbN/h4MQe4FiPBwXLtL6mltrwDGV5TftHvQxcB0iPWV1TKGKS0O5delduVMM5HKw== X-Google-Smtp-Source: AGHT+IFyaCSKLAAq4nVkDB3R80YT9K29gDCIkM+ErFSW9N9AVlTT9JCirddBgWQXZIuevc72sWv1 X-Received: by 2002:a17:907:720c:b0:a4d:f8d7:8546 with SMTP id dr12-20020a170907720c00b00a4df8d78546mr226047ejc.7.1711650205564; Thu, 28 Mar 2024 11:23:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711650205; cv=pass; d=google.com; s=arc-20160816; b=iwQq2Zqea+TnseNepWW+C8uDK9CpyCULJo2sSZN3Xv/TrlZWs7KVC2yDzmlegIRO+G sgkaEjgz+OELIs/Jv2vtFsIl05wHD7089g0TCoh3CWtA8z5Jmc+jgZh08Euy+WRW2ecP 47qcjFwNL3VzWCFYlbrAZ0TvqOWf1SgWDIPwy/tW/WQpzp0k87tYDvMGfJeeC6GXFAe+ AHuDLIBe4DDJ+5xlc+sh4e4wazIJqCM+2DRmWSAKP4Y/CJ+UY0B1uM/Wl6dRI7DwvuMz 6nrgloScEivwQhsB/kg1c/yzopTIsG6UAfAROlhVGboYxnpgxgGzOFTPVaXmeAgIn4OO SglA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=gX5i6kQcc4wcaG2Vb+4D3mmuB9agF0nM5XqRS2bTYrw=; fh=TRvVw3XxvcnMh2/9JAAKC8NDHsVpvrU1p1xTaituRUM=; b=QNjHZaiwVgMiiehC8nAeXGvbjoqgRlqNGq1BphzMbzJZHz4AEEQod8TeWuam6Ui3rv ZoSizxcOUG6kQW5OXlwoqufTsg1lbdtHKB5krFJwVVWBG+9bOMeygBtsqqUhpd093fAV IRhvNtSC1QGQXKiM2BFma8HBaL22CMp0iUjwTQqvjHL2YyA8ahvd53Khw1M2Xtx0Fccv 1gzHrXFSblnqL7qFsFJK2tLi9FtbSbECweJjKFAhlbMCBQ4ocuJWmUqfIjHbjUHBe0N4 kJ4ycG9k6RbGcAa8nePb3XObFic5Lq3U0o8AR42yCquO4uLWOMbl6ciqh2zQ5e7KZjoO m1hA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=LdiqOYTU; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-5487-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5487-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z6-20020a1709063ac600b00a4ac16a784dsi973155ejd.875.2024.03.28.11.23.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 11:23:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5487-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=LdiqOYTU; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-5487-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5487-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 33F211F23CC1 for ; Thu, 28 Mar 2024 18:23:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AC4681AAA; Thu, 28 Mar 2024 18:23:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="LdiqOYTU" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 59A212C18F for ; Thu, 28 Mar 2024 18:23:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711650201; cv=none; b=Wx6qn/tXZ7jpWXJvxuDXoleD+BN7RvxL4yG7Fa/ncXEqvFkXz6t0EmvOPK4cdcr0qR3PzPWp4riefxSiIEOp6KxDnC9ZD3xT+yCkstneJPLHXeazBpvQkL6TuuB3VqyCCNHlI1Ya6sCqOm7RK6Gi681vc+aRO7phJ0eN6tYs7BU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711650201; c=relaxed/simple; bh=QSgmME2J6uhuRZWBQdVwMkKxTAsAIa4zM5ULoJLck0A=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=qHLQn0cVLCCiyQEaW+e51T/deykNij/IZrk4XAWjLG39dCFYja8ZU9pD0m+30SVQdnw1xgZVrm8jdlXMg94VVVKe75uXYWUCY/8tm9Vrgu3zaoxkU0oeHPlHIRqTU0nvIAWG7I2/VuAeXWmUZcV4mshqrSmebX71vvazl3O3gyM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=LdiqOYTU; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=gX5i6kQcc4wcaG2Vb+4D3mmuB9agF0nM5XqRS2bTYrw=; t=1711650199; x=1712859799; b=LdiqOYTUrfY+6ttO/1SP28LGpA2eepBZ3MIljp/yRn500Yl m90FMZUqheiNbBhLbFWQ53rJxjMNN+HGufk0BcVyAJRFy6dwlYCVj32R1+WFHC4rx4otMtkBfdlHY 2SKk3wSqMpbD2YyApPFwsSK+ijmTSgA3rTlqmyeAfLC8Kb9kjUI3byGxjMnFygWf+CZb7bRpArd2i G2yY40kXI2HweYKXTvEZUlycZY0CLt2QOkE7XGDOg7D1sfib9zIOgvoj6+YGGtRmJhhEdSw+MuFJr 7RGgMviVCoATo0Iw0GMrMq4n0Fo8ALUDSDURvYi/mtUn8KWcC6M9iC1X6xJtCZUw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rpuPE-00000001DeD-155z; Thu, 28 Mar 2024 19:23:16 +0100 Message-ID: <3f77e4e0455fbfdec7e14777cf116175eae32f49.camel@sipsolutions.net> Subject: Re: [RFC 2/2] wifi: mac80211: Add support for link reconfigure removal From: Johannes Berg To: Manish Dharanenthiran Cc: linux-wireless@vger.kernel.org Date: Thu, 28 Mar 2024 19:23:14 +0100 In-Reply-To: <20240328055235.3034174-3-quic_mdharane@quicinc.com> References: <20240328055235.3034174-1-quic_mdharane@quicinc.com> <20240328055235.3034174-3-quic_mdharane@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Thu, 2024-03-28 at 11:22 +0530, Manish Dharanenthiran wrote: >=20 > +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 !=3D NL80211_IFTYPE_AP) > + return -EINVAL; > + > + link =3D sdata_dereference(sdata->link[params->link_id], sdata); > + if (!link) > + return -ENOLINK; > + > + ret =3D 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 *v= if, > + unsigned int link_id, > + u8 tbtt_count, u64 tsf, > + enum ieee80211_link_reconfig_remove_state status) > +{ > + struct ieee80211_sub_if_data *sdata =3D vif_to_sdata(vif); > + > + if (vif->type !=3D NL80211_IFTYPE_AP) { > + sdata_err(sdata, "Discarding link reconfig status for unsupported vif = type\n"); Uh, no. Remove that message please. > +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