Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1737823rwe; Fri, 2 Sep 2022 03:02:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR7M9+k5OHg/oDOn7fv0R7zPVwkFd9TOoqWcDTYikribjksqg5Jbsv7dtFDpEWeeL5CzaN8Q X-Received: by 2002:a62:a21a:0:b0:532:4191:610a with SMTP id m26-20020a62a21a000000b005324191610amr35789899pff.75.1662112957084; Fri, 02 Sep 2022 03:02:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662112957; cv=none; d=google.com; s=arc-20160816; b=vMxJ655xeQW1CcT0os4WXl01LZop2CNSJXhjMUHz0bTq5/6cufIuYeuwG/WVXGWEL/ MYtY6ieGR7vW8NCriQF3EpsSjBi4JaHTEepW4vEmkDzz6rIo0anU7xIm1TGBy33ZkjCv nz+YZIXb2ImBC/GBPRZNhy3PVAnMLcKLmx6GZXCz/tWBVZTSvECeV+ReBqmHcICyz3G8 TsA7Qmg++dKDQid+zHCYpgLf7dymdfhYLvk0dNrCAjzEEA4qQ5za3oiZpCYJcBenltWj ZNxjpLl/a+wh4vN86dXI3zEjEF7TcMAgrS3gMOjEevOxwzVpOb/2gX2ozN8x4+mxHfCL v6Hw== 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; bh=ThDb76+kZEC72ISvvHs25TvHqgP2beNaL5wxY8n7dsc=; b=geMrAqG+N63yc9QYhUEkz2Lia6EvnKa+WeRRVCMIEJh2norvu5oEhLz3vsNiNr7TdM wvo6FjVwpdlX0vInNqTTq4gDNpDCsZ+fDByNc92bsEJ3XnAZVWvABt8M9R7PhR8SkkzT ik7V6RA7q5YOvmBK9LDpNbsi/Z1nRUW5NfxaML+GnXjUgOIe1RxkpPNHL8zMVwwGQeE1 AJNQkqdnOswOsDuKBs7OvS1TZaejrqs9RC7hqTKUEwLSKBjpG7qA9kuAXAq06eGEzFXR 0cpTEK1y8luGKjWXoaKLW7i26v/q5WznV+QRL+JyFchWMsAUK/W2uU2xNoOULvIQxYyo 97ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="NUjfOq9/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v2-20020a634802000000b0043028878908si1487930pga.756.2022.09.02.03.02.24; Fri, 02 Sep 2022 03:02:36 -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=@gmail.com header.s=20210112 header.b="NUjfOq9/"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235570AbiIBJwz (ORCPT + 99 others); Fri, 2 Sep 2022 05:52:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235697AbiIBJwm (ORCPT ); Fri, 2 Sep 2022 05:52:42 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4675182D19 for ; Fri, 2 Sep 2022 02:52:36 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id y3so2830171ejc.1 for ; Fri, 02 Sep 2022 02:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=ThDb76+kZEC72ISvvHs25TvHqgP2beNaL5wxY8n7dsc=; b=NUjfOq9/5L6JJV9vJslddUmeS7AaRFkr6sq7xI5oNDsccB2aIuvLHNuJMg4wyof+oE 7eK1TW/8FULpKamlM2neerduzBjYzxCGh3lNa389TOkGOZgtmJnFPMxghfdXhO/Y4z8i zDoHTUFvq8k8z0GQ/0KQedD84hZ7wDSCI0Ec/3Qr+aREoxLvqNArcapuzeI9OQXbiDJI P0yYoSpuU/JKHzF1Ln8zPAiqDupoId6KnskqbWRSPzrnovkk3nGnjoTKhti74M279vD2 CY1xutNtVilPSitlh/dWJjBi82mbFFOGvBgqKrW62bqYJRqLdH5Y+tdoGCFdobv5eSyV 77SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=ThDb76+kZEC72ISvvHs25TvHqgP2beNaL5wxY8n7dsc=; b=nrPIPzxpRs27s59A8WLRXm3DehFy+78whYGUueQORqev13AXtUCWxrpPrzfztcSENK vLDnC3TWWrKjhTwACMaz5Yqwnb4Wzf+EVJH64ZxWQfmgRQq8vyVyKAJs6t4rdrgAfreZ xt0QNzZH8fyms1hkPqAKLfuqMaWZKnZMkrMeFl5ohmOtrphqhr1ERh8sPXxkMfNPa6xY v30/iswEfToujO0MXW1g0seuUT/wM3I0++cYdC5dvQwXMkzRn/1d1PlkC1BH57H87o26 felo42+MrAT0STo8F5U4agaGnsOyfLtFHKsZsBMohW9wxvoaYQlSYJtttF0a4JoyA7Hi u69g== X-Gm-Message-State: ACgBeo3tPkwFX9vr7IZquwh3icqLLlqQAQO0s4w99HOmcboMgdrnBAm4 Uzl+4KSLS8629UiIhgn2nL31/zTBcN0= X-Received: by 2002:a17:907:9620:b0:730:d5f4:d448 with SMTP id gb32-20020a170907962000b00730d5f4d448mr26586297ejc.45.1662112354552; Fri, 02 Sep 2022 02:52:34 -0700 (PDT) Received: from localhost.localdomain (ip-217-105-46-83.ip.prioritytelecom.net. [217.105.46.83]) by smtp.gmail.com with ESMTPSA id h6-20020a170906828600b0073d6234ceebsm959601ejx.160.2022.09.02.02.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 02:52:34 -0700 (PDT) From: Nam Cao To: Larry.Finger@lwfinger.net, gregkh@linuxfoundation.org, hdegoede@redhat.com Cc: namcaov@gmail.com, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH 01/10] staging: rtl8723bs: delete rtw_setdatarate_cmd Date: Fri, 2 Sep 2022 11:51:51 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Remove function rtw_setdatarate_cmd because it is not used. Signed-off-by: Nam Cao --- drivers/staging/rtl8723bs/core/rtw_cmd.c | 29 --------------------- drivers/staging/rtl8723bs/include/rtw_cmd.h | 1 - 2 files changed, 30 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c index b4170f64d118..a5e66b9868ad 100644 --- a/drivers/staging/rtl8723bs/core/rtw_cmd.c +++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c @@ -593,35 +593,6 @@ u8 rtw_sitesurvey_cmd(struct adapter *padapter, struct ndis_802_11_ssid *ssid, return res; } -u8 rtw_setdatarate_cmd(struct adapter *padapter, u8 *rateset) -{ - struct cmd_obj *ph2c; - struct setdatarate_parm *pbsetdataratepara; - struct cmd_priv *pcmdpriv = &padapter->cmdpriv; - u8 res = _SUCCESS; - - ph2c = rtw_zmalloc(sizeof(struct cmd_obj)); - if (!ph2c) { - res = _FAIL; - goto exit; - } - - pbsetdataratepara = rtw_zmalloc(sizeof(struct setdatarate_parm)); - if (!pbsetdataratepara) { - kfree(ph2c); - res = _FAIL; - goto exit; - } - - init_h2fwcmd_w_parm_no_rsp(ph2c, pbsetdataratepara, GEN_CMD_CODE(_SetDataRate)); - pbsetdataratepara->mac_id = 5; - memcpy(pbsetdataratepara->datarates, rateset, NumRates); - - res = rtw_enqueue_cmd(pcmdpriv, ph2c); -exit: - return res; -} - void rtw_getbbrfreg_cmdrsp_callback(struct adapter *padapter, struct cmd_obj *pcmd) { /* rtw_free_cmd_obj(pcmd); */ diff --git a/drivers/staging/rtl8723bs/include/rtw_cmd.h b/drivers/staging/rtl8723bs/include/rtw_cmd.h index 1bf030cbbbbe..0af8215e2f2f 100644 --- a/drivers/staging/rtl8723bs/include/rtw_cmd.h +++ b/drivers/staging/rtl8723bs/include/rtw_cmd.h @@ -591,7 +591,6 @@ extern u8 rtw_clearstakey_cmd(struct adapter *padapter, struct sta_info *sta, u8 extern u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork); u8 rtw_disassoc_cmd(struct adapter *padapter, u32 deauth_timeout_ms, bool enqueue); extern u8 rtw_setopmode_cmd(struct adapter *padapter, enum ndis_802_11_network_infrastructure networktype, bool enqueue); -extern u8 rtw_setdatarate_cmd(struct adapter *padapter, u8 *rateset); extern u8 rtw_setrfintfs_cmd(struct adapter *padapter, u8 mode); extern u8 rtw_gettssi_cmd(struct adapter *padapter, u8 offset, u8 *pval); -- 2.25.1