mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 14:03:05 +00:00
rtl8188eu: Replace _FALSE and _TRUE
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
17d1637977
commit
06334102cd
68 changed files with 2553 additions and 2572 deletions
166
core/rtw_recv.c
166
core/rtw_recv.c
|
@ -185,7 +185,7 @@ union recv_frame *_rtw_alloc_recvframe (_queue *pfree_recv_queue)
|
|||
struct recv_priv *precvpriv;
|
||||
_func_enter_;
|
||||
|
||||
if(_rtw_queue_empty(pfree_recv_queue) == _TRUE)
|
||||
if(_rtw_queue_empty(pfree_recv_queue) == true)
|
||||
{
|
||||
precvframe = NULL;
|
||||
}
|
||||
|
@ -354,7 +354,7 @@ _func_enter_;
|
|||
phead = get_list_head(pframequeue);
|
||||
plist = get_next(phead);
|
||||
|
||||
while(rtw_end_of_queue_search(phead, plist) == _FALSE)
|
||||
while(rtw_end_of_queue_search(phead, plist) == false)
|
||||
{
|
||||
precvframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
||||
|
||||
|
@ -422,7 +422,7 @@ struct recv_buf *rtw_dequeue_recvbuf (_queue *queue)
|
|||
|
||||
_enter_critical_ex(&queue->lock, &irqL);
|
||||
|
||||
if(_rtw_queue_empty(queue) == _TRUE)
|
||||
if(_rtw_queue_empty(queue) == true)
|
||||
{
|
||||
precvbuf = NULL;
|
||||
}
|
||||
|
@ -450,7 +450,7 @@ sint recvframe_chkmic(struct adapter *adapter, union recv_frame *precvframe){
|
|||
sint i,res=_SUCCESS;
|
||||
u32 datalen;
|
||||
u8 miccode[8];
|
||||
u8 bmic_err=_FALSE,brpt_micerror = _TRUE;
|
||||
u8 bmic_err=false,brpt_micerror = true;
|
||||
u8 *pframe, *payload,*pframemic;
|
||||
u8 *mickey;
|
||||
//u8 *iv,rxdata_key_idx=0;
|
||||
|
@ -484,7 +484,7 @@ _func_enter_;
|
|||
//DBG_871X("\n recvframe_chkmic: bcmc key psecuritypriv->dot118021XGrpKeyid(%d),pmlmeinfo->key_index(%d) ,recv key_id(%d)\n",
|
||||
// psecuritypriv->dot118021XGrpKeyid,pmlmeinfo->key_index,rxdata_key_idx);
|
||||
|
||||
if(psecuritypriv->binstallGrpkey==_FALSE)
|
||||
if(psecuritypriv->binstallGrpkey==false)
|
||||
{
|
||||
res=_FAIL;
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("\n recvframe_chkmic:didn't install group key!!!!!!!!!!\n"));
|
||||
|
@ -509,17 +509,17 @@ _func_enter_;
|
|||
|
||||
pframemic=payload+datalen;
|
||||
|
||||
bmic_err=_FALSE;
|
||||
bmic_err=false;
|
||||
|
||||
for(i=0;i<8;i++){
|
||||
if(miccode[i] != *(pframemic+i)){
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("recvframe_chkmic:miccode[%d](%02x) != *(pframemic+%d)(%02x) ",i,miccode[i],i,*(pframemic+i)));
|
||||
bmic_err=_TRUE;
|
||||
bmic_err=true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(bmic_err==_TRUE){
|
||||
if(bmic_err==true){
|
||||
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("\n *(pframemic-8)-*(pframemic-1)=0x%02x:0x%02x:0x%02x:0x%02x:0x%02x:0x%02x:0x%02x:0x%02x\n",
|
||||
*(pframemic-8),*(pframemic-7),*(pframemic-6),*(pframemic-5),*(pframemic-4),*(pframemic-3),*(pframemic-2),*(pframemic-1)));
|
||||
|
@ -546,10 +546,10 @@ _func_enter_;
|
|||
|
||||
// double check key_index for some timing issue ,
|
||||
// cannot compare with psecuritypriv->dot118021XGrpKeyid also cause timing issue
|
||||
if((IS_MCAST(prxattrib->ra)==_TRUE) && (prxattrib->key_index != pmlmeinfo->key_index ))
|
||||
brpt_micerror = _FALSE;
|
||||
if((IS_MCAST(prxattrib->ra)==true) && (prxattrib->key_index != pmlmeinfo->key_index ))
|
||||
brpt_micerror = false;
|
||||
|
||||
if((prxattrib->bdecrypted ==_TRUE)&& (brpt_micerror == _TRUE))
|
||||
if((prxattrib->bdecrypted ==true)&& (brpt_micerror == true))
|
||||
{
|
||||
rtw_handle_tkip_mic_err(adapter,(u8)IS_MCAST(prxattrib->ra));
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,(" mic error :prxattrib->bdecrypted=%d ",prxattrib->bdecrypted));
|
||||
|
@ -566,9 +566,9 @@ _func_enter_;
|
|||
}
|
||||
else{
|
||||
//mic checked ok
|
||||
if((psecuritypriv->bcheck_grpkey ==_FALSE)&&(IS_MCAST(prxattrib->ra)==_TRUE)){
|
||||
psecuritypriv->bcheck_grpkey =_TRUE;
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("psecuritypriv->bcheck_grpkey =_TRUE"));
|
||||
if((psecuritypriv->bcheck_grpkey ==false)&&(IS_MCAST(prxattrib->ra)==true)){
|
||||
psecuritypriv->bcheck_grpkey =true;
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("psecuritypriv->bcheck_grpkey =true"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -626,13 +626,13 @@ _func_enter_;
|
|||
}
|
||||
}
|
||||
|
||||
if((prxattrib->encrypt>0) && ((prxattrib->bdecrypted==0) ||(psecuritypriv->sw_decrypt==_TRUE)))
|
||||
if((prxattrib->encrypt>0) && ((prxattrib->bdecrypted==0) ||(psecuritypriv->sw_decrypt==true)))
|
||||
{
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if(!IS_MCAST(prxattrib->ra))//bc/mc packets use sw decryption for concurrent mode
|
||||
#endif
|
||||
psecuritypriv->hw_decrypted=_FALSE;
|
||||
psecuritypriv->hw_decrypted=false;
|
||||
|
||||
#ifdef DBG_RX_DECRYPTOR
|
||||
DBG_871X("prxstat->bdecrypted:%d, prxattrib->encrypt:%d, Setting psecuritypriv->hw_decrypted = %d\n"
|
||||
|
@ -664,7 +664,7 @@ _func_enter_;
|
|||
&& (psecuritypriv->busetkipkey==1 || prxattrib->encrypt !=_TKIP_ )
|
||||
)
|
||||
{
|
||||
psecuritypriv->hw_decrypted=_TRUE;
|
||||
psecuritypriv->hw_decrypted=true;
|
||||
#ifdef DBG_RX_DECRYPTOR
|
||||
DBG_871X("prxstat->bdecrypted:%d, prxattrib->encrypt:%d, Setting psecuritypriv->hw_decrypted = %d\n"
|
||||
, prxattrib->bdecrypted ,prxattrib->encrypt, psecuritypriv->hw_decrypted);
|
||||
|
@ -683,7 +683,7 @@ _func_enter_;
|
|||
|
||||
}
|
||||
else{
|
||||
prxattrib->bdecrypted = _TRUE;
|
||||
prxattrib->bdecrypted = true;
|
||||
}
|
||||
//recvframe_chkmic(adapter, precv_frame); //move to recvframme_defrag function
|
||||
|
||||
|
@ -1095,8 +1095,8 @@ sint sta2sta_data_frame(
|
|||
|
||||
_func_enter_;
|
||||
|
||||
if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == _TRUE) ||
|
||||
(check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == _TRUE))
|
||||
if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) ||
|
||||
(check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true))
|
||||
{
|
||||
|
||||
// filter packets that SA is myself or multicast or broadcast
|
||||
|
@ -1121,7 +1121,7 @@ _func_enter_;
|
|||
sta_addr = pattrib->src;
|
||||
|
||||
}
|
||||
else if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)
|
||||
else if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true)
|
||||
{
|
||||
#ifdef CONFIG_TDLS
|
||||
|
||||
|
@ -1219,7 +1219,7 @@ _func_enter_;
|
|||
}
|
||||
|
||||
}
|
||||
else if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
else if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == true)
|
||||
{
|
||||
if (bmcast)
|
||||
{
|
||||
|
@ -1241,7 +1241,7 @@ _func_enter_;
|
|||
}
|
||||
|
||||
}
|
||||
else if(check_fwstate(pmlmepriv, WIFI_MP_STATE) == _TRUE)
|
||||
else if(check_fwstate(pmlmepriv, WIFI_MP_STATE) == true)
|
||||
{
|
||||
_rtw_memcpy(pattrib->dst, GetAddr1Ptr(ptr), ETH_ALEN);
|
||||
_rtw_memcpy(pattrib->src, GetAddr2Ptr(ptr), ETH_ALEN);
|
||||
|
@ -1300,9 +1300,9 @@ sint ap2sta_data_frame(
|
|||
|
||||
_func_enter_;
|
||||
|
||||
if ((check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)
|
||||
&& (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE
|
||||
|| check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == _TRUE )
|
||||
if ((check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true)
|
||||
&& (check_fwstate(pmlmepriv, _FW_LINKED) == true
|
||||
|| check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == true )
|
||||
)
|
||||
{
|
||||
|
||||
|
@ -1379,8 +1379,8 @@ _func_enter_;
|
|||
}
|
||||
|
||||
}
|
||||
else if ((check_fwstate(pmlmepriv, WIFI_MP_STATE) == _TRUE) &&
|
||||
(check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE) )
|
||||
else if ((check_fwstate(pmlmepriv, WIFI_MP_STATE) == true) &&
|
||||
(check_fwstate(pmlmepriv, _FW_LINKED) == true) )
|
||||
{
|
||||
_rtw_memcpy(pattrib->dst, GetAddr1Ptr(ptr), ETH_ALEN);
|
||||
_rtw_memcpy(pattrib->src, GetAddr2Ptr(ptr), ETH_ALEN);
|
||||
|
@ -1404,7 +1404,7 @@ _func_enter_;
|
|||
|
||||
|
||||
}
|
||||
else if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
else if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true)
|
||||
{
|
||||
/* Special case */
|
||||
ret = RTW_RX_HANDLED;
|
||||
|
@ -1455,7 +1455,7 @@ sint sta2ap_data_frame(
|
|||
|
||||
_func_enter_;
|
||||
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true)
|
||||
{
|
||||
//For AP mode, RA=BSSID, TX=STA(SRC_ADDR), A3=DST_ADDR
|
||||
if(!_rtw_memcmp(pattrib->bssid, mybssid, ETH_ALEN))
|
||||
|
@ -1593,7 +1593,7 @@ sint validate_recv_ctrl_frame(struct adapter *padapter, union recv_frame *precv_
|
|||
xmitframe_phead = get_list_head(&psta->sleep_q);
|
||||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
if ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE)
|
||||
if ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == false)
|
||||
{
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
|
||||
|
@ -1620,7 +1620,7 @@ sint validate_recv_ctrl_frame(struct adapter *padapter, union recv_frame *precv_
|
|||
|
||||
//upate BCN for TIM IE
|
||||
//update_BCNTIM(padapter);
|
||||
update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
|
||||
update_beacon(padapter, _TIM_IE_, NULL, false);
|
||||
}
|
||||
|
||||
//_exit_critical_bh(&psta->sleep_q.lock, &irqL);
|
||||
|
@ -1652,7 +1652,7 @@ sint validate_recv_ctrl_frame(struct adapter *padapter, union recv_frame *precv_
|
|||
|
||||
//upate BCN for TIM IE
|
||||
//update_BCNTIM(padapter);
|
||||
update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
|
||||
update_beacon(padapter, _TIM_IE_, NULL, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1691,7 +1691,7 @@ sint validate_recv_mgnt_frame(struct adapter *padapter, union recv_frame *precv_
|
|||
else if (GetFrameSubType(precv_frame->u.hdr.rx_data) == WIFI_PROBEREQ)
|
||||
psta->sta_stats.rx_probereq_pkts++;
|
||||
else if (GetFrameSubType(precv_frame->u.hdr.rx_data) == WIFI_PROBERSP) {
|
||||
if (_rtw_memcmp(padapter->eeprompriv.mac_addr, GetAddr1Ptr(precv_frame->u.hdr.rx_data), ETH_ALEN) == _TRUE)
|
||||
if (_rtw_memcmp(padapter->eeprompriv.mac_addr, GetAddr1Ptr(precv_frame->u.hdr.rx_data), ETH_ALEN) == true)
|
||||
psta->sta_stats.rx_probersp_pkts++;
|
||||
else if (is_broadcast_mac_addr(GetAddr1Ptr(precv_frame->u.hdr.rx_data))
|
||||
|| is_multicast_mac_addr(GetAddr1Ptr(precv_frame->u.hdr.rx_data)))
|
||||
|
@ -1703,7 +1703,7 @@ sint validate_recv_mgnt_frame(struct adapter *padapter, union recv_frame *precv_
|
|||
}
|
||||
|
||||
#ifdef CONFIG_INTEL_PROXIM
|
||||
if(padapter->proximity.proxim_on==_TRUE)
|
||||
if(padapter->proximity.proxim_on==true)
|
||||
{
|
||||
struct rx_pkt_attrib * pattrib=&precv_frame->u.hdr.attrib;
|
||||
struct recv_stat* prxstat=( struct recv_stat * ) precv_frame->u.hdr.rx_head ;
|
||||
|
@ -1862,7 +1862,7 @@ _func_enter_;
|
|||
|
||||
if(pattrib->priority!=0 && pattrib->priority!=3)
|
||||
{
|
||||
adapter->recvpriv.bIsAnyNonBEPkts = _TRUE;
|
||||
adapter->recvpriv.bIsAnyNonBEPkts = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -1935,7 +1935,7 @@ static sint validate_80211w_mgmt(struct adapter *adapter, union recv_frame *prec
|
|||
|
||||
//only support station mode
|
||||
if(check_fwstate(pmlmepriv, WIFI_STATION_STATE) && check_fwstate(pmlmepriv, _FW_LINKED)
|
||||
&& adapter->securitypriv.binstallBIPkey == _TRUE)
|
||||
&& adapter->securitypriv.binstallBIPkey == true)
|
||||
{
|
||||
//unicast management frame decrypt
|
||||
if(pattrib->privacy && !(IS_MCAST(GetAddr1Ptr(ptr))) &&
|
||||
|
@ -2280,16 +2280,16 @@ _func_enter_;
|
|||
/* convert hdr + possible LLC headers into Ethernet header */
|
||||
//eth_type = (psnap_type[0] << 8) | psnap_type[1];
|
||||
if((_rtw_memcmp(psnap, rtw_rfc1042_header, SNAP_SIZE) &&
|
||||
(_rtw_memcmp(psnap_type, SNAP_ETH_TYPE_IPX, 2) == _FALSE) &&
|
||||
(_rtw_memcmp(psnap_type, SNAP_ETH_TYPE_APPLETALK_AARP, 2)==_FALSE) )||
|
||||
(_rtw_memcmp(psnap_type, SNAP_ETH_TYPE_IPX, 2) == false) &&
|
||||
(_rtw_memcmp(psnap_type, SNAP_ETH_TYPE_APPLETALK_AARP, 2)==false) )||
|
||||
//eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) ||
|
||||
_rtw_memcmp(psnap, rtw_bridge_tunnel_header, SNAP_SIZE)){
|
||||
/* remove RFC1042 or Bridge-Tunnel encapsulation and replace EtherType */
|
||||
bsnaphdr = _TRUE;
|
||||
bsnaphdr = true;
|
||||
}
|
||||
else {
|
||||
/* Leave Ethernet header part of hdr and full payload */
|
||||
bsnaphdr = _FALSE;
|
||||
bsnaphdr = false;
|
||||
}
|
||||
|
||||
rmv_len = pattrib->hdrlen + pattrib->iv_len +(bsnaphdr?SNAP_SIZE:0);
|
||||
|
@ -2301,7 +2301,7 @@ _func_enter_;
|
|||
eth_type= ntohs((unsigned short )eth_type); //pattrib->ether_type
|
||||
pattrib->eth_type = eth_type;
|
||||
|
||||
if ((check_fwstate(pmlmepriv, WIFI_MP_STATE) == _TRUE))
|
||||
if ((check_fwstate(pmlmepriv, WIFI_MP_STATE) == true))
|
||||
{
|
||||
ptr += rmv_len ;
|
||||
*ptr = 0x87;
|
||||
|
@ -2355,12 +2355,12 @@ _func_enter_;
|
|||
if (psnap->dsap==0xaa && psnap->ssap==0xaa && psnap->ctrl==0x03)
|
||||
{
|
||||
if (_rtw_memcmp(psnap->oui, oui_rfc1042, WLAN_IEEE_OUI_LEN))
|
||||
bsnaphdr=_TRUE;//wlan_pkt_format = WLAN_PKT_FORMAT_SNAP_RFC1042;
|
||||
bsnaphdr=true;//wlan_pkt_format = WLAN_PKT_FORMAT_SNAP_RFC1042;
|
||||
else if (_rtw_memcmp(psnap->oui, SNAP_HDR_APPLETALK_DDP, WLAN_IEEE_OUI_LEN) &&
|
||||
_rtw_memcmp(psnap_type, SNAP_ETH_TYPE_APPLETALK_DDP, 2) )
|
||||
bsnaphdr=_TRUE; //wlan_pkt_format = WLAN_PKT_FORMAT_APPLETALK;
|
||||
bsnaphdr=true; //wlan_pkt_format = WLAN_PKT_FORMAT_APPLETALK;
|
||||
else if (_rtw_memcmp( psnap->oui, oui_8021h, WLAN_IEEE_OUI_LEN))
|
||||
bsnaphdr=_TRUE; //wlan_pkt_format = WLAN_PKT_FORMAT_SNAP_TUNNEL;
|
||||
bsnaphdr=true; //wlan_pkt_format = WLAN_PKT_FORMAT_SNAP_TUNNEL;
|
||||
else {
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_err_,("drop pkt due to invalid frame format!\n"));
|
||||
ret= _FAIL;
|
||||
|
@ -2368,12 +2368,12 @@ _func_enter_;
|
|||
}
|
||||
|
||||
} else
|
||||
bsnaphdr=_FALSE;//wlan_pkt_format = WLAN_PKT_FORMAT_OTHERS;
|
||||
bsnaphdr=false;//wlan_pkt_format = WLAN_PKT_FORMAT_OTHERS;
|
||||
|
||||
rmv_len = pattrib->hdrlen + pattrib->iv_len +(bsnaphdr?SNAP_SIZE:0);
|
||||
RT_TRACE(_module_rtl871x_recv_c_,_drv_info_,("===pattrib->hdrlen: %x, pattrib->iv_len:%x ===\n", pattrib->hdrlen, pattrib->iv_len));
|
||||
|
||||
if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == _TRUE)
|
||||
if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == true)
|
||||
{
|
||||
ptr += rmv_len ;
|
||||
*ptr = 0x87;
|
||||
|
@ -2502,7 +2502,7 @@ _func_enter_;
|
|||
|
||||
data=get_recvframe_data(prframe);
|
||||
|
||||
while(rtw_end_of_queue_search(phead, plist) == _FALSE)
|
||||
while(rtw_end_of_queue_search(phead, plist) == false)
|
||||
{
|
||||
pnextrframe = LIST_CONTAINOR(plist, union recv_frame , u);
|
||||
pnfhdr=&pnextrframe->u.hdr;
|
||||
|
@ -2604,7 +2604,7 @@ _func_enter_;
|
|||
if(fragnum==0)
|
||||
{
|
||||
//the first fragment
|
||||
if(_rtw_queue_empty(pdefrag_q) == _FALSE)
|
||||
if(_rtw_queue_empty(pdefrag_q) == false)
|
||||
{
|
||||
//free current defrag_q
|
||||
rtw_free_recvframe_queue(pdefrag_q, pfree_recv_queue);
|
||||
|
@ -2825,7 +2825,7 @@ int amsdu_to_msdu(struct adapter *padapter, union recv_frame *prframe)
|
|||
#endif // (LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 35))
|
||||
|
||||
|
||||
if( br_port && (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == _TRUE) )
|
||||
if( br_port && (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == true) )
|
||||
{
|
||||
int nat25_handle_frame(struct adapter *priv, struct sk_buff *skb);
|
||||
if (nat25_handle_frame(padapter, sub_skb) == -1) {
|
||||
|
@ -2899,7 +2899,7 @@ int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_num)
|
|||
#endif
|
||||
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -2934,7 +2934,7 @@ int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, u16 seq_num)
|
|||
|
||||
//DbgPrint("exit->check_indicate_seq(): IndicateSeq: %d, NewSeq: %d\n", precvpriv->indicate_seq, seq_num);
|
||||
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, union recv_frame *prframe);
|
||||
|
@ -2955,7 +2955,7 @@ int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, union rec
|
|||
phead = get_list_head(ppending_recvframe_queue);
|
||||
plist = get_next(phead);
|
||||
|
||||
while(rtw_end_of_queue_search(phead, plist) == _FALSE)
|
||||
while(rtw_end_of_queue_search(phead, plist) == false)
|
||||
{
|
||||
pnextrframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
||||
pnextattrib = &pnextrframe->u.hdr.attrib;
|
||||
|
@ -2971,7 +2971,7 @@ int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, union rec
|
|||
|
||||
//_exit_critical_ex(&ppending_recvframe_queue->lock, &irql);
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2995,7 +2995,7 @@ int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, union rec
|
|||
|
||||
|
||||
//RT_TRACE(COMP_RX_REORDER, DBG_TRACE, ("InsertRxReorderList(): Pkt insert into buffer!! IndicateSeq: %d, NewSeq: %d\n", pTS->RxIndicateSeq, SeqNum));
|
||||
return _TRUE;
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
|
@ -3008,7 +3008,7 @@ int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reorder_ctr
|
|||
union recv_frame *prframe;
|
||||
struct rx_pkt_attrib *pattrib;
|
||||
//u8 index = 0;
|
||||
int bPktInBuf = _FALSE;
|
||||
int bPktInBuf = false;
|
||||
struct recv_priv *precvpriv = &padapter->recvpriv;
|
||||
_queue *ppending_recvframe_queue = &preorder_ctrl->pending_recvframe_queue;
|
||||
|
||||
|
@ -3021,13 +3021,13 @@ int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reorder_ctr
|
|||
plist = get_next(phead);
|
||||
|
||||
// Handling some condition for forced indicate case.
|
||||
if(bforced==_TRUE)
|
||||
if(bforced==true)
|
||||
{
|
||||
if(rtw_is_list_empty(phead))
|
||||
{
|
||||
// _exit_critical_ex(&ppending_recvframe_queue->lock, &irql);
|
||||
//_rtw_spinunlock_ex(&ppending_recvframe_queue->lock);
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
prframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
||||
|
@ -3077,8 +3077,8 @@ int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reorder_ctr
|
|||
{
|
||||
//DBG_871X("recv_indicatepkts_in_order, amsdu!=1, indicate_seq=%d, seq_num=%d\n", preorder_ctrl->indicate_seq, pattrib->seq_num);
|
||||
|
||||
if ((padapter->bDriverStopped == _FALSE) &&
|
||||
(padapter->bSurpriseRemoved == _FALSE))
|
||||
if ((padapter->bDriverStopped == false) &&
|
||||
(padapter->bSurpriseRemoved == false))
|
||||
{
|
||||
|
||||
rtw_recv_indicatepkt(padapter, prframe);//indicate this recv_frame
|
||||
|
@ -3099,12 +3099,12 @@ int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reorder_ctr
|
|||
|
||||
|
||||
//Update local variables.
|
||||
bPktInBuf = _FALSE;
|
||||
bPktInBuf = false;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
bPktInBuf = _TRUE;
|
||||
bPktInBuf = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -3132,7 +3132,7 @@ int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reorder_ctr
|
|||
*/
|
||||
//_exit_critical_ex(&ppending_recvframe_queue->lock, &irql);
|
||||
|
||||
//return _TRUE;
|
||||
//return true;
|
||||
return bPktInBuf;
|
||||
|
||||
}
|
||||
|
@ -3155,8 +3155,8 @@ int recv_indicatepkt_reorder(struct adapter *padapter, union recv_frame *prframe
|
|||
// || (pattrib->eth_type==0x0806) || (pattrib->ack_policy!=0))
|
||||
if (pattrib->qos!=1)
|
||||
{
|
||||
if ((padapter->bDriverStopped == _FALSE) &&
|
||||
(padapter->bSurpriseRemoved == _FALSE))
|
||||
if ((padapter->bDriverStopped == false) &&
|
||||
(padapter->bSurpriseRemoved == false))
|
||||
{
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_notice_, ("@@@@ recv_indicatepkt_reorder -recv_func recv_indicatepkt\n" ));
|
||||
|
||||
|
@ -3173,7 +3173,7 @@ int recv_indicatepkt_reorder(struct adapter *padapter, union recv_frame *prframe
|
|||
|
||||
}
|
||||
|
||||
if (preorder_ctrl->enable == _FALSE)
|
||||
if (preorder_ctrl->enable == false)
|
||||
{
|
||||
//indicate this recv_frame
|
||||
preorder_ctrl->indicate_seq = pattrib->seq_num;
|
||||
|
@ -3202,7 +3202,7 @@ int recv_indicatepkt_reorder(struct adapter *padapter, union recv_frame *prframe
|
|||
}
|
||||
else if(pattrib->amsdu==1) //temp filter -> means didn't support A-MSDUs in a A-MPDU
|
||||
{
|
||||
if (preorder_ctrl->enable == _FALSE)
|
||||
if (preorder_ctrl->enable == false)
|
||||
{
|
||||
preorder_ctrl->indicate_seq = pattrib->seq_num;
|
||||
#ifdef DBG_RX_SEQ
|
||||
|
@ -3277,8 +3277,8 @@ int recv_indicatepkt_reorder(struct adapter *padapter, union recv_frame *prframe
|
|||
// 2. All packets with SeqNum larger than or equal to WinStart => Buffer it.
|
||||
//
|
||||
|
||||
//recv_indicatepkts_in_order(padapter, preorder_ctrl, _TRUE);
|
||||
if(recv_indicatepkts_in_order(padapter, preorder_ctrl, _FALSE)==_TRUE)
|
||||
//recv_indicatepkts_in_order(padapter, preorder_ctrl, true);
|
||||
if(recv_indicatepkts_in_order(padapter, preorder_ctrl, false)==true)
|
||||
{
|
||||
_set_timer(&preorder_ctrl->reordering_ctrl_timer, REORDER_WAIT_TIME);
|
||||
_exit_critical_bh(&ppending_recvframe_queue->lock, &irql);
|
||||
|
@ -3319,7 +3319,7 @@ void rtw_reordering_ctrl_timeout_handler(void *pcontext)
|
|||
|
||||
_enter_critical_bh(&ppending_recvframe_queue->lock, &irql);
|
||||
|
||||
if(recv_indicatepkts_in_order(padapter, preorder_ctrl, _TRUE)==_TRUE)
|
||||
if(recv_indicatepkts_in_order(padapter, preorder_ctrl, true)==true)
|
||||
{
|
||||
_set_timer(&preorder_ctrl->reordering_ctrl_timer, REORDER_WAIT_TIME);
|
||||
}
|
||||
|
@ -3344,12 +3344,12 @@ int process_recv_indicatepkts(struct adapter *padapter, union recv_frame *prfram
|
|||
struct ht_priv *phtpriv = &pmlmepriv->htpriv;
|
||||
|
||||
#ifdef CONFIG_TDLS
|
||||
if( (phtpriv->ht_option==_TRUE) ||
|
||||
if( (phtpriv->ht_option==true) ||
|
||||
((psta->tdls_sta_state & TDLS_LINKED_STATE) &&
|
||||
(psta->htpriv.ht_option==_TRUE) &&
|
||||
(psta->htpriv.ampdu_enable==_TRUE))) //B/G/N Mode
|
||||
(psta->htpriv.ht_option==true) &&
|
||||
(psta->htpriv.ampdu_enable==true))) //B/G/N Mode
|
||||
#else
|
||||
if(phtpriv->ht_option==_TRUE) //B/G/N Mode
|
||||
if(phtpriv->ht_option==true) //B/G/N Mode
|
||||
#endif //CONFIG_TDLS
|
||||
{
|
||||
//prframe->u.hdr.preorder_ctrl = &precvpriv->recvreorder_ctrl[pattrib->priority];
|
||||
|
@ -3360,8 +3360,8 @@ int process_recv_indicatepkts(struct adapter *padapter, union recv_frame *prfram
|
|||
DBG_871X("DBG_RX_DROP_FRAME %s recv_indicatepkt_reorder error!\n", __FUNCTION__);
|
||||
#endif
|
||||
|
||||
if ((padapter->bDriverStopped == _FALSE) &&
|
||||
(padapter->bSurpriseRemoved == _FALSE))
|
||||
if ((padapter->bDriverStopped == false) &&
|
||||
(padapter->bSurpriseRemoved == false))
|
||||
{
|
||||
retval = _FAIL;
|
||||
return retval;
|
||||
|
@ -3381,7 +3381,7 @@ int process_recv_indicatepkts(struct adapter *padapter, union recv_frame *prfram
|
|||
return retval;
|
||||
}
|
||||
|
||||
if ((padapter->bDriverStopped ==_FALSE)&&( padapter->bSurpriseRemoved==_FALSE))
|
||||
if ((padapter->bDriverStopped ==false)&&( padapter->bSurpriseRemoved==false))
|
||||
{
|
||||
//indicate this recv_frame
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_notice_, ("@@@@ process_recv_indicatepkts- recv_func recv_indicatepkt\n" ));
|
||||
|
@ -3522,7 +3522,7 @@ int recv_func_posthandle(struct adapter *padapter, union recv_frame *prframe)
|
|||
goto _recv_data_drop;
|
||||
}
|
||||
|
||||
if ((padapter->bDriverStopped == _FALSE) && (padapter->bSurpriseRemoved == _FALSE))
|
||||
if ((padapter->bDriverStopped == false) && (padapter->bSurpriseRemoved == false))
|
||||
{
|
||||
RT_TRACE(_module_rtl871x_recv_c_, _drv_alert_, ("@@@@ recv_func: recv_func rtw_recv_indicatepkt\n" ));
|
||||
//indicate this recv_frame
|
||||
|
@ -3611,7 +3611,7 @@ int recv_func(struct adapter *padapter, union recv_frame *rframe)
|
|||
/* check if need to enqueue into uc_swdec_pending_queue*/
|
||||
if (check_fwstate(mlmepriv, WIFI_STATION_STATE) &&
|
||||
!IS_MCAST(prxattrib->ra) && prxattrib->encrypt>0 &&
|
||||
(prxattrib->bdecrypted == 0 ||psecuritypriv->sw_decrypt == _TRUE) &&
|
||||
(prxattrib->bdecrypted == 0 ||psecuritypriv->sw_decrypt == true) &&
|
||||
psecuritypriv->ndisauthtype == Ndis802_11AuthModeWPAPSK &&
|
||||
!psecuritypriv->busetkipkey)
|
||||
{
|
||||
|
@ -3707,21 +3707,21 @@ void rtw_signal_stat_timer_hdl(RTW_TIMER_HDL_ARGS){
|
|||
if (rtw_get_on_cur_ch_time(adapter) == 0
|
||||
|| rtw_get_passing_time_ms(rtw_get_on_cur_ch_time(adapter)) < 2 * adapter->mlmeextpriv.mlmext_info.bcn_interval
|
||||
#ifdef CONFIG_BT_COEXIST
|
||||
|| ((BTDM_IsBtDisabled(adapter) == _FALSE) && (BT_IsBtInquiryPage(adapter) == _TRUE))
|
||||
|| ((BTDM_IsBtDisabled(adapter) == false) && (BT_IsBtInquiryPage(adapter) == true))
|
||||
#endif
|
||||
) {
|
||||
goto set_timer;
|
||||
}
|
||||
}
|
||||
|
||||
if(check_fwstate(&adapter->mlmepriv, _FW_UNDER_SURVEY) == _TRUE
|
||||
|| check_fwstate(&adapter->mlmepriv, _FW_LINKED) == _FALSE
|
||||
if(check_fwstate(&adapter->mlmepriv, _FW_UNDER_SURVEY) == true
|
||||
|| check_fwstate(&adapter->mlmepriv, _FW_LINKED) == false
|
||||
) {
|
||||
goto set_timer;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if (check_buddy_fwstate(adapter, _FW_UNDER_SURVEY) == _TRUE)
|
||||
if (check_buddy_fwstate(adapter, _FW_UNDER_SURVEY) == true)
|
||||
goto set_timer;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue