staging: rtl8188eu: Remove unused function rtw_setrttbl_cmd()
authornavin patidar <navin.patidar@gmail.com>
Thu, 10 Jul 2014 03:41:42 +0000 (09:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 04:09:56 +0000 (21:09 -0700)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_cmd.c
drivers/staging/rtl8188eu/include/rtw_cmd.h

index 5aaaabc63e47c1643b4519e1a373f360b8bb96aa..20125d520b12a6966457a02abf55a774e161106f 100644 (file)
@@ -890,35 +890,6 @@ exit:
        return res;
 }
 
-u8 rtw_setrttbl_cmd(struct adapter  *padapter, struct setratable_parm *prate_table)
-{
-       struct cmd_obj *ph2c;
-       struct setratable_parm *psetrttblparm;
-       struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
-       u8      res = _SUCCESS;
-
-       ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
-       if (ph2c == NULL) {
-               res = _FAIL;
-               goto exit;
-       }
-       psetrttblparm = kzalloc(sizeof(struct setratable_parm), GFP_KERNEL);
-
-       if (psetrttblparm == NULL) {
-               kfree(ph2c);
-               res = _FAIL;
-               goto exit;
-       }
-
-       init_h2fwcmd_w_parm_no_rsp(ph2c, psetrttblparm, GEN_CMD_CODE(_SetRaTable));
-
-       memcpy(psetrttblparm, prate_table, sizeof(struct setratable_parm));
-
-       res = rtw_enqueue_cmd(pcmdpriv, ph2c);
-exit:
-       return res;
-}
-
 u8 rtw_setassocsta_cmd(struct adapter  *padapter, u8 *mac_addr)
 {
        struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
index 432fbd2896f7476441f8960025c587839f8300e9..af18c75b575ad3a6b462e0f8f1f0009c6b3faebb 100644 (file)
@@ -590,13 +590,6 @@ struct     getcountjudge_rsp {
        u8      count_judge[MAX_RATES_LENGTH];
 };
 
-struct setratable_parm {
-       u8 ss_ForceUp[NumRates];
-       u8 ss_ULevel[NumRates];
-       u8 ss_DLevel[NumRates];
-       u8 count_judge[NumRates];
-};
-
 struct getratable_parm {
        uint rsvd;
 };
@@ -743,8 +736,6 @@ u8 rtw_setopmode_cmd(struct adapter *padapter,
                     enum ndis_802_11_network_infra networktype);
 u8 rtw_setdatarate_cmd(struct adapter *padapter, u8 *rateset);
 u8 rtw_setrfintfs_cmd(struct adapter *padapter, u8 mode);
-u8 rtw_setrttbl_cmd(struct adapter *padapter,
-                   struct setratable_parm *prate_table);
 
 u8 rtw_gettssi_cmd(struct adapter *padapter, u8 offset, u8 *pval);
 u8 rtw_setfwdig_cmd(struct adapter *padapter, u8 type);