]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: rtl8723au: Remove unused rtw_sreset_get_wifi_status()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 26 Jun 2014 08:20:51 +0000 (10:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:34:17 +0000 (20:34 -0400)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_sreset.c
drivers/staging/rtl8723au/include/rtw_sreset.h

index 18a42a27b488968bbd85d075d0cd20ec6e828fa8..8142dd19d1a9ae432af0831f0b1024f603151fd8 100644 (file)
@@ -39,35 +39,6 @@ void rtw_sreset_reset_value(struct rtw_adapter *padapter)
        psrtpriv->last_tx_complete_time = 0;
 }
 
-u8 rtw_sreset_get_wifi_status(struct rtw_adapter *padapter)
-{
-       struct hal_data_8723a *pHalData = GET_HAL_DATA(padapter);
-       struct sreset_priv *psrtpriv = &pHalData->srestpriv;
-       u8 status = WIFI_STATUS_SUCCESS;
-       u32 val32 = 0;
-
-       if (psrtpriv->silent_reset_inprogress)
-               return status;
-       val32 = rtl8723au_read32(padapter, REG_TXDMA_STATUS);
-       if (val32 == 0xeaeaeaea) {
-               psrtpriv->Wifi_Error_Status = WIFI_IF_NOT_EXIST;
-       } else if (val32 != 0) {
-               DBG_8723A("txdmastatu(%x)\n", val32);
-               psrtpriv->Wifi_Error_Status = WIFI_MAC_TXDMA_ERROR;
-       }
-
-       if (WIFI_STATUS_SUCCESS != psrtpriv->Wifi_Error_Status) {
-               DBG_8723A("==>%s error_status(0x%x)\n", __func__, psrtpriv->Wifi_Error_Status);
-               status = (psrtpriv->Wifi_Error_Status &~(USB_READ_PORT_FAIL|USB_WRITE_PORT_FAIL));
-       }
-       DBG_8723A("==> %s wifi_status(0x%x)\n", __func__, status);
-
-       /* status restore */
-       psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
-
-       return status;
-}
-
 void sreset_set_wifi_error_status23a(struct rtw_adapter *padapter, u32 status)
 {
        struct hal_data_8723a   *pHalData = GET_HAL_DATA(padapter);
index 77cc7941b546ba5c8fbe8339b96524d01b6fcc71..a4c45cb5f9c5c3d3735ee8328c6a1ac2e892cc58 100644 (file)
@@ -47,7 +47,6 @@ struct sreset_priv {
 
 void rtw_sreset_init(struct rtw_adapter *padapter);
 void rtw_sreset_reset_value(struct rtw_adapter *padapter);
-u8 rtw_sreset_get_wifi_status(struct rtw_adapter *padapter);
 bool rtw_sreset_inprogress(struct rtw_adapter *padapter);
 void sreset_set_wifi_error_status23a(struct rtw_adapter *padapter, u32 status);
 void sreset_set_trigger_point(struct rtw_adapter *padapter, s32 tgp);