From nobody Fri Nov 29 14:39:17 2024 Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.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 EE7C61C9DE5 for ; Wed, 18 Sep 2024 19:20:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687259; cv=none; b=nEvKn2FVPahHDYl24xccLL738aku8ZBPe1S/WMrWNgRr+WDndrknrAb5ulfJOwQzWu0ETLq9A/u68+X9H2JF1MnRKROyKybT5GZUQR/bYaOcAH9+g+u5o7dy5XX04t3XiisSl3E2pWUNtn1qEzfrUQdY9iw5LodnUZZwKm6yHEg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687259; c=relaxed/simple; bh=x9hFAta328ClIMgZNZA+WHiW6X/BprooQPYwdps2wmg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CH0VPVSotVPxICmR1x4zhIm67QjvNfz0hLO/AVmuG6EbJsBio3+8Capb6bq8J2LT8lBHd63qCNCjcy32QoEFarK5yrw40DojWedbpaAHb9FjZlGU4oTBIi04ortZpL8/UpEuJ9zeCudZTqBt1WKBQpA6LGV8mPm60bENLu7LXVI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=gEmqGf07; arc=none smtp.client-ip=185.70.43.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="gEmqGf07" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687256; x=1726946456; bh=KhZoZPKYCTCWJgjjSf9Lt9HbrP4/i0KAqvC1Qwk1GE0=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=gEmqGf07haB/bi5BmfFcAc7W34epY7i+/3+tOZZrMEwAdjaiJDXt/d0NmRHjzpxcY 3HJzvk3v4GwWtw9+3oEKVIyM8/u/dpoRsoJ7nOMM8L6g6emQLG2xxjNpiCjpqy5mN7 jIqhdWbrkGIBG0GSEiemeWBDvhZlzqCS01ty5pBUUpbjNc4bHkizEiv0cIPoWESTzZ nqEYcRAk6BolGtOrtcgGgQlXiX0SrvNFSOpYeIXqk40gi4JExd5waWGeivn7WceeU3 X109YT0wq6tqP9+m3zXf6DR/xOWSZ0oRZYXjv31Z3LcPog8+xuqzWnBE1s7z+LP4yD 9sh7AOa8dompg== Date: Wed, 18 Sep 2024 19:20:51 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 01/14] staging: vt6655: s_uGetDataDuration: Rename pDevice parameter Message-ID: <20240918191959.51539-2-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: b1c6673bbcf88c07ea482bdb7a4474d3e7684ee3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames pDevice to priv in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 3705cb1e87b6..a1dadc3e8cb5 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -229,7 +229,7 @@ static __le16 get_rtscts_time(struct vnt_private *priv, static unsigned int s_uGetDataDuration( - struct vnt_private *pDevice, + struct vnt_private *priv, unsigned char byDurType, unsigned int cbFrameLength, unsigned char byPktType, @@ -255,9 +255,9 @@ s_uGetDataDuration( switch (byDurType) { case DATADUR_B: /* DATADUR_B */ if (bNeedAck) { - uAckTime =3D bb_get_frame_time(pDevice->preamble_type, + uAckTime =3D bb_get_frame_time(priv->preamble_type, byPktType, 14, - pDevice->byTopCCKBasicRate); + priv->byTopCCKBasicRate); } /* Non Frag or Last Frag */ if ((uMACfragNum =3D=3D 1) || bLastFrag) { @@ -265,17 +265,17 @@ s_uGetDataDuration( return 0; } else { /* First Frag or Mid Frag */ - uNextPktTime =3D s_uGetTxRsvTime(pDevice, byPktType, + uNextPktTime =3D s_uGetTxRsvTime(priv, byPktType, len, wRate, bNeedAck); } =20 - return pDevice->uSIFS + uAckTime + uNextPktTime; + return priv->uSIFS + uAckTime + uNextPktTime; =20 case DATADUR_A: /* DATADUR_A */ if (bNeedAck) { - uAckTime =3D bb_get_frame_time(pDevice->preamble_type, + uAckTime =3D bb_get_frame_time(priv->preamble_type, byPktType, 14, - pDevice->byTopOFDMBasicRate); + priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ if ((uMACfragNum =3D=3D 1) || bLastFrag) { @@ -283,18 +283,18 @@ s_uGetDataDuration( return 0; } else { /* First Frag or Mid Frag */ - uNextPktTime =3D s_uGetTxRsvTime(pDevice, byPktType, + uNextPktTime =3D s_uGetTxRsvTime(priv, byPktType, len, wRate, bNeedAck); } =20 - return pDevice->uSIFS + uAckTime + uNextPktTime; + return priv->uSIFS + uAckTime + uNextPktTime; =20 case DATADUR_A_F0: /* DATADUR_A_F0 */ case DATADUR_A_F1: /* DATADUR_A_F1 */ if (bNeedAck) { - uAckTime =3D bb_get_frame_time(pDevice->preamble_type, + uAckTime =3D bb_get_frame_time(priv->preamble_type, byPktType, 14, - pDevice->byTopOFDMBasicRate); + priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ if ((uMACfragNum =3D=3D 1) || bLastFrag) { @@ -314,11 +314,11 @@ s_uGetDataDuration( else wRate =3D fb_opt1[FB_RATE0][wRate]; =20 - uNextPktTime =3D s_uGetTxRsvTime(pDevice, byPktType, + uNextPktTime =3D s_uGetTxRsvTime(priv, byPktType, len, wRate, bNeedAck); } =20 - return pDevice->uSIFS + uAckTime + uNextPktTime; + return priv->uSIFS + uAckTime + uNextPktTime; =20 default: break; --=20 2.34.1 From nobody Fri Nov 29 14:39:17 2024 Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.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 232FB1CB31C for ; Wed, 18 Sep 2024 19:21:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687265; cv=none; b=QxlOpR9sl5sh3S/CC/pI1kRkZZknXfPGjeBogGMZJU3Ih/1d+Pytqvqm4WvmkISmPwwfq5o/d4iNXXHMNWKcTxiK8Ig9qKuExgzl4EtIjfG/ykv4tO4s2t4WevjGDH651ae7dm8Zx9KgtMEwKjyoOIZhwp3zuO4vWp9mAQQc/L8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687265; c=relaxed/simple; bh=ig4J89f6O+menLvrJQ8LdWtnp02W64E8zxAYsKrjQ6Y=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=SyCgreX8Qf/rQI21JZA4JKcQQKDsqAbawZzzuvbXuUbk1FFqbdSxr30tfzkAnWaoaESceHc6xrTOdzUHR060qahcCmJbjxKW25LktI1SRi1x9it3h99XX44nR7Mtm5+ZbzDMpsrpJPYreRAlpYLfB3/GMCEosZkLxLfa/RkfgP0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=IXSFTcjk; arc=none smtp.client-ip=185.70.43.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="IXSFTcjk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687262; x=1726946462; bh=E1c8su5psVVJ96LYrQRPVdjK8oOLuE4e2mk0Bqp8mCI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=IXSFTcjkvySwh8CEqPt1Cs9ume5rAzEMWq1mvICD/GkFrbMcIaOyx/724u68KLUYv uv1EX32b3XOleLDSByvkU3/sjzhjpRBSMs8vNUYibMmroHiAijsh0th1aIKNbLrGeF h7tlUWyJzWzIaHeQzRyFdH41PcG8h0QAqFsVXbwH7LgJff8wsc8P2LlkhKlOYVxpdT 71//++TfVvmNMfi4TA1n8/tQARvgCa1+fePzGSHePJk0Zz3UeTgtgFWps4LqKqdatO mWxXvtInTZzpKWMos4vq7h4ihnKCuIavflrK49DEb3FiOFFlRWaQBvOB44jUHzZcuI nQZWOgSPNJzRg== Date: Wed, 18 Sep 2024 19:20:57 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 02/14] staging: vt6655: s_uGetDataDuration: Rename byDurType parameter Message-ID: <20240918191959.51539-3-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: e7c451ec80058e33b81e8ec1d0f4fa13a5393551 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames byDurType to dur_type in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index a1dadc3e8cb5..239fa4a1af66 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -230,7 +230,7 @@ static unsigned int s_uGetDataDuration( struct vnt_private *priv, - unsigned char byDurType, + unsigned char dur_type, unsigned int cbFrameLength, unsigned char byPktType, unsigned short wRate, @@ -252,7 +252,7 @@ s_uGetDataDuration( else len =3D cbFrameLength; =20 - switch (byDurType) { + switch (dur_type) { case DATADUR_B: /* DATADUR_B */ if (bNeedAck) { uAckTime =3D bb_get_frame_time(priv->preamble_type, --=20 2.34.1 From nobody Fri Nov 29 14:39:17 2024 Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) (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 2D0431CA6B6 for ; Wed, 18 Sep 2024 19:21:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687276; cv=none; b=L8yz3OeQG3F/+eliN/46jVcUu/0XbXB2wWuoWq7ERcChyikNO4zlsZZF46Oix0rATPphxOl8xODLvFahw55AsQemdiqnfor0nvYR8/lMKyLMWmakKRTjIBIeDU8CDKcPtPu/QdeIw9nqzQrF5OMI8A5oaq2LMZV3q/z1pBAGg/0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687276; c=relaxed/simple; bh=2Dxavvxr5+ncqT15+4pRoatg/np2Ek4Qc8vHc3juzO8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZSUTsIq97ib6Psq2OBuCXuT6LegKAjTnlpPiBOeLEqISzZWwTETCiuGrhNuiUX2TxtgRrRn0SMO4maHNEORdPJLCh9iZvDr+TJJfntRrsq6fSdSjUd6yHEEmGr74VFrOncmY5uh+wB/IaLv8Ao51z597ntGoL0+lEZx+gpKtzsw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=ZsuUDRwv; arc=none smtp.client-ip=185.70.43.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="ZsuUDRwv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687267; x=1726946467; bh=X3N0GMPfcosg7WiMChayJ0RW/yEtBAZL9uGRXzt6OnQ=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=ZsuUDRwv1/TTM7nvEz3UQ2Q5t6hY760vtFdZ2r5QdRaWdbpoDy8mXjiczXUaLiNYM KBFv4U0KTnVmnHGi2Zdnq7hoc1VtWp2fJEsiN9F1IXhp52WGkDbOzYr/sbmCW2LQQ3 V9pu4V/Vdd2ywAb2oCzNLa7y9Y76yLji1xI3a7K6LrMd1TUXyNMrIliZ6wsEX0SuYp d2Qqz0fUgVqR7Vf9MB7OwKKYD/W/VKhq7bTSlZWZ6JDXVOD3IwZSXQ2Q9++SspjJCB PcNHz9iVegi2w6L1p+kx6XsBn51XEp0lUpRy45bwBZHyDTL+hAYbJ9BUWkiZMmosAD EC3I2wmpOdadw== Date: Wed, 18 Sep 2024 19:21:03 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 03/14] staging: vt6655: s_uGetDataDuration: Rename cbFrameLength parameter Message-ID: <20240918191959.51539-4-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: 50c0c3d2e8a1ac7262012103bce268fc02819bfa Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames cbFrameLength to frame_length in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 239fa4a1af66..1747018e747a 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -231,7 +231,7 @@ unsigned int s_uGetDataDuration( struct vnt_private *priv, unsigned char dur_type, - unsigned int cbFrameLength, + unsigned int frame_length, unsigned char byPktType, unsigned short wRate, bool bNeedAck, @@ -250,7 +250,7 @@ s_uGetDataDuration( if (uFragIdx =3D=3D (uMACfragNum - 2)) len =3D cbLastFragmentSize; else - len =3D cbFrameLength; + len =3D frame_length; =20 switch (dur_type) { case DATADUR_B: /* DATADUR_B */ --=20 2.34.1 From nobody Fri Nov 29 14:39:17 2024 Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) (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 43F641CA68D for ; Wed, 18 Sep 2024 19:21:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.134 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687273; cv=none; b=Wm21Cs2CrhNjoKNcd44TBj41HfgRHz+6oayDf6CBEmLF/enkG9b+Ii+xYuNq6hoKHi14I0X82jpb73KeWCAUFcqL+50dcqiJwNT2sd0uzRY/97Lk2VlZKupc5vu2vECX5kQM52g3nG0Iv8WbgRwSqgVS3eOv5R4Zu0GlBELK0b0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687273; c=relaxed/simple; bh=z2nMJzqE5n8kJ6yIantqQNYJkLrl44runy54J+tkJQ8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eLjqYak4MGeaOwwMITFoJHZPZEjHl3lv6QZTIUyr73Fu1SE1LRWv8eAb8IZBMZJP6VR0BZW0L0dXdstjAHRMyX+r+Cz9y16d4xWr2cn8EYOdcyu5E5ekDNoulEYoVVSfoOT61yH/l4cIbtrOsK9tO1ABmQEAhzMXI2em3a260mw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=S86dD7FZ; arc=none smtp.client-ip=185.70.40.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="S86dD7FZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687270; x=1726946470; bh=qeQbKG2HPh5rehTIUsbVkhaR6dz2tTgrlQZp1wx8Whc=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=S86dD7FZUvnkshQ6rviQxyO1+/fx/J3PxDs2oK7roGVz7SozdN3fPrGdkehfpXFf6 qIaQu7ADdPkXBpx1kFyTdV77YtIWfMtywEL0CpN5a9yQUhNxB6D3lk27FlK2k+Vp3k 8jcwb5pCDSg9ZihjWi2ncKkWkvYXt1sT+8TJlPKMefXBFDfHwqNS73DBtEYGW3mUV4 aw5EdV46X92lHfkgXemQkpWq8WFseK1jOFAoXMLMQIjcSFIsBQobZ7tIBNTngBxXgv mqWBMO89AznX8Y0QBQJLqhx5uxoRWf2MfNd2a5WfiOiA450OOKPhMGj6mdERjqYYj2 kDWi35jpaBpTw== Date: Wed, 18 Sep 2024 19:21:07 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 04/14] staging: vt6655: s_uGetDataDuration: Rename byPktType parameter Message-ID: <20240918191959.51539-5-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: 514c58b49714911802dbe44763e24b85257227e8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames byPktType to pkt_type in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 1747018e747a..dd228962dd77 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -232,7 +232,7 @@ s_uGetDataDuration( struct vnt_private *priv, unsigned char dur_type, unsigned int frame_length, - unsigned char byPktType, + unsigned char pkt_type, unsigned short wRate, bool bNeedAck, unsigned int uFragIdx, @@ -256,7 +256,7 @@ s_uGetDataDuration( case DATADUR_B: /* DATADUR_B */ if (bNeedAck) { uAckTime =3D bb_get_frame_time(priv->preamble_type, - byPktType, 14, + pkt_type, 14, priv->byTopCCKBasicRate); } /* Non Frag or Last Frag */ @@ -265,7 +265,7 @@ s_uGetDataDuration( return 0; } else { /* First Frag or Mid Frag */ - uNextPktTime =3D s_uGetTxRsvTime(priv, byPktType, + uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, len, wRate, bNeedAck); } =20 @@ -274,7 +274,7 @@ s_uGetDataDuration( case DATADUR_A: /* DATADUR_A */ if (bNeedAck) { uAckTime =3D bb_get_frame_time(priv->preamble_type, - byPktType, 14, + pkt_type, 14, priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ @@ -283,7 +283,7 @@ s_uGetDataDuration( return 0; } else { /* First Frag or Mid Frag */ - uNextPktTime =3D s_uGetTxRsvTime(priv, byPktType, + uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, len, wRate, bNeedAck); } =20 @@ -293,7 +293,7 @@ s_uGetDataDuration( case DATADUR_A_F1: /* DATADUR_A_F1 */ if (bNeedAck) { uAckTime =3D bb_get_frame_time(priv->preamble_type, - byPktType, 14, + pkt_type, 14, priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ @@ -314,7 +314,7 @@ s_uGetDataDuration( else wRate =3D fb_opt1[FB_RATE0][wRate]; =20 - uNextPktTime =3D s_uGetTxRsvTime(priv, byPktType, + uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, len, wRate, bNeedAck); } =20 --=20 2.34.1 From nobody Fri Nov 29 14:39:17 2024 Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.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 F2D061CB50B for ; Wed, 18 Sep 2024 19:21:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687279; cv=none; b=Wu4o6UBwWqL1nlGcssThduNSdH62T62aHVylNCEz9SRaDnlSeaFdO4EYJ60oQPA7IaIGFfJfjkGzgmvD5UiAG78mQCZovkjCpyGrC5gV886U924q2SFqPDLRDMgDl3ZQGl1sGzF7GiivrdnDK1Wz6/IYiMCUkk9Ivn0CQPAyYEw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687279; c=relaxed/simple; bh=iBUdUcuyFy3PwDpZpP+AQIisDPez0XyKVtQTnXifhZY=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=b14mXQ1ing1J7Af2bJEhh3mN2xTCdmu5/zvMME+md7v+qjnm4IYtDCHAW6fpgcMpgz/hGxPDr3HfIiJT0tIQwi0/kDaOwNwDN6JSmHVmWMN9VtnSfXC9nkwl9HS0+I25QvjRmDr9r+jfWwudZE7t5L2HhjqBtyQc7MGpVZ+vJ8M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=YAIlwGjf; arc=none smtp.client-ip=185.70.43.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="YAIlwGjf" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687275; x=1726946475; bh=k+UTPxJmdwp6BXX9W14I0NBgGNiPwpjEDV7rUDT0Cns=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=YAIlwGjfmPXMERKB7XC+FrLjBwMgUqDpQk5aCgUGrLTmPwQxyXEK4jSRn9bBAGBNi pXCO95Ml6VzsgHZ8dIHEAw8IyE64SBqoGqlJ8eneRg8Ib1mGzY5AcWH1CS8/wT05fz hRVA7/xyOQAUR0YOdIyGm/6qwpekkH6k90G6Kxfnht+gzUHcl7jmLBXUytN3FgXwgz XEpBtihmEQpx3uzBSbp0nVS22z2dusLa1RSwwAmoE31qKHMqfrlRtvasm3CLL6SX62 o6X3yBV+yEmlkdVtUBmjhQmRf6Sl3/7IFbRHwqizG6+ib/0p/nsZ1I+JqFFJpZg79C JJLB8ivSlxVoQ== Date: Wed, 18 Sep 2024 19:21:11 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 05/14] staging: vt6655: s_uGetDataDuration: Rename wRate parameter Message-ID: <20240918191959.51539-6-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: 2684ebcb0ad610bf925f3f794fd161098a326aa8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames wRate to rate in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index dd228962dd77..7dd57d2e2831 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -233,7 +233,7 @@ s_uGetDataDuration( unsigned char dur_type, unsigned int frame_length, unsigned char pkt_type, - unsigned short wRate, + unsigned short rate, bool bNeedAck, unsigned int uFragIdx, unsigned int cbLastFragmentSize, @@ -266,7 +266,7 @@ s_uGetDataDuration( } else { /* First Frag or Mid Frag */ uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, wRate, bNeedAck); + len, rate, bNeedAck); } =20 return priv->uSIFS + uAckTime + uNextPktTime; @@ -284,7 +284,7 @@ s_uGetDataDuration( } else { /* First Frag or Mid Frag */ uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, wRate, bNeedAck); + len, rate, bNeedAck); } =20 return priv->uSIFS + uAckTime + uNextPktTime; @@ -302,20 +302,20 @@ s_uGetDataDuration( return 0; } else { /* First Frag or Mid Frag */ - if (wRate < RATE_18M) - wRate =3D RATE_18M; - else if (wRate > RATE_54M) - wRate =3D RATE_54M; + if (rate < RATE_18M) + rate =3D RATE_18M; + else if (rate > RATE_54M) + rate =3D RATE_54M; =20 - wRate -=3D RATE_18M; + rate -=3D RATE_18M; =20 if (byFBOption =3D=3D AUTO_FB_0) - wRate =3D fb_opt0[FB_RATE0][wRate]; + rate =3D fb_opt0[FB_RATE0][rate]; else - wRate =3D fb_opt1[FB_RATE0][wRate]; + rate =3D fb_opt1[FB_RATE0][rate]; =20 uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, wRate, bNeedAck); + len, rate, bNeedAck); } =20 return priv->uSIFS + uAckTime + uNextPktTime; --=20 2.34.1 From nobody Fri Nov 29 14:39:17 2024 Received: from mail-40133.protonmail.ch (mail-40133.protonmail.ch [185.70.40.133]) (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 DF2861CB30A for ; Wed, 18 Sep 2024 19:21:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687285; cv=none; b=kcdLN0dK/7bVL0/LbORN947jj+vk5ltcn1PHHuhPCSbplzHzfbJuzaLcHDDZVU7kDWNcC0F4P/SlfoQRPC3vGChYaQcRpzfSns0Be/xZ5pxk4IpvVT93TpMDhLA7wfWeEMH3X9VgW8rWHFxarL8RhwUTm/Y28UhHLl+xuaT8dt8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687285; c=relaxed/simple; bh=JECJLvnhio78zZxE3FL4gNGIfj9yWbrkXe9N/pkvkAU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rXwnXE12j0+8x/6PU57k0PpNp0NyD0PxzQtrhUJYJQYaOsDfWQS+xUypgE8i6dhcBAXDHLwRqaCWhoCO/WAQViDTqd03gCRBhV8u/LvTDYyhagntNiqQdFpf4sFeow5Bb9WxgzeVgDRqKfk4kP4rv5jLkN4+Ggxb0ngVVnH51+s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=KhKBdJTl; arc=none smtp.client-ip=185.70.40.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="KhKBdJTl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687280; x=1726946480; bh=n+iho082T7gTlh0cvK2vzkCqMr12X2d6EyFsyy1wuzo=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=KhKBdJTloYNb/v9VXyPvU8MFGLIm7QWXuYZeCxNdZ3Pu71AoUvPe0/wJoIV1TUmYF w3E0ScujO8qMWMJfOMEdV2JmaFcS2vO7kGSUp0xQ9xx/frw302a8p0GKwWqRiPWGvf kQBFWTC455J2F1XVPFvhFYIX0kDRATJP1q8InTb3uBu4QsDZV4Lo+oexO53ohQug4+ YpK3yVLwHkqP4/+NDe71kRdZHu3/6oSx9+cWULTViZrjA6ftwBDi1HDaPL0sVnrEkR 47wCCopq3o88pDWsSo84Pujt/a29pLiy8JrNpJ6YVTCX/ZaQ341K2RnAfnVzaVGZBp zyErRq4/Nz5+g== Date: Wed, 18 Sep 2024 19:21:15 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 06/14] staging: vt6655: s_uGetDataDuration: Rename bNeedAck parameter Message-ID: <20240918191959.51539-7-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: 10ac2baaf174f0bd80ce457defa0a67e2c071d2a Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames bNeedAck to need_ack in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 7dd57d2e2831..72837898ea29 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -234,7 +234,7 @@ s_uGetDataDuration( unsigned int frame_length, unsigned char pkt_type, unsigned short rate, - bool bNeedAck, + bool need_ack, unsigned int uFragIdx, unsigned int cbLastFragmentSize, unsigned int uMACfragNum, @@ -254,51 +254,51 @@ s_uGetDataDuration( =20 switch (dur_type) { case DATADUR_B: /* DATADUR_B */ - if (bNeedAck) { + if (need_ack) { uAckTime =3D bb_get_frame_time(priv->preamble_type, pkt_type, 14, priv->byTopCCKBasicRate); } /* Non Frag or Last Frag */ if ((uMACfragNum =3D=3D 1) || bLastFrag) { - if (!bNeedAck) + if (!need_ack) return 0; } else { /* First Frag or Mid Frag */ uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, rate, bNeedAck); + len, rate, need_ack); } =20 return priv->uSIFS + uAckTime + uNextPktTime; =20 case DATADUR_A: /* DATADUR_A */ - if (bNeedAck) { + if (need_ack) { uAckTime =3D bb_get_frame_time(priv->preamble_type, pkt_type, 14, priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ if ((uMACfragNum =3D=3D 1) || bLastFrag) { - if (!bNeedAck) + if (!need_ack) return 0; } else { /* First Frag or Mid Frag */ uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, rate, bNeedAck); + len, rate, need_ack); } =20 return priv->uSIFS + uAckTime + uNextPktTime; =20 case DATADUR_A_F0: /* DATADUR_A_F0 */ case DATADUR_A_F1: /* DATADUR_A_F1 */ - if (bNeedAck) { + if (need_ack) { uAckTime =3D bb_get_frame_time(priv->preamble_type, pkt_type, 14, priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ if ((uMACfragNum =3D=3D 1) || bLastFrag) { - if (!bNeedAck) + if (!need_ack) return 0; } else { /* First Frag or Mid Frag */ @@ -315,7 +315,7 @@ s_uGetDataDuration( rate =3D fb_opt1[FB_RATE0][rate]; =20 uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, rate, bNeedAck); + len, rate, need_ack); } =20 return priv->uSIFS + uAckTime + uNextPktTime; --=20 2.34.1 From nobody Fri Nov 29 14:39:17 2024 Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) (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 5D3EA1CB30E for ; Wed, 18 Sep 2024 19:21:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687287; cv=none; b=FJHirrgkrpUuxP+NZIU2CnYf7HaohAcnWolLfW9tdTLd11sXKDVcgEf5KIEd0bjXok4mNk48HE6ZRxgPsIkolvb2gnXMLpq2N90AqCPL6MPgj0ig/tdeSUWYMTQKUUPHv8f5IfBSsTLL5GoIVu2gRORRJrCiRXfAXWTWH+yFHLY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687287; c=relaxed/simple; bh=tmxJZ1iDzC5bj4dGB4TSqrMB1l5mCGut4F+5SZsXvuM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LURK6d/X+DRfg6v97K+001O8BqvAtG8nJQkQeuJ5/MoFay7U9XyCruNro0Ku9DFWAhjN7ovRZLpWbs+3jJC7/ZKbURvag/Iv7cAxqgAnjDz22txIQ9d5xz9NIQpH4BNQ5QGkjCZqx33iq0fnTzOiiF8GTOKP1enrNjSNexXx3Vo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=OUE+zpnc; arc=none smtp.client-ip=185.70.43.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="OUE+zpnc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687283; x=1726946483; bh=tmxJZ1iDzC5bj4dGB4TSqrMB1l5mCGut4F+5SZsXvuM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=OUE+zpncVs2reNBa14Kj+E7fhw/ed9JCRYG5G3EfgBk9QkmEa/+/Nj7wcPuxdVZ6r Gos56PFKXiLp5zrDSHunWJaK1vT6YodnStBHLhnHK9XFkc5xvLwqVpZf4+8Wc1BHC/ i43KA0QDLzbBH+znD8Kn0NU0Qbp4uqRJhk8pFIovZt+RUlP6Ddscncok6SfXn8CZPL mZ5cUhKwTBWQfGJxnyZRwhRUOWeF1QO+SQglrWtkUDvcAGOIvMuCeV979sYPNNfGsh oRiUh7jbQ+wZU7uLQUtZsZO6dynQ95Knr4mL2M/suY3rQKCh/wteEBk+oq5bxi4SG4 SH2GtG6qqevrQ== Date: Wed, 18 Sep 2024 19:21:20 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 07/14] staging: vt6655: s_uGetDataDuration: Rename uFragIdx parameter Message-ID: <20240918191959.51539-8-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: fe23c06e11d02b388475037091821da9bf092843 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames uFragIdx to frag_idx in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 72837898ea29..3d7bdcba83a9 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -235,7 +235,7 @@ s_uGetDataDuration( unsigned char pkt_type, unsigned short rate, bool need_ack, - unsigned int uFragIdx, + unsigned int frag_idx, unsigned int cbLastFragmentSize, unsigned int uMACfragNum, unsigned char byFBOption @@ -244,10 +244,10 @@ s_uGetDataDuration( bool bLastFrag =3D false; unsigned int uAckTime =3D 0, uNextPktTime =3D 0, len; =20 - if (uFragIdx =3D=3D (uMACfragNum - 1)) + if (frag_idx =3D=3D (uMACfragNum - 1)) bLastFrag =3D true; =20 - if (uFragIdx =3D=3D (uMACfragNum - 2)) + if (frag_idx =3D=3D (uMACfragNum - 2)) len =3D cbLastFragmentSize; else len =3D frame_length; --=20 2.34.1 From nobody Fri Nov 29 14:39:17 2024 Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.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 5A65E1CB324 for ; Wed, 18 Sep 2024 19:21:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687294; cv=none; b=t2R9jR4gqefEDcdh5QcLUeI6SSgKoUySAbT72+nNgjLSJjAe1j/7Lj0BR16e62PVILJWl1us4+WqeLGYbARZk5GsaS8KXNebD0fgyPZIxP7asunAgB+LdUP6eMDue71Gs9ujuvL0TZvMzbAf96HsgblupUbex5gVFLahL3IUodg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687294; c=relaxed/simple; bh=W+zVSXjAOcG0MACVhz4X7u9EOeuZwAb+lVR6/aAjToE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RuKPsPtV06SA99zwjof0WljxHFDSbh+ZjybRFECV2RbjXPLIOP++YjQvG+VoNu371kGUXVz11YXK5Zj2Fy7OZqO5GClNSSLK15x0jyFVUHATzAG+bp4pzeVxVhZMAUuTPGF8e/DzYkXxDmFy++4Act70L8QoVt0Rec7k5DZRnlY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=e4uarnh1; arc=none smtp.client-ip=185.70.40.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="e4uarnh1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687291; x=1726946491; bh=W+zVSXjAOcG0MACVhz4X7u9EOeuZwAb+lVR6/aAjToE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=e4uarnh1+gM504UIcJ2A4OoyVkMJPqdlb58OHbU4SPc8TBpWqTdJHNyrjfHRbYzhy yeO6iLv5X3BdFQeo5Q05vIepoT67NixJ14aWYzKnDeipJ2VxT48QIcs09ArFzgwbAL hwWnhJ9YFpAXAKCBUIvXskY5N0diraDXKfy8Jc77mzMpKJ1vyRL4QmQiz4khI7z88v VpxbZO2U8BardbevgnXkLMZIZS0aXcJC5i7u+maCeJ/c3zMlc6KscQssVras2hxjkV B1paWCHhYvHkhcZbBOkMZ7BKdpMi+OUdXt0S6xLGKQVUBjM9ByUTBVqMcZ1AHYdDNe 6CfGgnvZx/z/g== Date: Wed, 18 Sep 2024 19:21:26 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 08/14] staging: vt6655: s_uGetDataDuration: Rename cbLastFragmentSize parameter Message-ID: <20240918191959.51539-9-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: d295879f42ca70281d623ebce352966a90f441fc Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames cbLastFragmentSize to last_fragment_size in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 3d7bdcba83a9..1d0b5b8f09c2 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -236,7 +236,7 @@ s_uGetDataDuration( unsigned short rate, bool need_ack, unsigned int frag_idx, - unsigned int cbLastFragmentSize, + unsigned int last_fragment_size, unsigned int uMACfragNum, unsigned char byFBOption ) @@ -248,7 +248,7 @@ s_uGetDataDuration( bLastFrag =3D true; =20 if (frag_idx =3D=3D (uMACfragNum - 2)) - len =3D cbLastFragmentSize; + len =3D last_fragment_size; else len =3D frame_length; =20 --=20 2.34.1 From nobody Fri Nov 29 14:39:17 2024 Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.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 DA8B91CBEB4 for ; Wed, 18 Sep 2024 19:21:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687299; cv=none; b=bCDd0ZX9/wFy1+rq+SRRQ7bNesqfMx8wsmrSLeUmphc9HLXF+Fk7ivA5M0zbYCy+VdKGwWa0s+VuNZ91FHIYmjEHH8JVdMS4NrdFVHWT1esawzX3YBCSBuBKvDYnerRaOkZrwhf0J+xu0kLQsBd5RlO5v4hit2v9rbxq/u13NqQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687299; c=relaxed/simple; bh=c7kusT8qRHX+nEftPn+bO1QBgw9v2b6b2CJ4i6Jii7U=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=J5BPj9AbwQDudCvsLFfm/yiMTZJwvME05NVci3kZ5v58RvBqlliK/e+tUmcug9kYHyfiBR1i1I0PtaySwA0rTEfxMH1z/J8J3X9/6ABHS3KWM7zN2b1lsLAgWQ8gd/7KuQfvK+28+0cLobL/wdYHPJrgkp47kfqqm+G9vxwTXzs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=LCyETxq1; arc=none smtp.client-ip=185.70.40.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="LCyETxq1" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687296; x=1726946496; bh=7Rfo9aDVrczzJfait/G4RmS96V3tBF7YgVtfQsfVKJQ=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=LCyETxq1sLn6fxxkCuA+hAnZ2xVV01uI4pG0E97RB0otmrY55fPmeJypEeymdAmQ5 3+JDDRvRUt5JUbBZHLLRojwJTwu9v7+uXemDG0MFooafyPkKA8TfrnBfREQyme89Ve Yg5l29WVOJ9cJyGBxqR5vP7hC856/2vwaSWG8Y/D6gYDOz8cTacIp4VuojR28IA2a9 K7IONBhOw3vCeWbXKBvM2r5znCfZRegLMeywrfV9LJMuQSvThu0xLN1jZuRiIdmHrh 8kPgMNNqQIPWzibh+9EUIdlMI9DARMs3/tuWdfS/3MrpH0xU0FtHtEFKZg7+s452JR TInXmB85vRSkA== Date: Wed, 18 Sep 2024 19:21:32 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 09/14] staging: vt6655: s_uGetDataDuration: Rename uMACfragNum parameter Message-ID: <20240918191959.51539-10-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: 3982ca58166f909126ef1aa00c449eb017967be2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames uMACfragNum to mac_frag_num in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 1d0b5b8f09c2..ca92dd72cb72 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -237,17 +237,17 @@ s_uGetDataDuration( bool need_ack, unsigned int frag_idx, unsigned int last_fragment_size, - unsigned int uMACfragNum, + unsigned int mac_frag_num, unsigned char byFBOption ) { bool bLastFrag =3D false; unsigned int uAckTime =3D 0, uNextPktTime =3D 0, len; =20 - if (frag_idx =3D=3D (uMACfragNum - 1)) + if (frag_idx =3D=3D (mac_frag_num - 1)) bLastFrag =3D true; =20 - if (frag_idx =3D=3D (uMACfragNum - 2)) + if (frag_idx =3D=3D (mac_frag_num - 2)) len =3D last_fragment_size; else len =3D frame_length; @@ -260,7 +260,7 @@ s_uGetDataDuration( priv->byTopCCKBasicRate); } /* Non Frag or Last Frag */ - if ((uMACfragNum =3D=3D 1) || bLastFrag) { + if ((mac_frag_num =3D=3D 1) || bLastFrag) { if (!need_ack) return 0; } else { @@ -278,7 +278,7 @@ s_uGetDataDuration( priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ - if ((uMACfragNum =3D=3D 1) || bLastFrag) { + if ((mac_frag_num =3D=3D 1) || bLastFrag) { if (!need_ack) return 0; } else { @@ -297,7 +297,7 @@ s_uGetDataDuration( priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ - if ((uMACfragNum =3D=3D 1) || bLastFrag) { + if ((mac_frag_num =3D=3D 1) || bLastFrag) { if (!need_ack) return 0; } else { --=20 2.34.1 From nobody Fri Nov 29 14:39:17 2024 Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) (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 ED0411CB31C for ; Wed, 18 Sep 2024 19:21:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687307; cv=none; b=dwPJytf6upoJBLSSziXllXgVItDY6khyl6oxBFCfky+vnREfR+7UT6mY435/KnWf+Ny5cVwsx5/oKWw4Lsp8YUh2E7Af2CErBTODOj6Eyv7tktGtryWjRVXn+DFw06rBU18norY4bdimgZTXsGSRHCtrAGpfOEVpVoNUekep8Cw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687307; c=relaxed/simple; bh=/dImOGan3ZkKVRH8rDVlWttV/k205lKet7c6uyWYv40=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Gv+cczJqCtEFlRmepH8ZNyHL/7wMP+KSqwh7zbAk6HZ6blz0h7MtBlgoSA3ZlIh3LL/I9tu+oXa7oD9kRjloIzYEF1UJZBpGBBwZ8F3cxw6lX7EsXWx6a49FZ3VP8FRQcEvakalVQS4HhWLSGu8Nku6Ug0x2AZYR3znDecPAWWw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=OETp15rv; arc=none smtp.client-ip=185.70.43.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="OETp15rv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687304; x=1726946504; bh=/dImOGan3ZkKVRH8rDVlWttV/k205lKet7c6uyWYv40=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=OETp15rv2DHf1qu++VcMkwVew8e3t8eg3EIACcqf9NOa3sHtbQXpLGsdVktn0GI4Z wYrZUyfOxctn6KPAseveCcdCUHvJlvdX66NLMeBJrKDhYyqnneMMty9WkDvUciA8Rz RAmPczYCPTBXmkhEvTsIl/6HtyZTDi5QPqd00S5b5oJGJ4l3KgVyN5pcgX5/OeH/w2 WNJW4YD+3k2YbV3eAnRkRtqyEAs7yCW1kzRkg963Wkmm7Lp/XM0v250Eq0qYbjOMzj zgIP00/L7BUH97TsQFigJwvJRAjCZndShTNDTn7J5s7d/cTmRtJSl1i6PJdp1eDQZI ck4wpo6gEIPPQ== Date: Wed, 18 Sep 2024 19:21:38 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 10/14] staging: vt6655: s_uGetDataDuration: Rename byFBOption parameter Message-ID: <20240918191959.51539-11-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: 13e8f8f72d716206a32143f633ae48bf64a380da Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames byFBOption to fb_option in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index ca92dd72cb72..58446eba82cc 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -238,7 +238,7 @@ s_uGetDataDuration( unsigned int frag_idx, unsigned int last_fragment_size, unsigned int mac_frag_num, - unsigned char byFBOption + unsigned char fb_option ) { bool bLastFrag =3D false; @@ -309,7 +309,7 @@ s_uGetDataDuration( =20 rate -=3D RATE_18M; =20 - if (byFBOption =3D=3D AUTO_FB_0) + if (fb_option =3D=3D AUTO_FB_0) rate =3D fb_opt0[FB_RATE0][rate]; else rate =3D fb_opt1[FB_RATE0][rate]; --=20 2.34.1 From nobody Fri Nov 29 14:39:17 2024 Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.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 41A401CB503 for ; Wed, 18 Sep 2024 19:21:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687313; cv=none; b=oyoQXP66izeKHjdWAqfV248EXY7RpEurTHoQ+P3ws8WqBAnBhcBwS+VF5+aKp7hE+5cYNl6Ax0aj+AZemQReL4jAeiCywKkxqPx42SltxlVBGo09k6GxlOTjJYwUFj9bboKbDdhLvUel1fTwWcKOyEr/Kkt3p99q8zluKuytbMA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687313; c=relaxed/simple; bh=NlYdSX0ZLHGzHMCiEyfUrhQGEJFpeAvzAIAlUdb+q6Y=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=cqZg+NDTFUBozLH66EspanmdVSqhIAKmZGJGhqUi0g/neI9qWs52VvZvlHL4XHj1CtERVP08cvFADaO8n599QtQfZXRTUdc5muXyHcIPsZrC6j/5wP40wQ7I5BfAYgNp9fqzJbGbhg0gFNCUxfO9Jd3/hStXDzrUUDNWdVRL2Qs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=muxobcGo; arc=none smtp.client-ip=185.70.43.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="muxobcGo" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687310; x=1726946510; bh=HegoWXI8OKwexilR7FQ1pUEBHBJNMHHtpkObBeTwxDQ=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=muxobcGo74bAt4GU6vH6wc8Eik7F2P9a18LyYpx5NJzzpQQZSbOHWgSRfd5K7LP0l 0Gbilu7+OQYynbnVpGpWGD27414uUGFlIvNs68UangVrYCbPMgSLNyzTW/cpg8Hs14 Mkugb7+kt6iO/4rLv8ItPKIH+XhzHbo4FEJWx/d8d6wQDreTUnTizR/SlEChAhf6v1 tMGfRGv/qUdXilrW1aiGkZL36hKkbbIpZunYpwXgx8tdtUprVKn0eikcyU4fKhONWA LEQRQjuhnaxWsZ8pUnAZcoxzSDgpoBs/u8TXkzXrGEsu/aT7+ZnwVq57su8kqYg9pX r1qwRpsaLDQYQ== Date: Wed, 18 Sep 2024 19:21:44 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 11/14] staging: vt6655: s_uGetDataDuration: Rename bLastFrag variable Message-ID: <20240918191959.51539-12-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: ff8944be3be853cbaa6c69a38186ab4ba472b9eb Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames bLastFrag to last_frag in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 58446eba82cc..4b0a768cf77b 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -241,11 +241,11 @@ s_uGetDataDuration( unsigned char fb_option ) { - bool bLastFrag =3D false; + bool last_frag =3D false; unsigned int uAckTime =3D 0, uNextPktTime =3D 0, len; =20 if (frag_idx =3D=3D (mac_frag_num - 1)) - bLastFrag =3D true; + last_frag =3D true; =20 if (frag_idx =3D=3D (mac_frag_num - 2)) len =3D last_fragment_size; @@ -260,7 +260,7 @@ s_uGetDataDuration( priv->byTopCCKBasicRate); } /* Non Frag or Last Frag */ - if ((mac_frag_num =3D=3D 1) || bLastFrag) { + if ((mac_frag_num =3D=3D 1) || last_frag) { if (!need_ack) return 0; } else { @@ -278,7 +278,7 @@ s_uGetDataDuration( priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ - if ((mac_frag_num =3D=3D 1) || bLastFrag) { + if ((mac_frag_num =3D=3D 1) || last_frag) { if (!need_ack) return 0; } else { @@ -297,7 +297,7 @@ s_uGetDataDuration( priv->byTopOFDMBasicRate); } /* Non Frag or Last Frag */ - if ((mac_frag_num =3D=3D 1) || bLastFrag) { + if ((mac_frag_num =3D=3D 1) || last_frag) { if (!need_ack) return 0; } else { --=20 2.34.1 From nobody Fri Nov 29 14:39:17 2024 Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.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 ED8DF1CA6BB for ; Wed, 18 Sep 2024 19:21:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687319; cv=none; b=oCwLa/9BxofWuOtLkmc1ic5OtNDN5qSY1T1SnKdyhTfn3/6g5nx+6HsWWTzr/Y6ZGSNvU9ueeiOJe2Ue78DlldGI95Sp0zhJpBnD9VfLRXtmYn9plhoRXowC4t5KABC+A4Jl1nE00GWf5UzbGn+t2muDCxs0itnBbM++ioq2Tnk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687319; c=relaxed/simple; bh=fuaKvqkqWwqKbWlbfPmd5BGEos3ZTs9JotBiXBOthYA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IDgvRTPspV5qJ/bwi9B0AaZBNFe9BACb3+KPwFYN4snYc+uSxLsLZyqmvnYgk0Ph4wqHQVva6zSTh9Nb/ki4xg5VMhxnsYYo9b6rIa8x27rxxvvzSro2dtr8IGJaAfae+ZPbpTf6NCz+2QiTJZRNfHYUEno/V96oetX5qpDWdNA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=Y1vW3z/x; arc=none smtp.client-ip=185.70.43.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="Y1vW3z/x" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687315; x=1726946515; bh=sfltv+vZ9IM5vljZnKyjZ5FCcX3z51Rc/RZAKPMaCHc=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=Y1vW3z/x8sVoEddREsq9iK4RwgWm4WC/Nn+OS4wT7Hlt9CiT5Fwqc58W9oWzs6aS0 i0MBn8R30kByJB7CJO2Pc9hmtxWyqwSUkV6S7SlOcvKq5rffG9zQQlW2eYxIoAXzAt ysn1Ev3GGG3RQZ9K5M87v8x5/EUm0ymqaVJQfTHT4OQkGYvaryMRWSJNXMNxdAg/aL aRl01Sng95puW3mmPHaNwLbck8L3xUdd7w8DvCdUqjp1Pm8w5tfvyos9j7EZG9Jiou 6leNWh6GRw+cIzjzEXP7gdO3JCTr8B8aJ3WS3klSlhmhHkPN/KOUVpgvr/VW/hr1b0 K6DDI5V+A2K8g== Date: Wed, 18 Sep 2024 19:21:51 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 12/14] staging: vt6655: s_uGetDataDuration: Rename uAckTime variable Message-ID: <20240918191959.51539-13-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: f4eac2a3721997fbe84b1cdb2b66fd6567adaf11 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames uAckTime to ack_time in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 4b0a768cf77b..8f28fd1465d4 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -242,7 +242,7 @@ s_uGetDataDuration( ) { bool last_frag =3D false; - unsigned int uAckTime =3D 0, uNextPktTime =3D 0, len; + unsigned int ack_time =3D 0, uNextPktTime =3D 0, len; =20 if (frag_idx =3D=3D (mac_frag_num - 1)) last_frag =3D true; @@ -255,7 +255,7 @@ s_uGetDataDuration( switch (dur_type) { case DATADUR_B: /* DATADUR_B */ if (need_ack) { - uAckTime =3D bb_get_frame_time(priv->preamble_type, + ack_time =3D bb_get_frame_time(priv->preamble_type, pkt_type, 14, priv->byTopCCKBasicRate); } @@ -269,11 +269,11 @@ s_uGetDataDuration( len, rate, need_ack); } =20 - return priv->uSIFS + uAckTime + uNextPktTime; + return priv->uSIFS + ack_time + uNextPktTime; =20 case DATADUR_A: /* DATADUR_A */ if (need_ack) { - uAckTime =3D bb_get_frame_time(priv->preamble_type, + ack_time =3D bb_get_frame_time(priv->preamble_type, pkt_type, 14, priv->byTopOFDMBasicRate); } @@ -287,12 +287,12 @@ s_uGetDataDuration( len, rate, need_ack); } =20 - return priv->uSIFS + uAckTime + uNextPktTime; + return priv->uSIFS + ack_time + uNextPktTime; =20 case DATADUR_A_F0: /* DATADUR_A_F0 */ case DATADUR_A_F1: /* DATADUR_A_F1 */ if (need_ack) { - uAckTime =3D bb_get_frame_time(priv->preamble_type, + ack_time =3D bb_get_frame_time(priv->preamble_type, pkt_type, 14, priv->byTopOFDMBasicRate); } @@ -318,7 +318,7 @@ s_uGetDataDuration( len, rate, need_ack); } =20 - return priv->uSIFS + uAckTime + uNextPktTime; + return priv->uSIFS + ack_time + uNextPktTime; =20 default: break; --=20 2.34.1 From nobody Fri Nov 29 14:39:17 2024 Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.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 8796D1CC162 for ; Wed, 18 Sep 2024 19:22:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687324; cv=none; b=H93IhcSKethxcyP+55rSxMxMKw2jtsvIQQPPACGRnXRkD9ZOulfDct4nkfroBlh5Zxg0cIaIp38B1SKcKDGK3dPxX5iZtxucVJBTp72faV/pFUnIBNBq18V3TcMC0A2XIR1k0vnTLbgxKP/lwTEkxRtFdczhQmwK0sua03dUxKI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687324; c=relaxed/simple; bh=BtZO/Dn9OOU/+FesLiovjQkEUe2uRE46lW/xdGr68mg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TUFlUe+wmQ0wFv9sJUt2xPO2mauOYiR2+WrmiYl6YFzp5B/hcS4wNt4VD9sT5FdzqrOvG6FD8gxasRn0a3odYf8Dg+8ns3IvbGw6s5Wak5Tgp87fRy908lEiAgEzTgAfApORedWWFtIAinrMtM7tvAsxqcc1b1/zSuShE7Ynqb4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=b/ciog9a; arc=none smtp.client-ip=185.70.43.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="b/ciog9a" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687319; x=1726946519; bh=B2INdXcYa4ziBQUCJlCJHSGTOSgy7OTqjYfv7rPmVXs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=b/ciog9aTpAv6FgNByhDWWfiuC3d6bxp9s0S3rCFrmyAlezWGiPkYHsEDC75L0AS1 Me+dgeFtTm8I9a/xvMDrx0BgM0R5Nj8UcvmRNWp3COf9ij3iJJMD6rDwNacPC9etOT gUNKL4bGunyv5HIRGyhdA+tukpPPtQf/UQvEtJFybu4GOPt/my01lz8Dbj/knv31c6 m0uWG8uBZAmlNbenDbbWcyfrOetH1uueB2qp6FdIetDQJS9+Fd9ZAnQnVco/MyVpSO 9HFmxn/ukNdXgJ+xvcacTT7CqMNbpWAXvKaJgwRXswdUWyPjXg5RY5a7eIi2EKG8gG 5o3GLEwLQPh4w== Date: Wed, 18 Sep 2024 19:21:56 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 13/14] staging: vt6655: s_uGetDataDuration: Rename uNextPktTime variable Message-ID: <20240918191959.51539-14-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: 340005476fa96df63754fd91b23346e05b4c8091 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch renames uNextPktTime to next_pkt_time in s_uGetDataDuration function in order to avoid using camel case. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 8f28fd1465d4..5e93ca38008e 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -242,7 +242,7 @@ s_uGetDataDuration( ) { bool last_frag =3D false; - unsigned int ack_time =3D 0, uNextPktTime =3D 0, len; + unsigned int ack_time =3D 0, next_pkt_time =3D 0, len; =20 if (frag_idx =3D=3D (mac_frag_num - 1)) last_frag =3D true; @@ -265,11 +265,11 @@ s_uGetDataDuration( return 0; } else { /* First Frag or Mid Frag */ - uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, rate, need_ack); + next_pkt_time =3D s_uGetTxRsvTime(priv, pkt_type, + len, rate, need_ack); } =20 - return priv->uSIFS + ack_time + uNextPktTime; + return priv->uSIFS + ack_time + next_pkt_time; =20 case DATADUR_A: /* DATADUR_A */ if (need_ack) { @@ -283,11 +283,11 @@ s_uGetDataDuration( return 0; } else { /* First Frag or Mid Frag */ - uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, rate, need_ack); + next_pkt_time =3D s_uGetTxRsvTime(priv, pkt_type, + len, rate, need_ack); } =20 - return priv->uSIFS + ack_time + uNextPktTime; + return priv->uSIFS + ack_time + next_pkt_time; =20 case DATADUR_A_F0: /* DATADUR_A_F0 */ case DATADUR_A_F1: /* DATADUR_A_F1 */ @@ -314,11 +314,11 @@ s_uGetDataDuration( else rate =3D fb_opt1[FB_RATE0][rate]; =20 - uNextPktTime =3D s_uGetTxRsvTime(priv, pkt_type, - len, rate, need_ack); + next_pkt_time =3D s_uGetTxRsvTime(priv, pkt_type, + len, rate, need_ack); } =20 - return priv->uSIFS + ack_time + uNextPktTime; + return priv->uSIFS + ack_time + next_pkt_time; =20 default: break; --=20 2.34.1 From nobody Fri Nov 29 14:39:17 2024 Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) (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 8D2ED1CB306 for ; Wed, 18 Sep 2024 19:22:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.40.134 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687333; cv=none; b=rorzGsd4aKLt/jxwaUDuFEY1Ykac3rMRBDkHOB9Iou2pB3xBYC0nhB4upffYrw47Y2U27eKQZOKJrLEPW/eCBWITLlsx414dC5J5HTNKUaNcnOXyhTlscV+gxB2sg/4RmPhZkq7Ja5mQiXlE5W8ke94HSCQIaDR3CCXtRucQT0Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726687333; c=relaxed/simple; bh=Czcp2yJGBgla6TgqvWXVkKu/fcKssVBswa8oW4pdJa8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AB/hBsIea30B25V1DgA4TxvWErFvePZ0kxbMbYvKreD0o61oNdEU3hfH4S3SPgqf0upngfXW4mW1XH1FfMf+M3dec0UFc2bnX2+YRsuLQzKUnmBlz2cA4gj1wbEmgK9ufjzYNdbC3TF6TtCgGTOLlqjLz6xaho3+vW2Zt5Ks0cs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=BAhp1U2A; arc=none smtp.client-ip=185.70.40.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="BAhp1U2A" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1726687329; x=1726946529; bh=DDUH7OeMtsMPrOEqS4QwSZsqF8KwfUJ1uBYoBUpU6g4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=BAhp1U2AQuHr70NfiHFvnmagDADGo68TdleVcIsHRkhZsX+bqzX6LIALS8Lh6c1AC YEhz5+jJGr4MrBqUYrzabJz67TdwTR4/HSEeQI0n9/u9ZcV4ibp2j7/eRNChxj1E9t FBRP7qDiowS+37y4acOg1XDf9edOJLYUxj6e2L69DjZ0iydoAo4gVHkGm0SYJV6+DU 1wnlhUpwBnP+sbb/Bez096IEUc9ypu62fvW0zeAUhNemxess22ZyLOoBvEWq8W5qDT SsZHQeukCeyp193cXKqAqRgdKf4ZUUx914Zi5eMq/RtRhGQyEVzLd5aUVmsVuVMQs+ zHUWp/8j7kcMg== Date: Wed, 18 Sep 2024 19:22:02 +0000 To: philipp.g.hortmann@gmail.com, gregkh@linuxfoundation.org From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH 14/14] staging: vt6655: s_uGetDataDuration: Fix declaration formatting Message-ID: <20240918191959.51539-15-dominik.karol.piatkowski@protonmail.com> In-Reply-To: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> References: <20240918191959.51539-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: eaaebe65bf716151aaa44cbe820b8e090a1716b1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This patch fixes formatting of s_uGetDataDuration function declaration. Signed-off-by: Dominik Karol Pi=C4=85tkowski --- drivers/staging/vt6655/rxtx.c | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 5e93ca38008e..4bcc75348284 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -226,20 +226,16 @@ static __le16 get_rtscts_time(struct vnt_private *pri= v, } =20 /* byFreqType 0: 5GHz, 1:2.4Ghz */ -static -unsigned int -s_uGetDataDuration( - struct vnt_private *priv, - unsigned char dur_type, - unsigned int frame_length, - unsigned char pkt_type, - unsigned short rate, - bool need_ack, - unsigned int frag_idx, - unsigned int last_fragment_size, - unsigned int mac_frag_num, - unsigned char fb_option -) +static unsigned int s_uGetDataDuration(struct vnt_private *priv, + unsigned char dur_type, + unsigned int frame_length, + unsigned char pkt_type, + unsigned short rate, + bool need_ack, + unsigned int frag_idx, + unsigned int last_fragment_size, + unsigned int mac_frag_num, + unsigned char fb_option) { bool last_frag =3D false; unsigned int ack_time =3D 0, next_pkt_time =3D 0, len; --=20 2.34.1