mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-26 14:23:39 +00:00
rtl8188eu: Change "}else{" and variants to "} else {"
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
0a97479cee
commit
16d2a24227
23 changed files with 73 additions and 73 deletions
|
@ -1197,7 +1197,7 @@ u8 rtw_setopmode_cmd(struct adapter *padapter, enum NDIS_802_11_NETWORK_INFRAST
|
||||||
init_h2fwcmd_w_parm_no_rsp(ph2c, psetop, _SetOpMode_CMD_);
|
init_h2fwcmd_w_parm_no_rsp(ph2c, psetop, _SetOpMode_CMD_);
|
||||||
res = rtw_enqueue_cmd(pcmdpriv, ph2c);
|
res = rtw_enqueue_cmd(pcmdpriv, ph2c);
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
setopmode_hdl(padapter, (u8 *)psetop);
|
setopmode_hdl(padapter, (u8 *)psetop);
|
||||||
rtw_mfree((u8 *)psetop, sizeof(*psetop));
|
rtw_mfree((u8 *)psetop, sizeof(*psetop));
|
||||||
}
|
}
|
||||||
|
@ -1232,7 +1232,7 @@ u8 rtw_setstakey_cmd(struct adapter *padapter, u8 *psta, u8 unicast_key, bool en
|
||||||
|
|
||||||
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) {
|
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) {
|
||||||
psetstakey_para->algorithm =(unsigned char) psecuritypriv->dot11PrivacyAlgrthm;
|
psetstakey_para->algorithm =(unsigned char) psecuritypriv->dot11PrivacyAlgrthm;
|
||||||
}else{
|
} else {
|
||||||
GET_ENCRY_ALGO(psecuritypriv, sta, psetstakey_para->algorithm, false);
|
GET_ENCRY_ALGO(psecuritypriv, sta, psetstakey_para->algorithm, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1268,7 +1268,7 @@ u8 rtw_setstakey_cmd(struct adapter *padapter, u8 *psta, u8 unicast_key, bool en
|
||||||
ph2c->rspsz = sizeof(struct set_stakey_rsp);
|
ph2c->rspsz = sizeof(struct set_stakey_rsp);
|
||||||
res = rtw_enqueue_cmd(pcmdpriv, ph2c);
|
res = rtw_enqueue_cmd(pcmdpriv, ph2c);
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
set_stakey_hdl(padapter, (u8 *)psetstakey_para);
|
set_stakey_hdl(padapter, (u8 *)psetstakey_para);
|
||||||
rtw_mfree((u8 *) psetstakey_para, sizeof(struct set_stakey_parm));
|
rtw_mfree((u8 *) psetstakey_para, sizeof(struct set_stakey_parm));
|
||||||
}
|
}
|
||||||
|
@ -2154,7 +2154,7 @@ u8 rtw_antenna_select_cmd(struct adapter*padapter, u8 antenna, u8 enqueue)
|
||||||
|
|
||||||
res = rtw_enqueue_cmd(pcmdpriv, ph2c);
|
res = rtw_enqueue_cmd(pcmdpriv, ph2c);
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
antenna_select_wk_hdl(padapter, antenna );
|
antenna_select_wk_hdl(padapter, antenna );
|
||||||
}
|
}
|
||||||
exit:
|
exit:
|
||||||
|
|
|
@ -806,7 +806,7 @@ u8 rtw_set_802_11_add_key(struct adapter* padapter, struct ndis_802_11_key *key)
|
||||||
RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("OID_802_11_ADD_KEY:( stainfo!=NULL)&&(Adapter->securitypriv.dot11AuthAlgrthm ==dot11AuthAlgrthm_8021X)\n"));
|
RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("OID_802_11_ADD_KEY:( stainfo!=NULL)&&(Adapter->securitypriv.dot11AuthAlgrthm ==dot11AuthAlgrthm_8021X)\n"));
|
||||||
encryptionalgo =stainfo->dot118021XPrivacy;
|
encryptionalgo =stainfo->dot118021XPrivacy;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("OID_802_11_ADD_KEY: stainfo == NULL)||(Adapter->securitypriv.dot11AuthAlgrthm!=dot11AuthAlgrthm_8021X)\n"));
|
RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("OID_802_11_ADD_KEY: stainfo == NULL)||(Adapter->securitypriv.dot11AuthAlgrthm!=dot11AuthAlgrthm_8021X)\n"));
|
||||||
encryptionalgo =padapter->securitypriv.dot11PrivacyAlgrthm;
|
encryptionalgo =padapter->securitypriv.dot11PrivacyAlgrthm;
|
||||||
}
|
}
|
||||||
|
@ -1114,7 +1114,7 @@ u8 rtw_set_802_11_add_key(struct adapter* padapter, struct ndis_802_11_key *key)
|
||||||
res =rtw_setstakey_cmd(padapter, (unsigned char *)stainfo, false, true);
|
res =rtw_setstakey_cmd(padapter, (unsigned char *)stainfo, false, true);
|
||||||
RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("\n rtw_set_802_11_add_key:rtw_setstakey_cmd(group)\n"));
|
RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("\n rtw_set_802_11_add_key:rtw_setstakey_cmd(group)\n"));
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
res =rtw_setstakey_cmd(padapter, (unsigned char *)stainfo, true, true);
|
res =rtw_setstakey_cmd(padapter, (unsigned char *)stainfo, true, true);
|
||||||
RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("\n rtw_set_802_11_add_key:rtw_setstakey_cmd(unicast)\n"));
|
RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("\n rtw_set_802_11_add_key:rtw_setstakey_cmd(unicast)\n"));
|
||||||
}
|
}
|
||||||
|
@ -1168,7 +1168,7 @@ u8 rtw_set_802_11_remove_key(struct adapter* padapter, struct ndis_802_11_remove
|
||||||
memset(&stainfo->dot118021x_UncstKey, 0, 16);
|
memset(&stainfo->dot118021x_UncstKey, 0, 16);
|
||||||
|
|
||||||
/* \todo Send a H2C Command to Firmware for disable this Key in CAM Entry. */
|
/* \todo Send a H2C Command to Firmware for disable this Key in CAM Entry. */
|
||||||
} else{
|
} else {
|
||||||
ret = _FAIL;
|
ret = _FAIL;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2430,7 +2430,7 @@ sint rtw_set_key(struct adapter * adapter, struct security_priv *psecuritypriv,
|
||||||
psetkeyparm->algorithm =(unsigned char)psecuritypriv->dot118021XGrpPrivacy;
|
psetkeyparm->algorithm =(unsigned char)psecuritypriv->dot118021XGrpPrivacy;
|
||||||
RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("\n rtw_set_key: psetkeyparm->algorithm =(unsigned char)psecuritypriv->dot118021XGrpPrivacy =%d\n", psetkeyparm->algorithm));
|
RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("\n rtw_set_key: psetkeyparm->algorithm =(unsigned char)psecuritypriv->dot118021XGrpPrivacy =%d\n", psetkeyparm->algorithm));
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
psetkeyparm->algorithm =(u8)psecuritypriv->dot11PrivacyAlgrthm;
|
psetkeyparm->algorithm =(u8)psecuritypriv->dot11PrivacyAlgrthm;
|
||||||
RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("\n rtw_set_key: psetkeyparm->algorithm =(u8)psecuritypriv->dot11PrivacyAlgrthm =%d\n", psetkeyparm->algorithm));
|
RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_, ("\n rtw_set_key: psetkeyparm->algorithm =(u8)psecuritypriv->dot11PrivacyAlgrthm =%d\n", psetkeyparm->algorithm));
|
||||||
|
|
||||||
|
@ -2491,7 +2491,7 @@ sint rtw_set_key(struct adapter * adapter, struct security_priv *psecuritypriv,
|
||||||
|
|
||||||
res = rtw_enqueue_cmd(pcmdpriv, pcmd);
|
res = rtw_enqueue_cmd(pcmdpriv, pcmd);
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
setkey_hdl(adapter, (u8 *)psetkeyparm);
|
setkey_hdl(adapter, (u8 *)psetkeyparm);
|
||||||
rtw_mfree((u8 *) psetkeyparm, sizeof(struct setkey_parm));
|
rtw_mfree((u8 *) psetkeyparm, sizeof(struct setkey_parm));
|
||||||
}
|
}
|
||||||
|
|
|
@ -419,7 +419,7 @@ sint recvframe_chkmic(struct adapter *adapter, union recv_frame *precvframe) {
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
mickey =&stainfo->dot11tkiprxmickey.skey[0];
|
mickey =&stainfo->dot11tkiprxmickey.skey[0];
|
||||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, ("\n recvframe_chkmic: unicast key\n"));
|
RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, ("\n recvframe_chkmic: unicast key\n"));
|
||||||
}
|
}
|
||||||
|
@ -489,7 +489,7 @@ sint recvframe_chkmic(struct adapter *adapter, union recv_frame *precvframe) {
|
||||||
res =_FAIL;
|
res =_FAIL;
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
/* mic checked ok */
|
/* mic checked ok */
|
||||||
if ((psecuritypriv->bcheck_grpkey ==false)&&(IS_MCAST(prxattrib->ra) ==true)) {
|
if ((psecuritypriv->bcheck_grpkey ==false)&&(IS_MCAST(prxattrib->ra) ==true)) {
|
||||||
psecuritypriv->bcheck_grpkey =true;
|
psecuritypriv->bcheck_grpkey =true;
|
||||||
|
@ -594,7 +594,7 @@ static union recv_frame *decryptor(struct adapter *padapter, union recv_frame *p
|
||||||
return_packet = NULL;
|
return_packet = NULL;
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
prxattrib->bdecrypted = true;
|
prxattrib->bdecrypted = true;
|
||||||
}
|
}
|
||||||
return return_packet;
|
return return_packet;
|
||||||
|
@ -675,7 +675,7 @@ static union recv_frame * portctrl(struct adapter *adapter, union recv_frame * p
|
||||||
|
|
||||||
prtnframe =precv_frame;
|
prtnframe =precv_frame;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("########portctrl:ether_type =0x%04x\n", ether_type));
|
RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("########portctrl:ether_type =0x%04x\n", ether_type));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,7 +112,7 @@ static void crc32_init(void)
|
||||||
;
|
;
|
||||||
if (bcrc32initialized == 1)
|
if (bcrc32initialized == 1)
|
||||||
goto exit;
|
goto exit;
|
||||||
else{
|
else {
|
||||||
sint i, j;
|
sint i, j;
|
||||||
u32 c;
|
u32 c;
|
||||||
u8 *p =(u8 *)&c, *p1;
|
u8 *p =(u8 *)&c, *p1;
|
||||||
|
@ -396,7 +396,7 @@ void rtw_seccalctkipmic(u8 * key, u8 *header, u8 *data, u32 data_len, u8 *mic_co
|
||||||
rtw_secmicappend(&micdata, &header[24], 6);
|
rtw_secmicappend(&micdata, &header[24], 6);
|
||||||
else
|
else
|
||||||
rtw_secmicappend(&micdata, &header[10], 6);
|
rtw_secmicappend(&micdata, &header[10], 6);
|
||||||
} else{ /* ToDS == 0 */
|
} else { /* ToDS == 0 */
|
||||||
rtw_secmicappend(&micdata, &header[4], 6); /* DA */
|
rtw_secmicappend(&micdata, &header[4], 6); /* DA */
|
||||||
if (header[1]&2) /* From Ds ==1 */
|
if (header[1]&2) /* From Ds ==1 */
|
||||||
rtw_secmicappend(&micdata, &header[16], 6);
|
rtw_secmicappend(&micdata, &header[16], 6);
|
||||||
|
@ -709,7 +709,7 @@ u32 rtw_tkip_encrypt(struct adapter *padapter, u8 *pxmitframe)
|
||||||
arcfour_encrypt(&mycontext, payload, payload, length);
|
arcfour_encrypt(&mycontext, payload, payload, length);
|
||||||
arcfour_encrypt(&mycontext, payload+length, crc, 4);
|
arcfour_encrypt(&mycontext, payload+length, crc, 4);
|
||||||
|
|
||||||
} else{
|
} else {
|
||||||
length =pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len ;
|
length =pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-pattrib->icv_len ;
|
||||||
*((__le32 *)crc) =getcrc32(payload, length);/* modified by Amy*/
|
*((__le32 *)crc) =getcrc32(payload, length);/* modified by Amy*/
|
||||||
arcfour_init(&mycontext, rc4key, 16);
|
arcfour_init(&mycontext, rc4key, 16);
|
||||||
|
@ -724,7 +724,7 @@ u32 rtw_tkip_encrypt(struct adapter *padapter, u8 *pxmitframe)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
RT_TRACE(_module_rtl871x_security_c_, _drv_err_, ("rtw_tkip_encrypt: stainfo == NULL!!!\n"));
|
RT_TRACE(_module_rtl871x_security_c_, _drv_err_, ("rtw_tkip_encrypt: stainfo == NULL!!!\n"));
|
||||||
DBG_871X("%s, psta ==NUL\n", __func__);
|
DBG_871X("%s, psta ==NUL\n", __func__);
|
||||||
res =_FAIL;
|
res =_FAIL;
|
||||||
|
@ -845,7 +845,7 @@ u32 rtw_tkip_decrypt(struct adapter *padapter, u8 *precvframe)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
RT_TRACE(_module_rtl871x_security_c_, _drv_err_, ("rtw_tkip_decrypt: stainfo == NULL!!!\n"));
|
RT_TRACE(_module_rtl871x_security_c_, _drv_err_, ("rtw_tkip_decrypt: stainfo == NULL!!!\n"));
|
||||||
res =_FAIL;
|
res =_FAIL;
|
||||||
}
|
}
|
||||||
|
@ -1588,7 +1588,7 @@ u32 rtw_aes_encrypt(struct adapter *padapter, u8 *pxmitframe)
|
||||||
pframe =(u8*)RND4((SIZE_PTR)(pframe));
|
pframe =(u8*)RND4((SIZE_PTR)(pframe));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else{
|
} else {
|
||||||
RT_TRACE(_module_rtl871x_security_c_, _drv_err_, ("rtw_aes_encrypt: stainfo == NULL!!!\n"));
|
RT_TRACE(_module_rtl871x_security_c_, _drv_err_, ("rtw_aes_encrypt: stainfo == NULL!!!\n"));
|
||||||
DBG_871X("%s, psta ==NUL\n", __func__);
|
DBG_871X("%s, psta ==NUL\n", __func__);
|
||||||
res =_FAIL;
|
res =_FAIL;
|
||||||
|
|
|
@ -2107,7 +2107,7 @@ int rtw_handle_dualmac(struct adapter *adapter, bool init)
|
||||||
pbuddy_padapter = NULL;
|
pbuddy_padapter = NULL;
|
||||||
DBG_871X("%s(): pbuddy_padapter exist, Exchange Information\n", __FUNCTION__);
|
DBG_871X("%s(): pbuddy_padapter exist, Exchange Information\n", __FUNCTION__);
|
||||||
}
|
}
|
||||||
}else {
|
} else {
|
||||||
pbuddy_padapter = NULL;
|
pbuddy_padapter = NULL;
|
||||||
}
|
}
|
||||||
exit:
|
exit:
|
||||||
|
|
|
@ -902,7 +902,7 @@ static s32 xmitframe_addmic(struct adapter *padapter, struct xmit_frame *pxmitfr
|
||||||
rtw_secmicappend(&micdata, &pframe[24], 6);
|
rtw_secmicappend(&micdata, &pframe[24], 6);
|
||||||
else
|
else
|
||||||
rtw_secmicappend(&micdata, &pframe[10], 6);
|
rtw_secmicappend(&micdata, &pframe[10], 6);
|
||||||
} else{ /* ToDS == 0 */
|
} else { /* ToDS == 0 */
|
||||||
rtw_secmicappend(&micdata, &pframe[4], 6); /* DA */
|
rtw_secmicappend(&micdata, &pframe[4], 6); /* DA */
|
||||||
if (pframe[1]&2) /* From Ds ==1 */
|
if (pframe[1]&2) /* From Ds ==1 */
|
||||||
rtw_secmicappend(&micdata, &pframe[16], 6);
|
rtw_secmicappend(&micdata, &pframe[16], 6);
|
||||||
|
@ -932,7 +932,7 @@ static s32 xmitframe_addmic(struct adapter *padapter, struct xmit_frame *pxmitfr
|
||||||
rtw_secmicappend(&micdata, payload, length);
|
rtw_secmicappend(&micdata, payload, length);
|
||||||
payload =payload+length;
|
payload =payload+length;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
length =pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-( (pattrib->bswenc) ? pattrib->icv_len : 0);
|
length =pxmitpriv->frag_len-pattrib->hdrlen-pattrib->iv_len-( (pattrib->bswenc) ? pattrib->icv_len : 0);
|
||||||
rtw_secmicappend(&micdata, payload, length);
|
rtw_secmicappend(&micdata, payload, length);
|
||||||
payload =payload+length+pattrib->icv_len;
|
payload =payload+length+pattrib->icv_len;
|
||||||
|
@ -957,7 +957,7 @@ static s32 xmitframe_addmic(struct adapter *padapter, struct xmit_frame *pxmitfr
|
||||||
*(payload+curfragnum), *(payload+curfragnum+1), *(payload+curfragnum+2),*(payload+curfragnum+3),
|
*(payload+curfragnum), *(payload+curfragnum+1), *(payload+curfragnum+2),*(payload+curfragnum+3),
|
||||||
*(payload+curfragnum+4),*(payload+curfragnum+5),*(payload+curfragnum+6),*(payload+curfragnum+7)));
|
*(payload+curfragnum+4),*(payload+curfragnum+5),*(payload+curfragnum+6),*(payload+curfragnum+7)));
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_, ("xmitframe_addmic: rtw_get_stainfo == NULL!!!\n"));
|
RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_, ("xmitframe_addmic: rtw_get_stainfo == NULL!!!\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -188,7 +188,7 @@ RateDownFinish:
|
||||||
}
|
}
|
||||||
else if (pRaInfo->RAWaitingCounter== 0) {
|
else if (pRaInfo->RAWaitingCounter== 0) {
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
pRaInfo->RAWaitingCounter=0;
|
pRaInfo->RAWaitingCounter=0;
|
||||||
pRaInfo->RAPendingCounter=0;
|
pRaInfo->RAPendingCounter=0;
|
||||||
}
|
}
|
||||||
|
@ -434,7 +434,7 @@ odm_ARFBRefresh_8188E(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
pRaInfo->HighestRate=0;
|
pRaInfo->HighestRate=0;
|
||||||
}
|
}
|
||||||
/* Lowest rate */
|
/* Lowest rate */
|
||||||
|
@ -448,7 +448,7 @@ odm_ARFBRefresh_8188E(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
pRaInfo->LowestRate=0;
|
pRaInfo->LowestRate=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -524,12 +524,12 @@ odm_PTTryState_8188E(
|
||||||
pRaInfo->PTStopCount=0;
|
pRaInfo->PTStopCount=0;
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
pRaInfo->RAstage=0;
|
pRaInfo->RAstage=0;
|
||||||
pRaInfo->PTStopCount++;
|
pRaInfo->PTStopCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
pRaInfo->PTStage=0;
|
pRaInfo->PTStage=0;
|
||||||
pRaInfo->RAstage=0;
|
pRaInfo->RAstage=0;
|
||||||
}
|
}
|
||||||
|
@ -871,7 +871,7 @@ ODM_RA_TxRPT2Handle_8188E(
|
||||||
else
|
else
|
||||||
pRAInfo->RAstage=0;
|
pRAInfo->RAstage=0;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
odm_RateDecision_8188E(pDM_Odm,pRAInfo);
|
odm_RateDecision_8188E(pDM_Odm,pRAInfo);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -1026,7 +1026,7 @@ _PHY_PathADDAOn(
|
||||||
pathOn = 0x0bdb25a0;
|
pathOn = 0x0bdb25a0;
|
||||||
ODM_SetBBReg(pDM_Odm, ADDAReg[0], bMaskDWord, 0x0b1b25a0);
|
ODM_SetBBReg(pDM_Odm, ADDAReg[0], bMaskDWord, 0x0b1b25a0);
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
ODM_SetBBReg(pDM_Odm,ADDAReg[0], bMaskDWord, pathOn);
|
ODM_SetBBReg(pDM_Odm,ADDAReg[0], bMaskDWord, pathOn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -215,7 +215,7 @@ _TwoOutPipeMapping(
|
||||||
pdvobjpriv->Queue2Pipe[7] = pdvobjpriv->RtOutPipe[0];/* TXCMD */
|
pdvobjpriv->Queue2Pipe[7] = pdvobjpriv->RtOutPipe[0];/* TXCMD */
|
||||||
|
|
||||||
}
|
}
|
||||||
else{/* typical setting */
|
else {/* typical setting */
|
||||||
|
|
||||||
|
|
||||||
/* BK, BE, VI, VO, BCN, CMD,MGT,HIGH,HCCA */
|
/* BK, BE, VI, VO, BCN, CMD,MGT,HIGH,HCCA */
|
||||||
|
@ -260,7 +260,7 @@ static void _ThreeOutPipeMapping(
|
||||||
pdvobjpriv->Queue2Pipe[7] = pdvobjpriv->RtOutPipe[0];/* TXCMD */
|
pdvobjpriv->Queue2Pipe[7] = pdvobjpriv->RtOutPipe[0];/* TXCMD */
|
||||||
|
|
||||||
}
|
}
|
||||||
else{/* typical setting */
|
else {/* typical setting */
|
||||||
|
|
||||||
|
|
||||||
/* BK, BE, VI, VO, BCN, CMD,MGT,HIGH,HCCA */
|
/* BK, BE, VI, VO, BCN, CMD,MGT,HIGH,HCCA */
|
||||||
|
|
|
@ -119,7 +119,7 @@ uint rtw_hal_init(struct adapter *padapter)
|
||||||
|
|
||||||
init_hw_mlme_ext(padapter);
|
init_hw_mlme_ext(padapter);
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
for (i = 0; i<dvobj->iface_nums; i++) {
|
for (i = 0; i<dvobj->iface_nums; i++) {
|
||||||
padapter = dvobj->padapters[i];
|
padapter = dvobj->padapters[i];
|
||||||
padapter->hw_init_completed = false;
|
padapter->hw_init_completed = false;
|
||||||
|
|
12
hal/odm.c
12
hal/odm.c
|
@ -1588,7 +1588,7 @@ odm_DIG(
|
||||||
else
|
else
|
||||||
pDM_DigTable->rx_gain_range_max = pDM_Odm->RSSI_Min + 10;
|
pDM_DigTable->rx_gain_range_max = pDM_Odm->RSSI_Min + 10;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
|
|
||||||
/* 2 Modify DIG upper bound */
|
/* 2 Modify DIG upper bound */
|
||||||
/* 2013.03.19 Luke: Modified upper bound for Netgear rental house test */
|
/* 2013.03.19 Luke: Modified upper bound for Netgear rental house test */
|
||||||
|
@ -2103,13 +2103,13 @@ odm_1R_CCA(
|
||||||
pDM_PSTable->CurCCAState = CCA_2R;
|
pDM_PSTable->CurCCAState = CCA_2R;
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
if (pDM_Odm->RSSI_Min <= 30)
|
if (pDM_Odm->RSSI_Min <= 30)
|
||||||
pDM_PSTable->CurCCAState = CCA_2R;
|
pDM_PSTable->CurCCAState = CCA_2R;
|
||||||
else
|
else
|
||||||
pDM_PSTable->CurCCAState = CCA_1R;
|
pDM_PSTable->CurCCAState = CCA_1R;
|
||||||
}
|
}
|
||||||
} else{
|
} else {
|
||||||
pDM_PSTable->CurCCAState=CCA_MAX;
|
pDM_PSTable->CurCCAState=CCA_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2162,7 +2162,7 @@ ODM_RF_Saving(
|
||||||
else
|
else
|
||||||
pDM_PSTable->CurRFState = RF_Normal;
|
pDM_PSTable->CurRFState = RF_Normal;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
if (pDM_Odm->RSSI_Min <= Rssi_Low_bound)
|
if (pDM_Odm->RSSI_Min <= Rssi_Low_bound)
|
||||||
pDM_PSTable->CurRFState = RF_Normal;
|
pDM_PSTable->CurRFState = RF_Normal;
|
||||||
else
|
else
|
||||||
|
@ -2296,7 +2296,7 @@ u32 ODM_Get_Rate_Bitmap(
|
||||||
{
|
{
|
||||||
rate_bitmap = 0x000ff000;
|
rate_bitmap = 0x000ff000;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
if (*(pDM_Odm->pBandWidth) == ODM_BW40M)
|
if (*(pDM_Odm->pBandWidth) == ODM_BW40M)
|
||||||
rate_bitmap = 0x000ff015;
|
rate_bitmap = 0x000ff015;
|
||||||
else
|
else
|
||||||
|
@ -2784,7 +2784,7 @@ odm_RSSIMonitorCheckCE(
|
||||||
if (pHalData->fw_ractrl == true)/* Report every sta's RSSI to FW */
|
if (pHalData->fw_ractrl == true)/* Report every sta's RSSI to FW */
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
#if (RATE_ADAPTIVE_SUPPORT == 1)
|
#if (RATE_ADAPTIVE_SUPPORT == 1)
|
||||||
ODM_RA_SetRSSI_8188E(
|
ODM_RA_SetRSSI_8188E(
|
||||||
&(pHalData->odmpriv), (PWDB_rssi[i]&0xFF), (u8)((PWDB_rssi[i]>>16) & 0xFF));
|
&(pHalData->odmpriv), (PWDB_rssi[i]&0xFF), (u8)((PWDB_rssi[i]>>16) & 0xFF));
|
||||||
|
|
|
@ -185,7 +185,7 @@ odm_SignalScaleMapping(
|
||||||
{
|
{
|
||||||
return odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Lenovo(pDM_Odm, CurrSig);
|
return odm_SignalScaleMapping_92CSeries_patch_RT_CID_819x_Lenovo(pDM_Odm, CurrSig);
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
return odm_SignalScaleMapping_92CSeries(pDM_Odm,CurrSig);
|
return odm_SignalScaleMapping_92CSeries(pDM_Odm,CurrSig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -419,7 +419,7 @@ odm_RxPhyStatus92CSeries_Parsing(
|
||||||
else if (pPhyInfo->RxPWDBAll > 40 && !pDM_Odm->bInHctTest) {
|
else if (pPhyInfo->RxPWDBAll > 40 && !pDM_Odm->bInHctTest) {
|
||||||
SQ = 100;
|
SQ = 100;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
SQ_rpt = pPhyStaRpt->cck_sig_qual_ofdm_pwdb_all;
|
SQ_rpt = pPhyStaRpt->cck_sig_qual_ofdm_pwdb_all;
|
||||||
|
|
||||||
if (SQ_rpt > 64)
|
if (SQ_rpt > 64)
|
||||||
|
@ -504,7 +504,7 @@ odm_RxPhyStatus92CSeries_Parsing(
|
||||||
|
|
||||||
if ((pDM_Odm->SupportPlatform == ODM_MP) &&(pDM_Odm->PatchID==19)) {
|
if ((pDM_Odm->SupportPlatform == ODM_MP) &&(pDM_Odm->PatchID==19)) {
|
||||||
/* do nothing */
|
/* do nothing */
|
||||||
} else{/* pMgntInfo->CustomerID != RT_CID_819x_Lenovo */
|
} else {/* pMgntInfo->CustomerID != RT_CID_819x_Lenovo */
|
||||||
/* */
|
/* */
|
||||||
/* (3)EVM of HT rate */
|
/* (3)EVM of HT rate */
|
||||||
/* */
|
/* */
|
||||||
|
|
|
@ -139,7 +139,7 @@ odm_ConfigBB_PHY_REG_PG_8188E(
|
||||||
ODM_delay_us(5);
|
ODM_delay_us(5);
|
||||||
} else if (Addr == 0xf9) {
|
} else if (Addr == 0xf9) {
|
||||||
ODM_delay_us(1);
|
ODM_delay_us(1);
|
||||||
} else{
|
} else {
|
||||||
ODM_RT_TRACE(pDM_Odm,ODM_COMP_INIT, ODM_DBG_LOUD, ("===> @@@@@@@ ODM_ConfigBBWithHeaderFile: [PHY_REG] %08X %08X %08X\n", Addr, Bitmask, Data));
|
ODM_RT_TRACE(pDM_Odm,ODM_COMP_INIT, ODM_DBG_LOUD, ("===> @@@@@@@ ODM_ConfigBBWithHeaderFile: [PHY_REG] %08X %08X %08X\n", Addr, Bitmask, Data));
|
||||||
|
|
||||||
storePwrIndexDiffRateOffset(pDM_Odm->Adapter, Addr, Bitmask, Data);
|
storePwrIndexDiffRateOffset(pDM_Odm->Adapter, Addr, Bitmask, Data);
|
||||||
|
@ -173,7 +173,7 @@ odm_ConfigBB_PHY_8188E(
|
||||||
else if (Addr == 0xf9) {
|
else if (Addr == 0xf9) {
|
||||||
ODM_delay_us(1);
|
ODM_delay_us(1);
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
if (Addr == 0xa24)
|
if (Addr == 0xa24)
|
||||||
pDM_Odm->RFCalibrateInfo.RegA24 = Data;
|
pDM_Odm->RFCalibrateInfo.RegA24 = Data;
|
||||||
ODM_SetBBReg(pDM_Odm, Addr, Bitmask, Data);
|
ODM_SetBBReg(pDM_Odm, Addr, Bitmask, Data);
|
||||||
|
|
|
@ -120,7 +120,7 @@ static s32 FillH2CCmd_88E(struct adapter *padapter, u8 ElementID, u32 CmdLen, u8
|
||||||
{
|
{
|
||||||
memcpy((u8*)(&h2c_cmd)+1, pCmdBuffer, CmdLen );
|
memcpy((u8*)(&h2c_cmd)+1, pCmdBuffer, CmdLen );
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
memcpy((u8*)(&h2c_cmd)+1, pCmdBuffer,3);
|
memcpy((u8*)(&h2c_cmd)+1, pCmdBuffer,3);
|
||||||
ext_cmd_len = CmdLen-3;
|
ext_cmd_len = CmdLen-3;
|
||||||
memcpy((u8*)(&h2c_cmd_ex), pCmdBuffer+3,ext_cmd_len );
|
memcpy((u8*)(&h2c_cmd_ex), pCmdBuffer+3,ext_cmd_len );
|
||||||
|
@ -170,7 +170,7 @@ u8 rtl8188e_set_rssi_cmd(struct adapter*padapter, u8 *param)
|
||||||
;
|
;
|
||||||
|
|
||||||
if (pHalData->fw_ractrl == true) {
|
if (pHalData->fw_ractrl == true) {
|
||||||
}else{
|
} else {
|
||||||
DBG_8192C("==>%s fw dont support RA\n",__FUNCTION__);
|
DBG_8192C("==>%s fw dont support RA\n",__FUNCTION__);
|
||||||
res=_FAIL;
|
res=_FAIL;
|
||||||
}
|
}
|
||||||
|
@ -191,7 +191,7 @@ u8 rtl8188e_set_raid_cmd(struct adapter*padapter, u32 mask)
|
||||||
memcpy(buf, &lmask, 3);
|
memcpy(buf, &lmask, 3);
|
||||||
|
|
||||||
FillH2CCmd_88E(padapter, H2C_DM_MACID_CFG, 3, buf);
|
FillH2CCmd_88E(padapter, H2C_DM_MACID_CFG, 3, buf);
|
||||||
}else{
|
} else {
|
||||||
DBG_8192C("==>%s fw dont support RA\n",__FUNCTION__);
|
DBG_8192C("==>%s fw dont support RA\n",__FUNCTION__);
|
||||||
res=_FAIL;
|
res=_FAIL;
|
||||||
}
|
}
|
||||||
|
@ -943,7 +943,7 @@ u8 rtl8188e_reset_tsf(struct adapter *padapter, u8 reset_port )
|
||||||
;
|
;
|
||||||
if (IFACE_PORT0==reset_port) {
|
if (IFACE_PORT0==reset_port) {
|
||||||
buf[0] = 0x1; buf[1] = 0;
|
buf[0] = 0x1; buf[1] = 0;
|
||||||
} else{
|
} else {
|
||||||
buf[0] = 0x0; buf[1] = 0x1;
|
buf[0] = 0x0; buf[1] = 0x1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -709,7 +709,7 @@ static void _MCUIO_Reset88E(struct adapter *padapter,u8 bReset)
|
||||||
/* Reset MCU IO Wrapper- sugggest by SD1-Gimmy */
|
/* Reset MCU IO Wrapper- sugggest by SD1-Gimmy */
|
||||||
u1bTmp = rtw_read8(padapter, REG_RSV_CTRL+1);
|
u1bTmp = rtw_read8(padapter, REG_RSV_CTRL+1);
|
||||||
rtw_write8(padapter,REG_RSV_CTRL+1, (u1bTmp&(~BIT3)));
|
rtw_write8(padapter,REG_RSV_CTRL+1, (u1bTmp&(~BIT3)));
|
||||||
}else{
|
} else {
|
||||||
/* Enable MCU IO Wrapper */
|
/* Enable MCU IO Wrapper */
|
||||||
u1bTmp = rtw_read8(padapter, REG_RSV_CTRL+1);
|
u1bTmp = rtw_read8(padapter, REG_RSV_CTRL+1);
|
||||||
rtw_write8(padapter, REG_RSV_CTRL+1, u1bTmp|BIT3);
|
rtw_write8(padapter, REG_RSV_CTRL+1, u1bTmp|BIT3);
|
||||||
|
@ -1830,18 +1830,18 @@ hal_EfusePgPacketRead_8188e(
|
||||||
}
|
}
|
||||||
if (bDataEmpty==false) {
|
if (bDataEmpty==false) {
|
||||||
ReadState = PG_STATE_DATA;
|
ReadState = PG_STATE_DATA;
|
||||||
}else{/* read next header */
|
} else {/* read next header */
|
||||||
efuse_addr = efuse_addr + (word_cnts*2)+1;
|
efuse_addr = efuse_addr + (word_cnts*2)+1;
|
||||||
ReadState = PG_STATE_HEADER;
|
ReadState = PG_STATE_HEADER;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{/* read next header */
|
else {/* read next header */
|
||||||
efuse_addr = efuse_addr + (word_cnts*2)+1;
|
efuse_addr = efuse_addr + (word_cnts*2)+1;
|
||||||
ReadState = PG_STATE_HEADER;
|
ReadState = PG_STATE_HEADER;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
bContinual = false ;
|
bContinual = false ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2526,7 +2526,7 @@ ReadChipVersion8188E(struct adapter *padapter)
|
||||||
} else if (IS_2T2R(ChipVersion)) {
|
} else if (IS_2T2R(ChipVersion)) {
|
||||||
pHalData->rf_type = RF_2T2R;
|
pHalData->rf_type = RF_2T2R;
|
||||||
pHalData->NumTotalRFPath = 2;
|
pHalData->NumTotalRFPath = 2;
|
||||||
} else{
|
} else {
|
||||||
pHalData->rf_type = RF_1T1R;
|
pHalData->rf_type = RF_1T1R;
|
||||||
pHalData->NumTotalRFPath = 1;
|
pHalData->NumTotalRFPath = 1;
|
||||||
}
|
}
|
||||||
|
@ -2577,7 +2577,7 @@ static void rtl8188e_SetHalODMVar(
|
||||||
ODM_RAInfo_Init(podmpriv,psta->mac_id);
|
ODM_RAInfo_Init(podmpriv,psta->mac_id);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
DBG_8192C("### Clean STA_(%d) info\n",psta->mac_id);
|
DBG_8192C("### Clean STA_(%d) info\n",psta->mac_id);
|
||||||
ODM_CmnInfoPtrArrayHook(podmpriv, ODM_CMNINFO_STA_STATUS,psta->mac_id,NULL);
|
ODM_CmnInfoPtrArrayHook(podmpriv, ODM_CMNINFO_STA_STATUS,psta->mac_id,NULL);
|
||||||
}
|
}
|
||||||
|
@ -3208,7 +3208,7 @@ Hal_ReadTxPowerInfo88E(
|
||||||
pHalData->EEPROMRegulatory = (EEPROM_DEFAULT_BOARD_OPTION&0x7); /* bit0~2 */
|
pHalData->EEPROMRegulatory = (EEPROM_DEFAULT_BOARD_OPTION&0x7); /* bit0~2 */
|
||||||
else
|
else
|
||||||
pHalData->EEPROMRegulatory = (PROMContent[EEPROM_RF_BOARD_OPTION_88E]&0x7); /* bit0~2 */
|
pHalData->EEPROMRegulatory = (PROMContent[EEPROM_RF_BOARD_OPTION_88E]&0x7); /* bit0~2 */
|
||||||
}else{
|
} else {
|
||||||
pHalData->EEPROMRegulatory = registry_par->regulatory_tid;
|
pHalData->EEPROMRegulatory = registry_par->regulatory_tid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3273,7 +3273,7 @@ Hal_EfuseParseEEPROMVer88E(
|
||||||
if (pHalData->EEPROMVersion == 0xFF)
|
if (pHalData->EEPROMVersion == 0xFF)
|
||||||
pHalData->EEPROMVersion = EEPROM_Default_Version;
|
pHalData->EEPROMVersion = EEPROM_Default_Version;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
pHalData->EEPROMVersion = 1;
|
pHalData->EEPROMVersion = 1;
|
||||||
}
|
}
|
||||||
RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("Hal_EfuseParseEEPROMVer(), EEVer = %d\n",
|
RT_TRACE(_module_hci_hal_init_c_, _drv_info_, ("Hal_EfuseParseEEPROMVer(), EEVer = %d\n",
|
||||||
|
@ -3352,7 +3352,7 @@ Hal_ReadAntennaDiversity88E(
|
||||||
if (pHalData->TRxAntDivType == 0xFF)
|
if (pHalData->TRxAntDivType == 0xFF)
|
||||||
pHalData->TRxAntDivType = CG_TRX_HW_ANTDIV; /* For 88EE, 1Tx and 1RxCG are fixed.(1Ant, Tx and RxCG are both on aux port) */
|
pHalData->TRxAntDivType = CG_TRX_HW_ANTDIV; /* For 88EE, 1Tx and 1RxCG are fixed.(1Ant, Tx and RxCG are both on aux port) */
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
pHalData->TRxAntDivType = registry_par->antdiv_type ;
|
pHalData->TRxAntDivType = registry_par->antdiv_type ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1903,7 +1903,7 @@ static void phy_SpurCalibration_8188E(
|
||||||
PHY_SetBBReg(Adapter, rOFDM1_CFOTracking, BIT(28), 0x1); /* enable CSI Mask */
|
PHY_SetBBReg(Adapter, rOFDM1_CFOTracking, BIT(28), 0x1); /* enable CSI Mask */
|
||||||
PHY_SetBBReg(Adapter, rOFDM1_csi_fix_mask, BIT(26)|BIT(25), 0x3); /* Fix CSI Mask Tone */
|
PHY_SetBBReg(Adapter, rOFDM1_csi_fix_mask, BIT(26)|BIT(25), 0x3); /* Fix CSI Mask Tone */
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
PHY_SetBBReg(Adapter, rOFDM1_CFOTracking, BIT(28), 0x0); /* disable CSI Mask */
|
PHY_SetBBReg(Adapter, rOFDM1_CFOTracking, BIT(28), 0x0); /* disable CSI Mask */
|
||||||
PHY_SetBBReg(Adapter, rOFDM1_csi_fix_mask, BIT(26)|BIT(25), 0x0);
|
PHY_SetBBReg(Adapter, rOFDM1_csi_fix_mask, BIT(26)|BIT(25), 0x0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -217,7 +217,7 @@ void update_recvframe_phyinfo_88e(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
sa = get_sa(wlanhdr);
|
sa = get_sa(wlanhdr);
|
||||||
} else{
|
} else {
|
||||||
sa = get_sa(wlanhdr);
|
sa = get_sa(wlanhdr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ void rtl8188e_sreset_xmit_status_check(struct adapter *padapter)
|
||||||
if (psrtpriv->last_tx_complete_time == 0) {
|
if (psrtpriv->last_tx_complete_time == 0) {
|
||||||
psrtpriv->last_tx_complete_time = current_time;
|
psrtpriv->last_tx_complete_time = current_time;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
diff_time = rtw_get_passing_time_ms(psrtpriv->last_tx_complete_time);
|
diff_time = rtw_get_passing_time_ms(psrtpriv->last_tx_complete_time);
|
||||||
if (diff_time > 4000) {
|
if (diff_time > 4000) {
|
||||||
u32 ability;
|
u32 ability;
|
||||||
|
|
|
@ -270,7 +270,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz ,u8 bag
|
||||||
if (pattrib->ampdu_en==true) {
|
if (pattrib->ampdu_en==true) {
|
||||||
ptxdesc->txdw2 |= cpu_to_le32(AGG_EN);/* AGG EN */
|
ptxdesc->txdw2 |= cpu_to_le32(AGG_EN);/* AGG EN */
|
||||||
ptxdesc->txdw6 = cpu_to_le32(0x6666f800);
|
ptxdesc->txdw6 = cpu_to_le32(0x6666f800);
|
||||||
} else{
|
} else {
|
||||||
ptxdesc->txdw2 |= cpu_to_le32(AGG_BK);/* AGG BK */
|
ptxdesc->txdw2 |= cpu_to_le32(AGG_BK);/* AGG BK */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -814,7 +814,7 @@ static s32 xmitframe_direct(struct adapter *padapter, struct xmit_frame *pxmitfr
|
||||||
if (res == _SUCCESS) {
|
if (res == _SUCCESS) {
|
||||||
rtw_dump_xframe(padapter, pxmitframe);
|
rtw_dump_xframe(padapter, pxmitframe);
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
DBG_8192C("==> %s xmitframe_coalsece failed\n",__FUNCTION__);
|
DBG_8192C("==> %s xmitframe_coalsece failed\n",__FUNCTION__);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -517,7 +517,7 @@ _InitNormalChipTwoOutEpPriority(
|
||||||
mgtQ = valueHi;
|
mgtQ = valueHi;
|
||||||
hiQ = valueHi;
|
hiQ = valueHi;
|
||||||
}
|
}
|
||||||
else{/* for WMM ,CONFIG_OUT_EP_WIFI_MODE */
|
else {/* for WMM ,CONFIG_OUT_EP_WIFI_MODE */
|
||||||
beQ = valueLow;
|
beQ = valueLow;
|
||||||
bkQ = valueHi;
|
bkQ = valueHi;
|
||||||
viQ = valueHi;
|
viQ = valueHi;
|
||||||
|
@ -546,7 +546,7 @@ _InitNormalChipThreeOutEpPriority(
|
||||||
mgtQ = QUEUE_HIGH;
|
mgtQ = QUEUE_HIGH;
|
||||||
hiQ = QUEUE_HIGH;
|
hiQ = QUEUE_HIGH;
|
||||||
}
|
}
|
||||||
else{/* for WMM */
|
else {/* for WMM */
|
||||||
beQ = QUEUE_LOW;
|
beQ = QUEUE_LOW;
|
||||||
bkQ = QUEUE_NORMAL;
|
bkQ = QUEUE_NORMAL;
|
||||||
viQ = QUEUE_NORMAL;
|
viQ = QUEUE_NORMAL;
|
||||||
|
@ -2528,7 +2528,7 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8* val)
|
||||||
pdmpriv->DMFlag = pdmpriv->InitDMFlag;
|
pdmpriv->DMFlag = pdmpriv->InitDMFlag;
|
||||||
podmpriv->SupportAbility = pdmpriv->InitODMFlag;
|
podmpriv->SupportAbility = pdmpriv->InitODMFlag;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
podmpriv->SupportAbility |= *((u32 *)val);
|
podmpriv->SupportAbility |= *((u32 *)val);
|
||||||
}
|
}
|
||||||
/* DBG_871X("HW_VAR_DM_FUNC_SET ==> SupportAbility:0x%08x\n",podmpriv->SupportAbility ); */
|
/* DBG_871X("HW_VAR_DM_FUNC_SET ==> SupportAbility:0x%08x\n",podmpriv->SupportAbility ); */
|
||||||
|
@ -2741,7 +2741,7 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8* val)
|
||||||
if (rx_gain == 0xff) {/* restore rx gain */
|
if (rx_gain == 0xff) {/* restore rx gain */
|
||||||
ODM_Write_DIG(podmpriv,pDigTable->BackupIGValue);
|
ODM_Write_DIG(podmpriv,pDigTable->BackupIGValue);
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
pDigTable->BackupIGValue = pDigTable->CurIGValue;
|
pDigTable->BackupIGValue = pDigTable->CurIGValue;
|
||||||
ODM_Write_DIG(podmpriv,rx_gain);
|
ODM_Write_DIG(podmpriv,rx_gain);
|
||||||
}
|
}
|
||||||
|
|
|
@ -574,7 +574,7 @@ static int recvbuf2recvframe(struct adapter *padapter, struct sk_buff *pskb)
|
||||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,
|
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,
|
||||||
("recvbuf2recvframe: rtw_recv_entry(precvframe) != _SUCCESS\n"));
|
("recvbuf2recvframe: rtw_recv_entry(precvframe) != _SUCCESS\n"));
|
||||||
}
|
}
|
||||||
} else{ /* pkt_rpt_type == TX_REPORT1-CCX, TX_REPORT2-TX RTP,HIS_REPORT-USB HISR RTP */
|
} else { /* pkt_rpt_type == TX_REPORT1-CCX, TX_REPORT2-TX RTP,HIS_REPORT-USB HISR RTP */
|
||||||
/* enqueue recvframe to txrtp queue */
|
/* enqueue recvframe to txrtp queue */
|
||||||
if (pattrib->pkt_rpt_type == TX_REPORT1) {
|
if (pattrib->pkt_rpt_type == TX_REPORT1) {
|
||||||
/* DBG_8192C("rx CCX\n"); */
|
/* DBG_8192C("rx CCX\n"); */
|
||||||
|
|
|
@ -1086,7 +1086,7 @@ static int rtw_wx_get_freq(struct net_device *dev,
|
||||||
wrqu->freq.i = pcur_bss->Configuration.DSConfig;
|
wrqu->freq.i = pcur_bss->Configuration.DSConfig;
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
wrqu->freq.m = rtw_ch2freq(padapter->mlmeextpriv.cur_channel) * 100000;
|
wrqu->freq.m = rtw_ch2freq(padapter->mlmeextpriv.cur_channel) * 100000;
|
||||||
wrqu->freq.e = 1;
|
wrqu->freq.e = 1;
|
||||||
wrqu->freq.i = padapter->mlmeextpriv.cur_channel;
|
wrqu->freq.i = padapter->mlmeextpriv.cur_channel;
|
||||||
|
@ -2084,7 +2084,7 @@ set_rate:
|
||||||
if (fixed == 0)
|
if (fixed == 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
datarates[i] = 0xff;
|
datarates[i] = 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5929,7 +5929,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
||||||
psta->tx_vo_cnt =0;
|
psta->tx_vo_cnt =0;
|
||||||
psta->tx_vi_cnt =0;
|
psta->tx_vi_cnt =0;
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
if (extra_arg == psta->mac_id)
|
if (extra_arg == psta->mac_id)
|
||||||
{
|
{
|
||||||
DBG_871X("=== sta's macaddr:" MAC_FMT "===\n", MAC_ARG(psta->hwaddr));
|
DBG_871X("=== sta's macaddr:" MAC_FMT "===\n", MAC_ARG(psta->hwaddr));
|
||||||
|
@ -6033,7 +6033,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
||||||
if (arg == 0xff) {
|
if (arg == 0xff) {
|
||||||
rtw_odm_dbg_comp_msg(padapter);
|
rtw_odm_dbg_comp_msg(padapter);
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
u64 dbg_comp = (u64)extra_arg;
|
u64 dbg_comp = (u64)extra_arg;
|
||||||
rtw_odm_dbg_comp_set(padapter, dbg_comp);
|
rtw_odm_dbg_comp_set(padapter, dbg_comp);
|
||||||
}
|
}
|
||||||
|
@ -6105,7 +6105,7 @@ static int rtw_dbg_port(struct net_device *dev,
|
||||||
DBG_871X("extra_arg = 5 - disable antenna diversity - BIT(4)\n");
|
DBG_871X("extra_arg = 5 - disable antenna diversity - BIT(4)\n");
|
||||||
DBG_871X("extra_arg = 6 - enable all dynamic func\n");
|
DBG_871X("extra_arg = 6 - enable all dynamic func\n");
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
/* extra_arg = 0 - disable all dynamic func
|
/* extra_arg = 0 - disable all dynamic func
|
||||||
extra_arg = 1 - disable DIG
|
extra_arg = 1 - disable DIG
|
||||||
extra_arg = 2 - disable tx power tracking
|
extra_arg = 2 - disable tx power tracking
|
||||||
|
@ -7614,7 +7614,7 @@ static int rtw_pm_set(struct net_device *dev,
|
||||||
sscanf(extra+4, "%u", &mode);
|
sscanf(extra+4, "%u", &mode);
|
||||||
ret = rtw_pm_set_ips(padapter,mode);
|
ret = rtw_pm_set_ips(padapter,mode);
|
||||||
}
|
}
|
||||||
else{
|
else {
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue