From: Nam Cao <namcaov@gmail.com>
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 [thread overview]
Message-ID: <bfc4c5c9aec8b026fd3cf092354d508881d790fc.1662111798.git.namcaov@gmail.com> (raw)
In-Reply-To: <cover.1662111798.git.namcaov@gmail.com>
Remove function rtw_setdatarate_cmd because it is not used.
Signed-off-by: Nam Cao <namcaov@gmail.com>
---
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
next prev parent reply other threads:[~2022-09-02 9:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-02 9:51 [PATCH 00/10] staging: rtl8723bs: delete some dead code Nam Cao
2022-09-02 9:51 ` Nam Cao [this message]
2022-09-02 9:51 ` [PATCH 02/10] staging: rtl8723bs: delete function rtw_set_chplan_cmd Nam Cao
2022-09-02 9:51 ` [PATCH 03/10] staging: rtl8723bs: remove rtw_change_ifname Nam Cao
2022-09-02 9:51 ` [PATCH 04/10] staging: rtl8723bs: delete rtw_odm.c and rtw_odm.h Nam Cao
2022-09-02 9:51 ` [PATCH 05/10] staging: rtl8723bs: remove odm_PauseDIG Nam Cao
2022-09-02 9:51 ` [PATCH 06/10] staging: rtl8723bs: remove GetHexValueFromString Nam Cao
2022-09-02 9:51 ` [PATCH 07/10] staging: rtl8723bs: remove hal_btcoex_SetManualControl Nam Cao
2022-09-02 9:51 ` [PATCH 08/10] staging: rtl8723bs: remove rtw_hal_is_disable_sw_channel_plan Nam Cao
2022-09-02 9:51 ` [PATCH 09/10] staging: rtl8723bs: remove IsHexDigit Nam Cao
2022-09-02 9:52 ` [PATCH 10/10] staging: rtl8723bs: remove rtw_is_wps_ie Nam Cao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bfc4c5c9aec8b026fd3cf092354d508881d790fc.1662111798.git.namcaov@gmail.com \
--to=namcaov@gmail.com \
--cc=Larry.Finger@lwfinger.net \
--cc=gregkh@linuxfoundation.org \
--cc=hdegoede@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®