staging: rtl8188eu: Remove unused function rtw_setassocsta_cmd()
authornavin patidar <navin.patidar@gmail.com>
Thu, 10 Jul 2014 03:41:46 +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 f8a537c1d5b2d7b8dddf7577d6ed890af996a448..6a015b992c5588af9488441e8514e69eda3e8e48 100644 (file)
@@ -890,50 +890,6 @@ exit:
        return res;
 }
 
-u8 rtw_setassocsta_cmd(struct adapter  *padapter, u8 *mac_addr)
-{
-       struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
-       struct cmd_obj *ph2c;
-       struct set_assocsta_parm *psetassocsta_para;
-       struct set_stakey_rsp *psetassocsta_rsp = NULL;
-
-       u8      res = _SUCCESS;
-
-
-       ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
-       if (ph2c == NULL) {
-               res = _FAIL;
-               goto exit;
-       }
-
-       psetassocsta_para = kzalloc(sizeof(struct set_assocsta_parm), GFP_KERNEL);
-       if (psetassocsta_para == NULL) {
-               kfree(ph2c);
-               res = _FAIL;
-               goto exit;
-       }
-
-       psetassocsta_rsp = kzalloc(sizeof(struct set_assocsta_rsp), GFP_KERNEL);
-       if (psetassocsta_rsp == NULL) {
-               kfree(ph2c);
-               kfree(psetassocsta_para);
-               return _FAIL;
-       }
-
-       init_h2fwcmd_w_parm_no_rsp(ph2c, psetassocsta_para, _SetAssocSta_CMD_);
-       ph2c->rsp = (u8 *)psetassocsta_rsp;
-       ph2c->rspsz = sizeof(struct set_assocsta_rsp);
-
-       ether_addr_copy(psetassocsta_para->addr, mac_addr);
-
-       res = rtw_enqueue_cmd(pcmdpriv, ph2c);
-
-exit:
-
-
-       return res;
-}
-
 u8 rtw_addbareq_cmd(struct adapter *padapter, u8 tid, u8 *addr)
 {
        struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
index fa9d5f73ebe5f850a68c7a3082ae13db58855fb5..278208df390908dc5fdf1a682c3f7c87612d7a99 100644 (file)
@@ -718,7 +718,6 @@ Result:
 #define H2C_CMD_OVERFLOW       0x06
 #define H2C_RESERVED           0x07
 
-u8 rtw_setassocsta_cmd(struct adapter *padapter, u8 *mac_addr);
 u8 rtw_setstandby_cmd(struct adapter *padapter, uint action);
 u8 rtw_sitesurvey_cmd(struct adapter *padapter, struct ndis_802_11_ssid *ssid,
                      int ssid_num, struct rtw_ieee80211_channel *ch,