From patchwork Thu Jul 27 06:19:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tree Davies X-Patchwork-Id: 126689 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp905247vqo; Thu, 27 Jul 2023 00:02:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlENcdY0jyaniTDgY1VVhAbMSXancusfDrcfxi+E4IuIKON64atNXHKJ+sgRySc662+rxbYB X-Received: by 2002:a05:6a00:2e28:b0:67e:bf65:ae61 with SMTP id fc40-20020a056a002e2800b0067ebf65ae61mr4705607pfb.28.1690441364788; Thu, 27 Jul 2023 00:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690441364; cv=none; d=google.com; s=arc-20160816; b=WyxB1UgeeWVHVOW25GBj4Gryn5slTcYwfkiTyovgRPs2wbAWfh3MxICHDENmNct1eM hgqElsU6Ky8d+qqq/Y/xNR3k3qCXeB+KnANH37/PmDbxzrgO8PoRrOKsqoUiaQhgHiBl yeZBglrLXjwt60CjKmMVqBe53EMcyYT0gosypt50GtaHI9jJDIcb9eyVUuWHUSvtreZw WdlestuX6cw3DFgPuz+cjF/4LBcG+fXgv/34rjIr4SqjiEQ9SHPtjDPIR91cVJRUrTkJ WWjeo52cJDBv8aludF6vGpPYgtw9DJmJthXL0qSntRVi4oy1W/or+37uMVRNWCnxH2O8 2diw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=DZkEXZaJjBqV3BTwiG6ezEbUpv0JjBy4V1lRH3ROYkI=; fh=I5RbcQPTSTvrwt0yqig+bV2C3roPED/NlXe1P2BfE7E=; b=Ll5piww40hn6JJE/yRGEB5mDzKX0Xo1d22JWT1yrTElAK6fzPI+Frm40iD0tVlZ/WY Tc7gDadFeowqc3dfforauGeg7OFaN9ewH4ezfpD8FU/Whc7cRHrnDS2F+pZG+qa75gGq 3rm2BTJHyli7b1AAr+sYsVqijplAmnFqFtPX6KNUvJPJBJqQ9RK9hbWRKMuLxhG9s3mt 8tEiG2UhJro1tvh6hSWfQqX9CibAA4b+mrCMp2Io2sx+Pg8lqoElAajyq/lJg67wvi5V KVsu78Og3785j5y7UCRQCQQSUWZmWkJ4xz/6IpiWu3gmGVKry+OknKE03CVnOVh4B+IM fNsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=XqkN+moc; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=mNnvMHRv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l184-20020a6388c1000000b00563e70c270bsi824900pgd.781.2023.07.27.00.02.32; Thu, 27 Jul 2023 00:02:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=XqkN+moc; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=mNnvMHRv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232738AbjG0GSs (ORCPT + 99 others); Thu, 27 Jul 2023 02:18:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231624AbjG0GSn (ORCPT ); Thu, 27 Jul 2023 02:18:43 -0400 Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A49C19B for ; Wed, 26 Jul 2023 23:18:42 -0700 (PDT) Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 9F9D72B788; Thu, 27 Jul 2023 02:18:41 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=Yme2ABWyZv9hU5EZNMuaiBtZz P3G0tOP4AY9ah8Wu+I=; b=XqkN+mocHCfLVJfFsPdoHd3RwMf5ESmpi2BBUQH0Z AOEiyRxIHUt5r6p1lMzH3aZRBhg+FWdLSVytaYwnPZW+D8uxvbEj+olpu08m9si9 3sR1+gx+hx22pe+kdAwPU7/QC6+qg+3fc2y0Tu6kokPEiDz+A1o39Scx1eqB844v A4= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 9856E2B786; Thu, 27 Jul 2023 02:18:41 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=darkphysics.net; h=from:to:cc:subject:date:message-id:in-reply-to:references:mime-version:content-transfer-encoding; s=2019-09.pbsmtp; bh=30LCb7fytoBphnXRNlksSDylD0H458KlWfAeyHSY7sU=; b=mNnvMHRvg5ZzdJy9gSqpq9TZmUGid6gWmfV5a+EjNjdx+ZpNwPUWbsKsfV+xtsnBjFheaK3o/n0DD8jh8v/hYFEMczwyd5Pf4rPrBmPdegOVc0j9Myp9ZHn4cQTx8eLoJbcDKomNr586oYzdCWwpExyt7V1faMKW0xUkUJ1qMNI= Received: from basil.darkphysics (unknown [76.146.178.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id C56CA2B782; Thu, 27 Jul 2023 02:18:36 -0400 (EDT) (envelope-from tdavies@darkphysics.net) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca, error27@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH v2 1/5] Staging: rtl8192e: Rename function ActivateBAEntry Date: Wed, 26 Jul 2023 23:19:44 -0700 Message-ID: <20230727061948.579480-2-tdavies@darkphysics.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230727061948.579480-1-tdavies@darkphysics.net> References: <20230727061948.579480-1-tdavies@darkphysics.net> MIME-Version: 1.0 X-Pobox-Relay-ID: 6C767EEC-2C45-11EE-847C-B31D44D1D7AA-45285927!pb-smtp21.pobox.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NO_DNS_FOR_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772556244330289127 X-GMAIL-MSGID: 1772556244330289127 Rename function ActivateBAEntry to activate_ba_entry in order to Fix checkpatch warning: Avoid CamelCase Signed-off-by: Tree Davies --- v2: Sent with git send-email drivers/staging/rtl8192e/rtl819x_BAProc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c b/drivers/staging/rtl8192e/rtl819x_BAProc.c index acc19514bca6..965ffa8b78c2 100644 --- a/drivers/staging/rtl8192e/rtl819x_BAProc.c +++ b/drivers/staging/rtl8192e/rtl819x_BAProc.c @@ -10,7 +10,7 @@ #include "rtllib.h" #include "rtl819x_BA.h" -static void ActivateBAEntry(struct ba_record *pBA, u16 Time) +static void activate_ba_entry(struct ba_record *pBA, u16 Time) { pBA->b_valid = true; if (Time != 0) @@ -282,7 +282,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) else pBA->ba_param_set.field.buffer_size = 32; - ActivateBAEntry(pBA, 0); + activate_ba_entry(pBA, 0); rtllib_send_ADDBARsp(ieee, dst, pBA, ADDBA_STATUS_SUCCESS); return 0; @@ -379,7 +379,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) pAdmittedBA->ba_start_seq_ctrl = pPendingBA->ba_start_seq_ctrl; pAdmittedBA->ba_param_set = *pBaParamSet; DeActivateBAEntry(ieee, pAdmittedBA); - ActivateBAEntry(pAdmittedBA, *pBaTimeoutVal); + activate_ba_entry(pAdmittedBA, *pBaTimeoutVal); } else { pTS->bAddBaReqDelayed = true; pTS->bDisable_AddBa = true; @@ -479,7 +479,7 @@ void TsInitAddBA(struct rtllib_device *ieee, struct tx_ts_record *pTS, pBA->ba_timeout_value = 0; pBA->ba_start_seq_ctrl.field.seq_num = (pTS->TxCurSeq + 3) % 4096; - ActivateBAEntry(pBA, BA_SETUP_TIMEOUT); + activate_ba_entry(pBA, BA_SETUP_TIMEOUT); rtllib_send_ADDBAReq(ieee, pTS->TsCommonInfo.Addr, pBA); } From patchwork Thu Jul 27 06:19:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tree Davies X-Patchwork-Id: 126739 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp921076vqo; Thu, 27 Jul 2023 00:36:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlHxqZqf4gs4t3euhi0L/w7WAv7em/f96nOBGZc9Hn7wHCKBR1DcHCZlb8Rli1uO8EysMd5g X-Received: by 2002:aa7:88c7:0:b0:67a:72d5:3365 with SMTP id k7-20020aa788c7000000b0067a72d53365mr2774520pff.6.1690443413313; Thu, 27 Jul 2023 00:36:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690443413; cv=none; d=google.com; s=arc-20160816; b=fXr5Tsp3NroV3XmR95Yz7ANAbwn4u00pohW42il/BP6czwGtevUQnTsrjfKuDNBAZh Bzm/Yicz1usWwKpbNNrEH+BGv/+JPiVtBoIOtn1MiTBARxNQAuErUS6N/sltgxbQRsBc DkUqfd2waKgNldYju8vKTb1zfZV1Gd+b6npJv9Laz7Gu2urUDLxbxO+0KEMrc0doBhhx p5O6z4OuEHmVm/o0zobBokaScOVlHhLxClHy6vKGJQORPPEhW52NOlxXNaR1UUtcNSdh OQ50cMf2vyhCmf+2k3YJrWRifV4EmZp/N70I+5bCZRU9e7qadwSp3PdxtODEOlcRhxir ijsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=GCK206rxmRk8X9Ht7QXuyqdPQH09ILG/o/K1GADjRno=; fh=I5RbcQPTSTvrwt0yqig+bV2C3roPED/NlXe1P2BfE7E=; b=k0SPlcjKewt96kgcIdt6SbTCbOqdpOMLBbYBGMYgUWSHoVJBD4zWq3ybsURVqFruJd eKkzIfsF+yMulFJJrg3GB6HwUqnzzlDR5PzEMSzabO6r+v59dCli4P35bHHRB2h2b9Bi aBh1L4EpUz3C4q6IPtrkEZSahthVK2/vNIKCLMbfeL2QcfPjtdcbuPESnTkfsen9Fok5 bczlC/pboFgfTc72UMlcqw70LI7zN7jG4sN9CzPnxnoLyRyrGKVvcoaak5kDsauggPJQ AnfZ+e2HtGkD4IriiJ8k/n+JHDgGBwnew9B50HUWqVayuvU+kLM+62hH5H7KO/IvDvj6 n+tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=IzNx7yNd; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=N2cegFqc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e8-20020a056a001a8800b0064d28b68d8fsi1021385pfv.94.2023.07.27.00.36.40; Thu, 27 Jul 2023 00:36:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=IzNx7yNd; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=N2cegFqc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231624AbjG0GSu (ORCPT + 99 others); Thu, 27 Jul 2023 02:18:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232733AbjG0GSq (ORCPT ); Thu, 27 Jul 2023 02:18:46 -0400 Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C6BE1990 for ; Wed, 26 Jul 2023 23:18:45 -0700 (PDT) Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 3B3A72B78B; Thu, 27 Jul 2023 02:18:45 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=anF2Q/E3YliC1TJLo8573SGmv SXnXLFplvRBwi1kuZQ=; b=IzNx7yNdHpmu9IGROV8LXsHjgAsPmnfsEaNb2JAm/ 4QvOpZ4UurqqsWVEM9uinT1MsdIHCrBSNYXcFDBmls9sKg1sIXOBO665t7kJFl1a ayIma5NezUHwrcjFGBjRzRkIpp0nHwfzuYO+JSRp568GqqwV4YBO1H9cmBibbq7r /o= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 33DE82B78A; Thu, 27 Jul 2023 02:18:45 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=darkphysics.net; h=from:to:cc:subject:date:message-id:in-reply-to:references:mime-version:content-transfer-encoding; s=2019-09.pbsmtp; bh=OYbg2N402MZIOZTWV80ogeQ3GrQ1F3pvilpeh4bbDy8=; b=N2cegFqcjaPW3lWRE7RywAJ4LwCQithMlx3yolAdl85W/Yb+RP5ofESPmSDEwS7SIKUe8K9py86HGLZCj2dYfDRhn+wr8jikgAR415PfepGkia/yKWMhNl0PMR925TiKM3wAo75r0tF4FU+YHgmFhNyBuvUjRMGZAOXsh8WjM6A= Received: from basil.darkphysics (unknown [76.146.178.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 60A852B785; Thu, 27 Jul 2023 02:18:40 -0400 (EDT) (envelope-from tdavies@darkphysics.net) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca, error27@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH v2 2/5] Staging: rtl8192e: Rename function DeActivateBAEntry Date: Wed, 26 Jul 2023 23:19:45 -0700 Message-ID: <20230727061948.579480-3-tdavies@darkphysics.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230727061948.579480-1-tdavies@darkphysics.net> References: <20230727061948.579480-1-tdavies@darkphysics.net> MIME-Version: 1.0 X-Pobox-Relay-ID: 6E97C26C-2C45-11EE-B009-B31D44D1D7AA-45285927!pb-smtp21.pobox.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NO_DNS_FOR_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772558392369233307 X-GMAIL-MSGID: 1772558392369233307 Rename function DeActivateBAEntry to deactivate_ba_entry in order to Fix checkpatch warning: Avoid CamelCase Signed-off-by: Tree Davies --- v2: Sent with git send-email drivers/staging/rtl8192e/rtl819x_BAProc.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c b/drivers/staging/rtl8192e/rtl819x_BAProc.c index 965ffa8b78c2..50362bbbc8dd 100644 --- a/drivers/staging/rtl8192e/rtl819x_BAProc.c +++ b/drivers/staging/rtl8192e/rtl819x_BAProc.c @@ -17,7 +17,7 @@ static void activate_ba_entry(struct ba_record *pBA, u16 Time) mod_timer(&pBA->timer, jiffies + msecs_to_jiffies(Time)); } -static void DeActivateBAEntry(struct rtllib_device *ieee, struct ba_record *pBA) +static void deactivate_ba_entry(struct rtllib_device *ieee, struct ba_record *pBA) { pBA->b_valid = false; del_timer_sync(&pBA->timer); @@ -30,12 +30,12 @@ static u8 TxTsDeleteBA(struct rtllib_device *ieee, struct tx_ts_record *pTxTs) u8 bSendDELBA = false; if (pPendingBa->b_valid) { - DeActivateBAEntry(ieee, pPendingBa); + deactivate_ba_entry(ieee, pPendingBa); bSendDELBA = true; } if (pAdmittedBa->b_valid) { - DeActivateBAEntry(ieee, pAdmittedBa); + deactivate_ba_entry(ieee, pAdmittedBa); bSendDELBA = true; } return bSendDELBA; @@ -47,7 +47,7 @@ static u8 RxTsDeleteBA(struct rtllib_device *ieee, struct rx_ts_record *pRxTs) u8 bSendDELBA = false; if (pBa->b_valid) { - DeActivateBAEntry(ieee, pBa); + deactivate_ba_entry(ieee, pBa); bSendDELBA = true; } @@ -270,7 +270,7 @@ int rtllib_rx_ADDBAReq(struct rtllib_device *ieee, struct sk_buff *skb) rtllib_FlushRxTsPendingPkts(ieee, pTS); - DeActivateBAEntry(ieee, pBA); + deactivate_ba_entry(ieee, pBA); pBA->dialog_token = *pDialogToken; pBA->ba_param_set = *pBaParamSet; pBA->ba_timeout_value = *pBaTimeoutVal; @@ -363,13 +363,13 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) netdev_dbg(ieee->dev, "%s(): Recv ADDBA Rsp. BA is admitted! Status code:%X\n", __func__, *pStatusCode); - DeActivateBAEntry(ieee, pPendingBA); + deactivate_ba_entry(ieee, pPendingBA); } if (*pStatusCode == ADDBA_STATUS_SUCCESS) { if (pBaParamSet->field.ba_policy == BA_POLICY_DELAYED) { pTS->bAddBaReqDelayed = true; - DeActivateBAEntry(ieee, pAdmittedBA); + deactivate_ba_entry(ieee, pAdmittedBA); ReasonCode = DELBA_REASON_END_BA; goto OnADDBARsp_Reject; } @@ -378,7 +378,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) pAdmittedBA->ba_timeout_value = *pBaTimeoutVal; pAdmittedBA->ba_start_seq_ctrl = pPendingBA->ba_start_seq_ctrl; pAdmittedBA->ba_param_set = *pBaParamSet; - DeActivateBAEntry(ieee, pAdmittedBA); + deactivate_ba_entry(ieee, pAdmittedBA); activate_ba_entry(pAdmittedBA, *pBaTimeoutVal); } else { pTS->bAddBaReqDelayed = true; @@ -469,7 +469,7 @@ void TsInitAddBA(struct rtllib_device *ieee, struct tx_ts_record *pTS, if (pBA->b_valid && !bOverwritePending) return; - DeActivateBAEntry(ieee, pBA); + deactivate_ba_entry(ieee, pBA); pBA->dialog_token++; pBA->ba_param_set.field.amsdu_support = 0; From patchwork Thu Jul 27 06:19:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tree Davies X-Patchwork-Id: 126751 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp922519vqo; Thu, 27 Jul 2023 00:40:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlFt0u6v48pLMqw9vP+xks8H7hbeqpV/asxczhpZ07hYW+9FfbJrI6oQ7JoeImVDXBnIvpWH X-Received: by 2002:a17:906:2cf:b0:97d:ee82:920a with SMTP id 15-20020a17090602cf00b0097dee82920amr1291633ejk.74.1690443610672; Thu, 27 Jul 2023 00:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690443610; cv=none; d=google.com; s=arc-20160816; b=FzJUwqrmusL3L4Q0hPlYr5d1qvagFwYaG5hiNyzbTrVu3p/g/tVRRvAxNa0O7bNFYW 3oKUlft0JQA1G0nFF62km3HqmCQbOuITrwWe/rdDAlZbXR6omEKKVsIjeL7kfZ+aB7nf UC8ecixdzLj9cws/7ymEogqdpG8iPv0HCECUTElXGLoVmJsB4t077U83fPmKHyYaQX32 4Cv/+XvKTCGFzXkfscp9UJgg3YOb+a7oP0wFk7MHY+yqjPhhTBVK3Fwkkli82526eez2 I/Ar+YRM6CGWBQ5PeOE8chdPEV71HdP2CzPxFa+Up+Su9lOiOlay7+G9O5c5xb1V8Lwn y9fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=GXrKON9cZklluA0IzNGvdntwGypTkujtehVp0BHwCJY=; fh=I5RbcQPTSTvrwt0yqig+bV2C3roPED/NlXe1P2BfE7E=; b=uGoD0xOpF4PO33A2GBlZVjxH0NrvlAhAuPYRfFGt5Z3lvIv+XjkE74RDbMyHEeTd0x vZNI8bgA0NH7Ou6MT99G6rNyk+PrmSyobkBqZbAlXUKA/YcmgscSstxAqfevj5p2DqHk v0RkedP+2t87g2Go9aSXkKbS6jMT/usK2UrUkFOX54gCNvT7h299jnh+lPFJjxTqQTaL t4YwIDC4pQJ8m5+fMCOYPO7w9t2Bogkn0H9epEDj+DyysSFZ2+0J9IYjzFzcyGQ/KOqb LdbPJWS21vMiV3gAg4MGsKoNiPhddy//NYLYL1c4RiN70gb2wA/GQHisTQNEigkc4HgY 6nOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=tY62yvkK; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=mP17BrWr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id va16-20020a17090711d000b009874842217bsi636875ejb.441.2023.07.27.00.39.47; Thu, 27 Jul 2023 00:40:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=tY62yvkK; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=mP17BrWr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232791AbjG0GS4 (ORCPT + 99 others); Thu, 27 Jul 2023 02:18:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232753AbjG0GSu (ORCPT ); Thu, 27 Jul 2023 02:18:50 -0400 Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B05B1FF3 for ; Wed, 26 Jul 2023 23:18:49 -0700 (PDT) Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 545412B78E; Thu, 27 Jul 2023 02:18:49 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=l8UdN/EWLHyJwQapdRtTt2QKo +FY91epVTlA9xYH5zM=; b=tY62yvkKH4wXvibmnHcCBLGErkGLCG2Hh5MI/0W4b X0zE7QyhaFNY1PJDs3FRcl8T44Vkn8uwAJcxHY7cC/vaGJoD5JsZi88bRtmPJWJV fYxMb0Sr6e0EI90PqXKYYMlVrbRBmQPML0i9gQpuexwue0Zj5aeMknvDhp2VciyS w4= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 4DB442B78D; Thu, 27 Jul 2023 02:18:49 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=darkphysics.net; h=from:to:cc:subject:date:message-id:in-reply-to:references:mime-version:content-transfer-encoding; s=2019-09.pbsmtp; bh=06BJ1jAlItt/gLHoQGDcXD8Wbq0tI0D1VgMPMuC5IA8=; b=mP17BrWrRupcbo6s6XeyuR5SDgTngaUITzsdYrjYZ/Hg7GgEHLT9yQlJNscngztJj3qdrshXu3w3RtpB2Yte6qqPKeXbw7sBDXbEv9HCI5SSj5KB7TSxrdQMr3LjmhnnUoubeZ28mqB1YIl2s2eolQnOsYRRQ3NMD7qtcluJOcY= Received: from basil.darkphysics (unknown [76.146.178.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 0174F2B789; Thu, 27 Jul 2023 02:18:43 -0400 (EDT) (envelope-from tdavies@darkphysics.net) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca, error27@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH v2 3/5] Staging: rtl8192e: Rename function TxTsDeleteBA Date: Wed, 26 Jul 2023 23:19:46 -0700 Message-ID: <20230727061948.579480-4-tdavies@darkphysics.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230727061948.579480-1-tdavies@darkphysics.net> References: <20230727061948.579480-1-tdavies@darkphysics.net> MIME-Version: 1.0 X-Pobox-Relay-ID: 70D58B68-2C45-11EE-B58E-B31D44D1D7AA-45285927!pb-smtp21.pobox.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NO_DNS_FOR_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772558599799332594 X-GMAIL-MSGID: 1772558599799332594 Rename function TxTsDeleteBA to tx_ts_delete_ba in order to Fix checkpatch warning: Avoid CamelCase Signed-off-by: Tree Davies --- v2: Sent with git send-email drivers/staging/rtl8192e/rtl819x_BAProc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c b/drivers/staging/rtl8192e/rtl819x_BAProc.c index 50362bbbc8dd..6538343ea44d 100644 --- a/drivers/staging/rtl8192e/rtl819x_BAProc.c +++ b/drivers/staging/rtl8192e/rtl819x_BAProc.c @@ -23,7 +23,7 @@ static void deactivate_ba_entry(struct rtllib_device *ieee, struct ba_record *pB del_timer_sync(&pBA->timer); } -static u8 TxTsDeleteBA(struct rtllib_device *ieee, struct tx_ts_record *pTxTs) +static u8 tx_ts_delete_ba(struct rtllib_device *ieee, struct tx_ts_record *pTxTs) { struct ba_record *pAdmittedBa = &pTxTs->TxAdmittedBARecord; struct ba_record *pPendingBa = &pTxTs->TxPendingBARecord; @@ -456,7 +456,7 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb) pTxTs->bAddBaReqInProgress = false; pTxTs->bAddBaReqDelayed = false; del_timer_sync(&pTxTs->TsAddBaTimer); - TxTsDeleteBA(ieee, pTxTs); + tx_ts_delete_ba(ieee, pTxTs); } return 0; } @@ -492,7 +492,7 @@ void TsInitDelBA(struct rtllib_device *ieee, struct tx_ts_record *pTxTs = (struct tx_ts_record *)pTsCommonInfo; - if (TxTsDeleteBA(ieee, pTxTs)) + if (tx_ts_delete_ba(ieee, pTxTs)) rtllib_send_DELBA(ieee, pTsCommonInfo->Addr, (pTxTs->TxAdmittedBARecord.b_valid) ? (&pTxTs->TxAdmittedBARecord) : @@ -524,7 +524,7 @@ void TxBaInactTimeout(struct timer_list *t) TxAdmittedBARecord.timer); struct rtllib_device *ieee = container_of(pTxTs, struct rtllib_device, TxTsRecord[pTxTs->num]); - TxTsDeleteBA(ieee, pTxTs); + tx_ts_delete_ba(ieee, pTxTs); rtllib_send_DELBA(ieee, pTxTs->TsCommonInfo.Addr, &pTxTs->TxAdmittedBARecord, TX_DIR, DELBA_REASON_TIMEOUT); From patchwork Thu Jul 27 06:19:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tree Davies X-Patchwork-Id: 126688 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp905251vqo; Thu, 27 Jul 2023 00:02:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlF2P2pH6P3jXwcOuV1c2/9urPp7NrU/tJ7liXp08Q64srU0yWxXLbRFvIFwOCgueLCSVIlT X-Received: by 2002:a17:90b:1d08:b0:267:a861:4b34 with SMTP id on8-20020a17090b1d0800b00267a8614b34mr3214240pjb.20.1690441365050; Thu, 27 Jul 2023 00:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690441365; cv=none; d=google.com; s=arc-20160816; b=T7Pb/mDfFRF8QZcuZLaMl4McKIA1wu2l5ujYFkid83sdsvaGXOJnZhcRNNouhOZ2Hv VW36nXk6ThmkuI+wMH2xrlGvW/AW2NMap71atzva5qL6BnJxXiRMn+9EdzRiPRfDMJ80 5L304cjDbIDGHzzwBk+oIpJ/y9kq/6nQFLhV0w1iPcsPfK+usif4buYzozirP0+3pH6S EHHulMUlNEWUejKyZeeZhL09GKl8tm0s13Wms1mdJ79uaI+LyuvjQGrdamFTkY1D98KJ bgKKsco/WfmHmSBMDvSPNQZHs84TowWzd/2av7WrAEYZ6DzJ192LKEOdKqJfn95EHpPC Qw0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=CQ6Ob5RqSVjHdXjRh+JhpjgnTWDQ4PkTFMHMW0WhJts=; fh=I5RbcQPTSTvrwt0yqig+bV2C3roPED/NlXe1P2BfE7E=; b=f3ZsOtf4UouGnYV8yhBAIeySiSVEDRx1mAwfxG1rP3Y2Lr9tZ8H20yf8kXKtKVyUOz XML9Rc0IMjqUQ7AW4LNeAV4iqLl5DbY99kDBr0zZAqH/uZw6FKFIcHdO/Yx28apxwc5V UvJZxtYwm0vvLpsKei3H3zxAtOOGoNXR9x2Op6OBkCdDhgrqN+OYHw4yNgSXAXhZd+qW iSQZrcr1ychAlWS0r+HDmNrF6L7YJGmwFW47MdJp/TlU5YJgL4/Tve397lgddEqN7a3K XiJOzwH43m2plX+A1M22VXe/z4ahn0vNtUVWgCRYciAEhg2HuHIEje1XwcTBGgeijpzh w8KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=uWKlvcki; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=tgyH7eAx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a17090a128600b00262fc8d4dfesi2400002pja.108.2023.07.27.00.02.31; Thu, 27 Jul 2023 00:02:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=uWKlvcki; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=tgyH7eAx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232798AbjG0GTD (ORCPT + 99 others); Thu, 27 Jul 2023 02:19:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232796AbjG0GS4 (ORCPT ); Thu, 27 Jul 2023 02:18:56 -0400 Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B35F26A4 for ; Wed, 26 Jul 2023 23:18:53 -0700 (PDT) Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id B98162B791; Thu, 27 Jul 2023 02:18:52 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=tOyyhkPnH5cG5/zI7R728hV/k IfXWRQqdfhJ+bAnmjM=; b=uWKlvckig6wJIvZLTGdEEMdlciZK8VpYMBRlMDjse 8BoGBw+zSYwTxE3tkM/ARfo6i6FlD/w8r7jNYpZEUtZGVon7nV9X9eFtG23Uj2Lu uw7YOd34vaKh56fIvMDFUbnqVtyCySdou8A3RQpfCZyuvjqujJm0f9yyqdCPdxnK 5s= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id B0DD92B790; Thu, 27 Jul 2023 02:18:52 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=darkphysics.net; h=from:to:cc:subject:date:message-id:in-reply-to:references:mime-version:content-transfer-encoding; s=2019-09.pbsmtp; bh=Fv4x/SzXu8s71D0ldmujCVmzDHwbAuZyPBt8Gw5BYHE=; b=tgyH7eAxyfad10N2q+CfJfhreKvEuUoD3Zf6nEYh99uWXVUE10lNf3KJw+DgKQycM2OXDEhxk8AFB/zAxOUh+wT2s2TXZSGQGa/1ZN8V7Av2nFJzltg+jT7Le+KbHVlwD4TkTrJwkTX0CZ7+e5wkpN1BqOQe88NAJwzQVEZlwMU= Received: from basil.darkphysics (unknown [76.146.178.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 232432B78C; Thu, 27 Jul 2023 02:18:48 -0400 (EDT) (envelope-from tdavies@darkphysics.net) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca, error27@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH v2 4/5] Staging: rtl8192e: Rename function RxTsDeleteBA Date: Wed, 26 Jul 2023 23:19:47 -0700 Message-ID: <20230727061948.579480-5-tdavies@darkphysics.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230727061948.579480-1-tdavies@darkphysics.net> References: <20230727061948.579480-1-tdavies@darkphysics.net> MIME-Version: 1.0 X-Pobox-Relay-ID: 733A3F2A-2C45-11EE-A8B8-B31D44D1D7AA-45285927!pb-smtp21.pobox.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NO_DNS_FOR_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772556245002274317 X-GMAIL-MSGID: 1772556245002274317 Rename function RxTsDeleteBA to rx_ts_delete_ba in order to Fix checkpatch warning: Avoid CamelCase Signed-off-by: Tree Davies --- v2: Sent with git send-email drivers/staging/rtl8192e/rtl819x_BAProc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c b/drivers/staging/rtl8192e/rtl819x_BAProc.c index 6538343ea44d..9662d75257ce 100644 --- a/drivers/staging/rtl8192e/rtl819x_BAProc.c +++ b/drivers/staging/rtl8192e/rtl819x_BAProc.c @@ -41,7 +41,7 @@ static u8 tx_ts_delete_ba(struct rtllib_device *ieee, struct tx_ts_record *pTxTs return bSendDELBA; } -static u8 RxTsDeleteBA(struct rtllib_device *ieee, struct rx_ts_record *pRxTs) +static u8 rx_ts_delete_ba(struct rtllib_device *ieee, struct rx_ts_record *pRxTs) { struct ba_record *pBa = &pRxTs->rx_admitted_ba_record; u8 bSendDELBA = false; @@ -441,7 +441,7 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb) return -1; } - RxTsDeleteBA(ieee, pRxTs); + rx_ts_delete_ba(ieee, pRxTs); } else { struct tx_ts_record *pTxTs; @@ -501,7 +501,7 @@ void TsInitDelBA(struct rtllib_device *ieee, } else if (TxRxSelect == RX_DIR) { struct rx_ts_record *pRxTs = (struct rx_ts_record *)pTsCommonInfo; - if (RxTsDeleteBA(ieee, pRxTs)) + if (rx_ts_delete_ba(ieee, pRxTs)) rtllib_send_DELBA(ieee, pTsCommonInfo->Addr, &pRxTs->rx_admitted_ba_record, TxRxSelect, DELBA_REASON_END_BA); @@ -537,7 +537,7 @@ void RxBaInactTimeout(struct timer_list *t) struct rtllib_device *ieee = container_of(pRxTs, struct rtllib_device, RxTsRecord[pRxTs->num]); - RxTsDeleteBA(ieee, pRxTs); + rx_ts_delete_ba(ieee, pRxTs); rtllib_send_DELBA(ieee, pRxTs->ts_common_info.Addr, &pRxTs->rx_admitted_ba_record, RX_DIR, DELBA_REASON_TIMEOUT); From patchwork Thu Jul 27 06:19:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tree Davies X-Patchwork-Id: 126685 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp897378vqo; Wed, 26 Jul 2023 23:44:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlEGgR2XlPfJpVg2VF8gBSEGvyhj+XR1R4BPM0ePRjs/wGAxVp2l+CNsgXj6W0UqbSwG+ydO X-Received: by 2002:a17:902:6b0c:b0:1bb:a4db:9466 with SMTP id o12-20020a1709026b0c00b001bba4db9466mr3393282plk.4.1690440297704; Wed, 26 Jul 2023 23:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690440297; cv=none; d=google.com; s=arc-20160816; b=OxoIptQIJozrig5fyiRrgjeT6aNVTuIyKt3ZUQfLtFq6IhoWScoBJa4SZsztnFODZE Rg4XvsEEqsmmoJ+XyZhEDVuhVUXb0v8vRuGMmhhOBDwGkxAcL4J4Gn8F6e2hF5j8RbLy lrYnUjGCQoO62afVY6aHi9Q5bZUIlOMGq78GnMr8MUxprLa8IfSg/y7qEME9sj3866mQ yPhAclvqZc/gtpmJDpRR6At5bVujLdPd1yDTg/d/PRu4/xE1iOi54hfjIPVypGmzFaqi 1lcUqYhqld5D38bj4ldqI4SGUAnQkiWgc0pJWw8Wpa1vkFD24KDDYD7/XX6nQvHBftcN eScA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=6hMsGqaNBMf9RKZt6coPIr82r2MCXdb3UqNX0Nk7J18=; fh=I5RbcQPTSTvrwt0yqig+bV2C3roPED/NlXe1P2BfE7E=; b=nt4YZUr+Z9MrPosvdcNaG/ZgDlkPqXBfxC1/APojKydyKlKcHAhFakh2hp+aRtKQ7C sCD+YAp12DWFlhyA6gHp+lmMYesu/vZOOqyVWp1iXdq2dou6EFFxY0Q7PRCA1snzNZMU rWB49zf+Scwx3N0ngsTsNl6PoRqI9KdwFK157imY0gHzmSCivSBzMEGPG9AXfQQXbNun COeSryVmiqvSXKG1fkBi3PNT4WM7UpjvmB2smQ3vq+wNT/aXn1rQc5Mg0RLK3Ss/UxEr xbbcQtd9XUedN9LLQW6LAf9L/RT0RprIRoBh6DyFYU8znyexbBaXjtmitwPLtfzpagWa 7YFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=BKybc7cv; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=HB9FsdwU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020a170903024800b001bb377f8c8bsi793990plh.2.2023.07.26.23.44.44; Wed, 26 Jul 2023 23:44:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=BKybc7cv; dkim=neutral (body hash did not verify) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=HB9FsdwU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232812AbjG0GTG (ORCPT + 99 others); Thu, 27 Jul 2023 02:19:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232790AbjG0GTC (ORCPT ); Thu, 27 Jul 2023 02:19:02 -0400 Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CD2C1BF4 for ; Wed, 26 Jul 2023 23:18:57 -0700 (PDT) Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 7913F2B793; Thu, 27 Jul 2023 02:18:56 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=IU8A8PZ9W+A0JO3G16mxqG6cS ypU2mpJz2SkBXof0YY=; b=BKybc7cvhy9d1fH/5vPwJfBOO/LfdjeDQEH6M8Tgk pvvYAB1bhDEcWaGbI4x6GwVGgMOt+bMycsPl8Y+tr16LMlaa7t7/RIiUt8gVusE5 1j830fa1to5oMjoZ9QDBpmT9RTnoO5hvPGLcl77/mHp+oi7e2mhmW6Xna7DkB/2A qg= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 72BC82B792; Thu, 27 Jul 2023 02:18:56 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=darkphysics.net; h=from:to:cc:subject:date:message-id:in-reply-to:references:mime-version:content-transfer-encoding; s=2019-09.pbsmtp; bh=FwbRkTmD760tFABw6uBxFVmbVS/mye61TkAt1MYiwFo=; b=HB9FsdwUowv5zuoMVe5GUhlOn1ele4ZTBkiwcj6DZgxW7o3hXZ9KqJBPrPEjwRx/vAy6Wo031hTK7GSXDPDtc2waHaR06322nM5NqaTg81BkznKk4pkgYeGvITErD7uZQExcAZ23yBREpui7oed53nDcSQUWwgckwQrfN62R3q0= Received: from basil.darkphysics (unknown [76.146.178.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 805F32B78F; Thu, 27 Jul 2023 02:18:51 -0400 (EDT) (envelope-from tdavies@darkphysics.net) From: Tree Davies To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca, error27@gmail.com Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Tree Davies Subject: [PATCH v2 5/5] Staging: rtl8192e: Rename function ResetBaEntry Date: Wed, 26 Jul 2023 23:19:48 -0700 Message-ID: <20230727061948.579480-6-tdavies@darkphysics.net> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230727061948.579480-1-tdavies@darkphysics.net> References: <20230727061948.579480-1-tdavies@darkphysics.net> MIME-Version: 1.0 X-Pobox-Relay-ID: 753A2560-2C45-11EE-8C62-B31D44D1D7AA-45285927!pb-smtp21.pobox.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NO_DNS_FOR_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772555125701420515 X-GMAIL-MSGID: 1772555125701420515 Rename function ResetBaEntry to reset_ba_entry in order to Fix checkpatch warning: Avoid CamelCase Signed-off-by: Tree Davies --- v2: Sent with git send-email drivers/staging/rtl8192e/rtl819x_BAProc.c | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 6 +++--- drivers/staging/rtl8192e/rtllib.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c b/drivers/staging/rtl8192e/rtl819x_BAProc.c index 9662d75257ce..cb6450206763 100644 --- a/drivers/staging/rtl8192e/rtl819x_BAProc.c +++ b/drivers/staging/rtl8192e/rtl819x_BAProc.c @@ -54,7 +54,7 @@ static u8 rx_ts_delete_ba(struct rtllib_device *ieee, struct rx_ts_record *pRxTs return bSendDELBA; } -void ResetBaEntry(struct ba_record *pBA) +void reset_ba_entry(struct ba_record *pBA) { pBA->b_valid = false; pBA->ba_param_set.short_data = 0; diff --git a/drivers/staging/rtl8192e/rtl819x_TSProc.c b/drivers/staging/rtl8192e/rtl819x_TSProc.c index c61fdf73c572..21ffbb6b231f 100644 --- a/drivers/staging/rtl8192e/rtl819x_TSProc.c +++ b/drivers/staging/rtl8192e/rtl819x_TSProc.c @@ -117,8 +117,8 @@ static void ResetTxTsEntry(struct tx_ts_record *pTS) pTS->bAddBaReqDelayed = false; pTS->bUsingBa = false; pTS->bDisable_AddBa = false; - ResetBaEntry(&pTS->TxAdmittedBARecord); - ResetBaEntry(&pTS->TxPendingBARecord); + reset_ba_entry(&pTS->TxAdmittedBARecord); + reset_ba_entry(&pTS->TxPendingBARecord); } static void ResetRxTsEntry(struct rx_ts_record *pTS) @@ -126,7 +126,7 @@ static void ResetRxTsEntry(struct rx_ts_record *pTS) ResetTsCommonInfo(&pTS->ts_common_info); pTS->rx_indicate_seq = 0xffff; pTS->rx_timeout_indicate_seq = 0xffff; - ResetBaEntry(&pTS->rx_admitted_ba_record); + reset_ba_entry(&pTS->rx_admitted_ba_record); } void TSInitialize(struct rtllib_device *ieee) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index e3ce4431d460..ccc9e7bbbcbb 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -2016,7 +2016,7 @@ void TsInitDelBA(struct rtllib_device *ieee, void BaSetupTimeOut(struct timer_list *t); void TxBaInactTimeout(struct timer_list *t); void RxBaInactTimeout(struct timer_list *t); -void ResetBaEntry(struct ba_record *pBA); +void reset_ba_entry(struct ba_record *pBA); bool GetTs(struct rtllib_device *ieee, struct ts_common_info **ppTS, u8 *Addr, u8 TID, enum tr_select TxRxSelect, bool bAddNewTs); void TSInitialize(struct rtllib_device *ieee);