mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Remove cases of two or more blank lines
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
e91077579f
commit
bad0b4cde4
91 changed files with 1 additions and 1098 deletions
|
@ -55,7 +55,6 @@ static bool CheckCondition(const u32 condition, const u32 hex)
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* AGC_TAB_1T.TXT
|
||||
******************************************************************************/
|
||||
|
|
|
@ -47,7 +47,6 @@ static bool Checkcondition(const u32 condition, const u32 hex)
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* MAC_REG.TXT
|
||||
******************************************************************************/
|
||||
|
|
|
@ -48,7 +48,6 @@ static bool CheckCondition(const u32 Condition, const u32 Hex)
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* RadioA_1T.TXT
|
||||
******************************************************************************/
|
||||
|
|
|
@ -116,8 +116,6 @@ uint rtw_hal_deinit(struct adapter *adapt)
|
|||
{
|
||||
uint status = _SUCCESS;
|
||||
|
||||
|
||||
|
||||
status = adapt->HalFunc.hal_deinit(adapt);
|
||||
|
||||
if (status == _SUCCESS)
|
||||
|
@ -125,8 +123,6 @@ uint rtw_hal_deinit(struct adapter *adapt)
|
|||
else
|
||||
DBG_88E("\n rtw_hal_deinit: hal_init fail\n");
|
||||
|
||||
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
|
@ -167,7 +167,6 @@ u8 CCKSwingTable_Ch14[CCK_TABLE_SIZE][8] = {
|
|||
{0x09, 0x08, 0x07, 0x04, 0x00, 0x00, 0x00, 0x00} /* 32, -16.0dB */
|
||||
};
|
||||
|
||||
|
||||
#define RxDefaultAnt1 0x65a9
|
||||
#define RxDefaultAnt2 0x569a
|
||||
|
||||
|
@ -1919,7 +1918,6 @@ void ODM_SingleDualAntennaDefaultSetting(struct odm_dm_struct *pDM_Odm)
|
|||
pDM_SWAT_Table->ANTB_ON = true;
|
||||
}
|
||||
|
||||
|
||||
/* 2 8723A ANT DETECT */
|
||||
|
||||
static void odm_PHY_SaveAFERegisters(struct odm_dm_struct *pDM_Odm, u32 *AFEReg, u32 *AFEBackup, u32 RegisterNum)
|
||||
|
@ -2032,7 +2030,6 @@ bool ODM_SingleDualAntennaDetection(struct odm_dm_struct *pDM_Odm, u8 mode)
|
|||
ODM_SetBBReg(pDM_Odm, rTx_IQK_Tone_A, bMaskDWord, 0x10008C1C);
|
||||
ODM_SetBBReg(pDM_Odm, rTx_IQK, bMaskDWord, 0x01007c00);
|
||||
|
||||
|
||||
/* Page B init */
|
||||
ODM_SetBBReg(pDM_Odm, rConfig_AntA, bMaskDWord, 0x00080000);
|
||||
ODM_SetBBReg(pDM_Odm, rConfig_AntA, bMaskDWord, 0x0f600000);
|
||||
|
@ -2062,7 +2059,6 @@ bool ODM_SingleDualAntennaDetection(struct odm_dm_struct *pDM_Odm, u8 mode)
|
|||
ODM_SetBBReg(pDM_Odm, rFPGA0_XA_RFInterfaceOE, 0x300, Antenna_B); /* change to Antenna B */
|
||||
ODM_StallExecution(10);
|
||||
|
||||
|
||||
for (n = 0; n < 2; n++) {
|
||||
PSD_report_tmp = GetPSDData(pDM_Odm, 14, initial_gain);
|
||||
if (PSD_report_tmp > AntB_report)
|
||||
|
@ -2100,7 +2096,6 @@ bool ODM_SingleDualAntennaDetection(struct odm_dm_struct *pDM_Odm, u8 mode)
|
|||
ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("psd_report_B[%d]= %d\n", 2416, AntB_report));
|
||||
ODM_RT_TRACE(pDM_Odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD, ("psd_report_O[%d]= %d\n", 2416, AntO_report));
|
||||
|
||||
|
||||
if (pDM_Odm->SupportICType == ODM_RTL8723A) {
|
||||
/* 2 Test Ant B based on Ant A is ON */
|
||||
if (mode == ANTTESTB) {
|
||||
|
|
|
@ -72,8 +72,6 @@ static s32 FillH2CCmd_88E(struct adapter *adapt, u8 ElementID, u32 CmdLen, u8 *p
|
|||
u32 h2c_cmd_ex = 0;
|
||||
s32 ret = _FAIL;
|
||||
|
||||
|
||||
|
||||
if (!adapt->bFWReady) {
|
||||
DBG_88E("FillH2CCmd_88E(): return H2C cmd because fw is not ready\n");
|
||||
return ret;
|
||||
|
@ -125,8 +123,6 @@ static s32 FillH2CCmd_88E(struct adapter *adapt, u8 ElementID, u32 CmdLen, u8 *p
|
|||
|
||||
exit:
|
||||
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -135,7 +131,6 @@ u8 rtl8188e_set_rssi_cmd(struct adapter *adapt, u8 *param)
|
|||
u8 res = _SUCCESS;
|
||||
struct hal_data_8188e *haldata = GET_HAL_DATA(adapt);
|
||||
|
||||
|
||||
if (haldata->fw_ractrl) {
|
||||
;
|
||||
} else {
|
||||
|
@ -143,8 +138,6 @@ u8 rtl8188e_set_rssi_cmd(struct adapter *adapt, u8 *param)
|
|||
res = _FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -154,7 +147,6 @@ u8 rtl8188e_set_raid_cmd(struct adapter *adapt, u32 mask)
|
|||
u8 res = _SUCCESS;
|
||||
struct hal_data_8188e *haldata = GET_HAL_DATA(adapt);
|
||||
|
||||
|
||||
if (haldata->fw_ractrl) {
|
||||
__le32 lmask;
|
||||
|
||||
|
@ -168,8 +160,6 @@ u8 rtl8188e_set_raid_cmd(struct adapter *adapt, u32 mask)
|
|||
res = _FAIL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -216,7 +206,6 @@ void rtl8188e_set_FwPwrMode_cmd(struct adapter *adapt, u8 Mode)
|
|||
struct pwrctrl_priv *pwrpriv = &adapt->pwrctrlpriv;
|
||||
u8 RLBM = 0; /* 0:Min, 1:Max, 2:User define */
|
||||
|
||||
|
||||
DBG_88E("%s: Mode=%d SmartPS=%d UAPSD=%d\n", __func__,
|
||||
Mode, pwrpriv->smart_ps, adapt->registrypriv.uapsd_enable);
|
||||
|
||||
|
@ -256,7 +245,6 @@ void rtl8188e_set_FwPwrMode_cmd(struct adapter *adapt, u8 Mode)
|
|||
|
||||
FillH2CCmd_88E(adapt, H2C_PS_PWR_MODE, sizeof(H2CSetPwrMode), (u8 *)&H2CSetPwrMode);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void rtl8188e_set_FwMediaStatus_cmd(struct adapter *adapt, __le16 mstatus_rpt)
|
||||
|
@ -617,8 +605,6 @@ void rtl8188e_set_FwJoinBssReport_cmd(struct adapter *adapt, u8 mstatus)
|
|||
u8 DLBcnCount = 0;
|
||||
u32 poll = 0;
|
||||
|
||||
|
||||
|
||||
DBG_88E("%s mstatus(%x)\n", __func__, mstatus);
|
||||
|
||||
if (mstatus == 1) {
|
||||
|
@ -712,8 +698,6 @@ void rtl8188e_set_p2p_ps_offload_cmd(struct adapter *adapt, u8 p2p_ps_state)
|
|||
struct P2P_PS_Offload_t *p2p_ps_offload = &haldata->p2p_ps_offload;
|
||||
u8 i;
|
||||
|
||||
|
||||
|
||||
switch (p2p_ps_state) {
|
||||
case P2P_PS_DISABLE:
|
||||
DBG_88E("P2P_PS_DISABLE\n");
|
||||
|
@ -775,5 +759,4 @@ void rtl8188e_set_p2p_ps_offload_cmd(struct adapter *adapt, u8 p2p_ps_state)
|
|||
FillH2CCmd_88E(adapt, H2C_PS_P2P_OFFLOAD, 1, (u8 *)p2p_ps_offload);
|
||||
#endif
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -81,7 +81,6 @@ static void Init_ODM_ComInfo_88E(struct adapter *Adapter)
|
|||
ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_PATCH_ID, hal_data->CustomerID);
|
||||
ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_BWIFI_TEST, Adapter->registrypriv.wifi_spec);
|
||||
|
||||
|
||||
if (hal_data->rf_type == RF_1T1R)
|
||||
ODM_CmnInfoUpdate(dm_odm, ODM_CMNINFO_RF_TYPE, ODM_1T1R);
|
||||
else if (hal_data->rf_type == RF_2T2R)
|
||||
|
|
|
@ -810,7 +810,6 @@ rtl8188e_EfusePowerSwitch(
|
|||
hal_EfusePowerSwitch_RTL8188E(pAdapter, bWrite, PwrState);
|
||||
}
|
||||
|
||||
|
||||
static void Hal_EfuseReadEFuse88E(struct adapter *Adapter,
|
||||
u16 _offset,
|
||||
u16 _size_byte,
|
||||
|
|
|
@ -113,7 +113,6 @@ void Hal_MPT_CCKTxPowerAdjust(struct adapter *Adapter, bool bInCH14)
|
|||
TempVal = CCKSwingTable_Ch1_Ch13[CCKSwingIndex][0] +
|
||||
(CCKSwingTable_Ch1_Ch13[CCKSwingIndex][1]<<8);
|
||||
|
||||
|
||||
/* Write 0xa24 ~ 0xa27 */
|
||||
TempVal2 = 0;
|
||||
TempVal2 = CCKSwingTable_Ch1_Ch13[CCKSwingIndex][2] +
|
||||
|
@ -166,7 +165,6 @@ void Hal_MPT_CCKTxPowerAdjustbyIndex(struct adapter *pAdapter, bool beven)
|
|||
u8 Action = 0; /* 0: no action, 1: even->odd, 2:odd->even */
|
||||
s32 i = 0;
|
||||
|
||||
|
||||
if (!IS_92C_SERIAL(pHalData->VersionID))
|
||||
return;
|
||||
if (beven && !pMptCtx->bMptIndexEven) {
|
||||
|
@ -263,7 +261,6 @@ void Hal_SetBandwidth(struct adapter *pAdapter)
|
|||
{
|
||||
struct mp_priv *pmp = &pAdapter->mppriv;
|
||||
|
||||
|
||||
SetBWMode(pAdapter, pmp->bandwidth, pmp->prime_channel_offset);
|
||||
Hal_mpt_SwitchRfSetting(pAdapter);
|
||||
}
|
||||
|
@ -272,7 +269,6 @@ void Hal_SetCCKTxPower(struct adapter *pAdapter, u8 *TxPower)
|
|||
{
|
||||
u32 tmpval = 0;
|
||||
|
||||
|
||||
/* rf-A cck tx power */
|
||||
write_bbreg(pAdapter, rTxAGC_A_CCK1_Mcs32, bMaskByte1, TxPower[RF_PATH_A]);
|
||||
tmpval = (TxPower[RF_PATH_A]<<16) | (TxPower[RF_PATH_A]<<8) | TxPower[RF_PATH_A];
|
||||
|
@ -406,7 +402,6 @@ void Hal_SetAntenna(struct adapter *pAdapter)
|
|||
u8 chgTx = 0, chgRx = 0;
|
||||
u32 r_ant_select_ofdm_val = 0, r_ofdm_tx_en_val = 0;
|
||||
|
||||
|
||||
p_ofdm_tx = (struct ant_sel_ofdm *)&r_ant_select_ofdm_val;
|
||||
p_cck_txrx = (struct ant_sel_cck *)&r_ant_select_cck_val;
|
||||
|
||||
|
@ -543,7 +538,6 @@ s32 Hal_SetThermalMeter(struct adapter *pAdapter, u8 target_ther)
|
|||
{
|
||||
struct hal_data_8188e *pHalData = GET_HAL_DATA(pAdapter);
|
||||
|
||||
|
||||
if (!netif_running(pAdapter->pnetdev)) {
|
||||
RT_TRACE(_module_mp_, _drv_warning_, ("SetThermalMeter! Fail: interface not opened!\n"));
|
||||
return _FAIL;
|
||||
|
@ -626,7 +620,6 @@ void Hal_SetSingleCarrierTx(struct adapter *pAdapter, u8 bStart)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void Hal_SetSingleToneTx(struct adapter *pAdapter, u8 bStart)
|
||||
{
|
||||
struct hal_data_8188e *pHalData = GET_HAL_DATA(pAdapter);
|
||||
|
@ -713,8 +706,6 @@ void Hal_SetSingleToneTx(struct adapter *pAdapter, u8 bStart)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void Hal_SetCarrierSuppressionTx(struct adapter *pAdapter, u8 bStart)
|
||||
{
|
||||
pAdapter->mppriv.MptCtx.bCarrierSuppression = bStart;
|
||||
|
|
|
@ -34,12 +34,10 @@
|
|||
|
||||
/*---------------------------Define Local Constant---------------------------*/
|
||||
|
||||
|
||||
/*------------------------Define global variable-----------------------------*/
|
||||
|
||||
/*------------------------Define local variable------------------------------*/
|
||||
|
||||
|
||||
/*--------------------Define export function prototype-----------------------*/
|
||||
/* Please refer to header file */
|
||||
/*--------------------Define export function prototype-----------------------*/
|
||||
|
@ -100,7 +98,6 @@ rtl8188e_PHY_QueryBBReg(
|
|||
return ReturnValue;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Function: PHY_SetBBReg
|
||||
*
|
||||
|
@ -132,7 +129,6 @@ void rtl8188e_PHY_SetBBReg(struct adapter *Adapter, u32 RegAddr, u32 BitMask, u3
|
|||
rtw_write32(Adapter, RegAddr, Data);
|
||||
}
|
||||
|
||||
|
||||
/* */
|
||||
/* 2. RF register R/W API */
|
||||
/* */
|
||||
|
@ -266,7 +262,6 @@ phy_RFSerialWrite(
|
|||
struct bb_reg_def *pPhyReg = &pHalData->PHYRegDef[eRFPath];
|
||||
u32 NewOffset;
|
||||
|
||||
|
||||
/* 2009/06/17 MH We can not execute IO for power save or other accident mode. */
|
||||
|
||||
Offset &= 0xff;
|
||||
|
@ -601,7 +596,6 @@ PHY_BBConfig8188E(
|
|||
|
||||
phy_InitBBRFRegisterDefinition(Adapter);
|
||||
|
||||
|
||||
/* Enable BB and RF */
|
||||
RegVal = rtw_read16(Adapter, REG_SYS_FUNC_EN);
|
||||
rtw_write16(Adapter, REG_SYS_FUNC_EN, (u16)(RegVal|BIT13|BIT0|BIT1));
|
||||
|
@ -631,7 +625,6 @@ int PHY_RFConfig8188E(struct adapter *Adapter)
|
|||
return rtStatus;
|
||||
}
|
||||
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Function: PHY_ConfigRFWithParaFile()
|
||||
*
|
||||
|
@ -682,7 +675,6 @@ static u8 phy_DbmToTxPwrIdx(struct adapter *Adapter, enum wireless_mode Wireless
|
|||
u8 TxPwrIdx = 0;
|
||||
int Offset = 0;
|
||||
|
||||
|
||||
/* */
|
||||
/* Tested by MP, we found that CCK Index 0 equals to 8dbm, OFDM legacy equals to */
|
||||
/* 3dbm, and OFDM HT equals to 0dbm respectively. */
|
||||
|
@ -748,7 +740,6 @@ static int phy_TxPwrIdxToDbm(struct adapter *Adapter, enum wireless_mode Wireles
|
|||
return PwrOutDbm;
|
||||
}
|
||||
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Function: GetTxPowerLevel8190()
|
||||
*
|
||||
|
|
|
@ -63,7 +63,6 @@ struct rf_shadow {
|
|||
|
||||
/*---------------------------Define Local Constant---------------------------*/
|
||||
|
||||
|
||||
/*------------------------Define global variable-----------------------------*/
|
||||
|
||||
/*------------------------Define local variable------------------------------*/
|
||||
|
@ -90,7 +89,6 @@ void rtl8188e_RF_ChangeTxPath(struct adapter *Adapter, u16 DataRate)
|
|||
/* We do not support gain table change inACUT now !!!! Delete later !!! */
|
||||
} /* RF_ChangeTxPath */
|
||||
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Function: PHY_RF6052SetBandwidth()
|
||||
*
|
||||
|
@ -157,7 +155,6 @@ rtl8188e_PHY_RF6052SetCckTxPower(
|
|||
/* FOR CE ,must disable turbo scan */
|
||||
TurboScanOff = true;
|
||||
|
||||
|
||||
if (pmlmeext->sitesurvey_res.state == SCAN_PROCESS) {
|
||||
TxAGC[RF_PATH_A] = 0x3f3f3f3f;
|
||||
TxAGC[RF_PATH_B] = 0x3f3f3f3f;
|
||||
|
|
|
@ -70,7 +70,6 @@ int rtl8188eu_init_recv_priv(struct adapter *padapter)
|
|||
|
||||
precvpriv->precv_buf = (u8 *)N_BYTE_ALIGMENT((size_t)(precvpriv->pallocated_recv_buf), 4);
|
||||
|
||||
|
||||
precvbuf = (struct recv_buf *)precvpriv->precv_buf;
|
||||
|
||||
for (i = 0; i < NR_RECVBUFF; i++) {
|
||||
|
@ -130,7 +129,6 @@ void rtl8188eu_free_recv_priv(struct adapter *padapter)
|
|||
DBG_88E(KERN_WARNING "rx_skb_queue not empty\n");
|
||||
skb_queue_purge(&precvpriv->rx_skb_queue);
|
||||
|
||||
|
||||
if (skb_queue_len(&precvpriv->free_recv_skb_queue))
|
||||
DBG_88E(KERN_WARNING "free_recv_skb_queue not empty, %d\n", skb_queue_len(&precvpriv->free_recv_skb_queue));
|
||||
|
||||
|
|
|
@ -709,8 +709,6 @@ static u32 rtl8188eu_hal_init(struct adapter *Adapter)
|
|||
|
||||
#define HAL_INIT_PROFILE_TAG(stage) do {} while (0)
|
||||
|
||||
|
||||
|
||||
HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_BEGIN);
|
||||
|
||||
if (Adapter->pwrctrlpriv.bkeepfwalive) {
|
||||
|
@ -967,8 +965,6 @@ HAL_INIT_PROFILE_TAG(HAL_INIT_STAGES_END);
|
|||
|
||||
DBG_88E("%s in %dms\n", __func__, rtw_get_passing_time_ms(init_start_time));
|
||||
|
||||
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
@ -1084,8 +1080,6 @@ static unsigned int rtl8188eu_inirp_init(struct adapter *Adapter)
|
|||
struct recv_priv *precvpriv = &(Adapter->recvpriv);
|
||||
u32 (*_read_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem);
|
||||
|
||||
|
||||
|
||||
_read_port = pintfhdl->io_ops._read_port;
|
||||
|
||||
status = _SUCCESS;
|
||||
|
@ -1112,8 +1106,6 @@ exit:
|
|||
|
||||
RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("<=== usb_inirp_init\n"));
|
||||
|
||||
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
@ -1403,7 +1395,6 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
|
|||
struct dm_priv *pdmpriv = &haldata->dmpriv;
|
||||
struct odm_dm_struct *podmpriv = &haldata->odmpriv;
|
||||
|
||||
|
||||
switch (variable) {
|
||||
case HW_VAR_MEDIA_STATUS:
|
||||
{
|
||||
|
@ -1929,7 +1920,6 @@ static void GetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
|
|||
struct hal_data_8188e *haldata = GET_HAL_DATA(Adapter);
|
||||
struct odm_dm_struct *podmpriv = &haldata->odmpriv;
|
||||
|
||||
|
||||
switch (variable) {
|
||||
case HW_VAR_BASIC_RATE:
|
||||
*((u16 *)(val)) = haldata->BasicRateSet;
|
||||
|
@ -1980,7 +1970,6 @@ static void GetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
|
|||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* */
|
||||
|
@ -2302,8 +2291,6 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt)
|
|||
{
|
||||
struct hal_ops *halfunc = &adapt->HalFunc;
|
||||
|
||||
|
||||
|
||||
adapt->HalData = rtw_zmalloc(sizeof(struct hal_data_8188e));
|
||||
if (adapt->HalData == NULL)
|
||||
DBG_88E("cant not alloc memory for HAL DATA\n");
|
||||
|
|
|
@ -151,7 +151,6 @@ static u16 usb_read16(struct intf_hdl *pintfhdl, u32 addr)
|
|||
u16 len;
|
||||
__le32 data;
|
||||
|
||||
|
||||
request = 0x05;
|
||||
requesttype = 0x01;/* read_in */
|
||||
index = 0;/* n/a */
|
||||
|
@ -159,7 +158,6 @@ static u16 usb_read16(struct intf_hdl *pintfhdl, u32 addr)
|
|||
len = 2;
|
||||
usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
|
||||
|
||||
|
||||
return (u16)(le32_to_cpu(data)&0xffff);
|
||||
}
|
||||
|
||||
|
@ -172,8 +170,6 @@ static u32 usb_read32(struct intf_hdl *pintfhdl, u32 addr)
|
|||
u16 len;
|
||||
__le32 data;
|
||||
|
||||
|
||||
|
||||
request = 0x05;
|
||||
requesttype = 0x01;/* read_in */
|
||||
index = 0;/* n/a */
|
||||
|
@ -183,8 +179,6 @@ static u32 usb_read32(struct intf_hdl *pintfhdl, u32 addr)
|
|||
|
||||
usbctrl_vendorreq(pintfhdl, request, wvalue, index, &data, len, requesttype);
|
||||
|
||||
|
||||
|
||||
return le32_to_cpu(data);
|
||||
}
|
||||
|
||||
|
@ -595,8 +589,6 @@ static u32 usb_read_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem)
|
|||
size_t alignment = 0;
|
||||
u32 ret = _SUCCESS;
|
||||
|
||||
|
||||
|
||||
if (adapter->bDriverStopped || adapter->bSurpriseRemoved ||
|
||||
adapter->pwrctrlpriv.pnp_bstop_trx) {
|
||||
RT_TRACE(_module_hci_ops_os_c_, _drv_err_,
|
||||
|
@ -669,7 +661,6 @@ static u32 usb_read_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *rmem)
|
|||
ret = _FAIL;
|
||||
}
|
||||
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue