staging: rtl8188eu: Remove unused function rtw_IOL_cmd_tx_pkt_buf_dump()
authornavin patidar <navin.patidar@gmail.com>
Sun, 10 Aug 2014 14:44:29 +0000 (20:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:22 +0000 (12:23 -0700)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c
drivers/staging/rtl8188eu/include/rtl8188e_hal.h

index ac4bede..ea2ce8b 100644 (file)
@@ -138,38 +138,6 @@ exit:
        return ret;
 }
 
-void rtw_IOL_cmd_tx_pkt_buf_dump(struct adapter *Adapter, int data_len)
-{
-       u32 fifo_data, reg_140;
-       u32 addr, rstatus, loop = 0;
-       u16 data_cnts = (data_len/8)+1;
-       u8 *pbuf = vzalloc(data_len+10);
-       DBG_88E("###### %s ######\n", __func__);
-
-       usb_write8(Adapter, REG_PKT_BUFF_ACCESS_CTRL, TXPKT_BUF_SELECT);
-       if (pbuf) {
-               for (addr = 0; addr < data_cnts; addr++) {
-                       usb_write32(Adapter, 0x140, addr);
-                       msleep(1);
-                       loop = 0;
-                       do {
-                               rstatus = (reg_140 = usb_read32(Adapter, REG_PKTBUF_DBG_CTRL)&BIT24);
-                               if (rstatus) {
-                                       fifo_data = usb_read32(Adapter, REG_PKTBUF_DBG_DATA_L);
-                                       memcpy(pbuf+(addr*8), &fifo_data, 4);
-
-                                       fifo_data = usb_read32(Adapter, REG_PKTBUF_DBG_DATA_H);
-                                       memcpy(pbuf+(addr*8+4), &fifo_data, 4);
-                               }
-                               msleep(1);
-                       } while (!rstatus && (loop++ < 10));
-               }
-               rtw_IOL_cmd_buf_dump(Adapter, data_len, pbuf);
-               vfree(pbuf);
-       }
-       DBG_88E("###### %s ######\n", __func__);
-}
-
 #define MAX_REG_BOLCK_SIZE     196
 
 void _8051Reset88E(struct adapter *padapter)
index 8b73c03..814ba1a 100644 (file)
@@ -423,7 +423,6 @@ void SetBcnCtrlReg(struct adapter *padapter, u8 SetBits, u8 ClearBits);
 void rtl8188e_start_thread(struct adapter *padapter);
 void rtl8188e_stop_thread(struct adapter *padapter);
 
-void rtw_IOL_cmd_tx_pkt_buf_dump(struct adapter  *Adapter, int len);
 s32 iol_execute(struct adapter *padapter, u8 control);
 void iol_mode_enable(struct adapter *padapter, u8 enable);
 s32 rtl8188e_iol_efuse_patch(struct adapter *padapter);