mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-25 22:13:41 +00:00
rtl8188eu: Fix checkpatch errors in core/rtw_sreset.c
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
539fbbc437
commit
79b808ad13
1 changed files with 13 additions and 17 deletions
|
@ -28,8 +28,8 @@ void sreset_init_value(struct adapter *padapter)
|
||||||
_rtw_mutex_init(&psrtpriv->silentreset_mutex);
|
_rtw_mutex_init(&psrtpriv->silentreset_mutex);
|
||||||
psrtpriv->silent_reset_inprogress = false;
|
psrtpriv->silent_reset_inprogress = false;
|
||||||
psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
|
psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
|
||||||
psrtpriv->last_tx_time =0;
|
psrtpriv->last_tx_time = 0;
|
||||||
psrtpriv->last_tx_complete_time =0;
|
psrtpriv->last_tx_complete_time = 0;
|
||||||
}
|
}
|
||||||
void sreset_reset_value(struct adapter *padapter)
|
void sreset_reset_value(struct adapter *padapter)
|
||||||
{
|
{
|
||||||
|
@ -38,8 +38,8 @@ void sreset_reset_value(struct adapter *padapter)
|
||||||
|
|
||||||
psrtpriv->silent_reset_inprogress = false;
|
psrtpriv->silent_reset_inprogress = false;
|
||||||
psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
|
psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
|
||||||
psrtpriv->last_tx_time =0;
|
psrtpriv->last_tx_time = 0;
|
||||||
psrtpriv->last_tx_complete_time =0;
|
psrtpriv->last_tx_complete_time = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 sreset_get_wifi_status(struct adapter *padapter)
|
u8 sreset_get_wifi_status(struct adapter *padapter)
|
||||||
|
@ -50,25 +50,21 @@ u8 sreset_get_wifi_status(struct adapter *padapter)
|
||||||
u8 status = WIFI_STATUS_SUCCESS;
|
u8 status = WIFI_STATUS_SUCCESS;
|
||||||
u32 val32 = 0;
|
u32 val32 = 0;
|
||||||
unsigned long irqL;
|
unsigned long irqL;
|
||||||
if (psrtpriv->silent_reset_inprogress == true)
|
if (psrtpriv->silent_reset_inprogress)
|
||||||
{
|
|
||||||
return status;
|
return status;
|
||||||
}
|
val32 = rtw_read32(padapter, REG_TXDMA_STATUS);
|
||||||
val32 =rtw_read32(padapter,REG_TXDMA_STATUS);
|
if (val32 == 0xeaeaeaea) {
|
||||||
if (val32==0xeaeaeaea){
|
|
||||||
psrtpriv->Wifi_Error_Status = WIFI_IF_NOT_EXIST;
|
psrtpriv->Wifi_Error_Status = WIFI_IF_NOT_EXIST;
|
||||||
}
|
} else if (val32 != 0) {
|
||||||
else if (val32!=0){
|
DBG_88E("txdmastatu(%x)\n", val32);
|
||||||
DBG_88E("txdmastatu(%x)\n",val32);
|
|
||||||
psrtpriv->Wifi_Error_Status = WIFI_MAC_TXDMA_ERROR;
|
psrtpriv->Wifi_Error_Status = WIFI_MAC_TXDMA_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (WIFI_STATUS_SUCCESS !=psrtpriv->Wifi_Error_Status)
|
if (WIFI_STATUS_SUCCESS != psrtpriv->Wifi_Error_Status) {
|
||||||
{
|
DBG_88E("==>%s error_status(0x%x)\n", __func__, psrtpriv->Wifi_Error_Status);
|
||||||
DBG_88E("==>%s error_status(0x%x)\n",__func__,psrtpriv->Wifi_Error_Status);
|
status = (psrtpriv->Wifi_Error_Status & (~(USB_READ_PORT_FAIL|USB_WRITE_PORT_FAIL)));
|
||||||
status = (psrtpriv->Wifi_Error_Status &( ~(USB_READ_PORT_FAIL|USB_WRITE_PORT_FAIL)));
|
|
||||||
}
|
}
|
||||||
DBG_88E("==> %s wifi_status(0x%x)\n",__func__,status);
|
DBG_88E("==> %s wifi_status(0x%x)\n", __func__, status);
|
||||||
|
|
||||||
/* status restore */
|
/* status restore */
|
||||||
psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
|
psrtpriv->Wifi_Error_Status = WIFI_STATUS_SUCCESS;
|
||||||
|
|
Loading…
Reference in a new issue