mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 05:53:06 +00:00
rtl8188eu: Change _FALSE and _TRUE to false and true
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
3d0ee1321a
commit
9cef34aa09
69 changed files with 2493 additions and 3604 deletions
166
core/rtw_xmit.c
166
core/rtw_xmit.c
|
@ -181,7 +181,7 @@ _func_enter_;
|
|||
|
||||
pxmitbuf->priv_data = NULL;
|
||||
pxmitbuf->padapter = padapter;
|
||||
pxmitbuf->ext_tag = _FALSE;
|
||||
pxmitbuf->ext_tag = false;
|
||||
|
||||
/*
|
||||
pxmitbuf->pallocated_buf = rtw_zmalloc(MAX_XMITBUF_SZ + XMITBUF_ALIGN_SZ);
|
||||
|
@ -244,7 +244,7 @@ _func_enter_;
|
|||
|
||||
pxmitbuf->priv_data = NULL;
|
||||
pxmitbuf->padapter = padapter;
|
||||
pxmitbuf->ext_tag = _TRUE;
|
||||
pxmitbuf->ext_tag = true;
|
||||
|
||||
/*
|
||||
pxmitbuf->pallocated_buf = rtw_zmalloc(max_xmit_extbuf_size);
|
||||
|
@ -301,7 +301,7 @@ _func_enter_;
|
|||
|
||||
|
||||
#ifdef CONFIG_XMIT_ACK
|
||||
pxmitpriv->ack_tx = _FALSE;
|
||||
pxmitpriv->ack_tx = false;
|
||||
_rtw_mutex_init(&pxmitpriv->ack_tx_mutex);
|
||||
rtw_sctx_init(&pxmitpriv->ack_tx_ops, 0);
|
||||
#endif
|
||||
|
@ -457,10 +457,10 @@ static void update_attrib_vcs_info(_adapter *padapter, struct xmit_frame *pxmitf
|
|||
}
|
||||
else
|
||||
{
|
||||
while (_TRUE)
|
||||
while (true)
|
||||
{
|
||||
//IOT action
|
||||
if ((pmlmeinfo->assoc_AP_vendor == HT_IOT_PEER_ATHEROS) && (pattrib->ampdu_en==_TRUE) &&
|
||||
if ((pmlmeinfo->assoc_AP_vendor == HT_IOT_PEER_ATHEROS) && (pattrib->ampdu_en==true) &&
|
||||
(padapter->securitypriv.dot11PrivacyAlgrthm == _AES_ ))
|
||||
{
|
||||
pattrib->vcs_mode = CTS_TO_SELF;
|
||||
|
@ -501,7 +501,7 @@ static void update_attrib_vcs_info(_adapter *padapter, struct xmit_frame *pxmitf
|
|||
//to do list: check MIMO power save condition.
|
||||
|
||||
//check AMPDU aggregation for TXOP
|
||||
if (pattrib->ampdu_en==_TRUE)
|
||||
if (pattrib->ampdu_en==true)
|
||||
{
|
||||
pattrib->vcs_mode = RTS_CTS;
|
||||
break;
|
||||
|
@ -535,16 +535,16 @@ static void update_attrib_phy_info(struct pkt_attrib *pattrib, struct sta_info *
|
|||
pattrib->bwmode = psta->htpriv.bwmode;
|
||||
pattrib->ch_offset = psta->htpriv.ch_offset;
|
||||
pattrib->sgi= psta->htpriv.sgi;
|
||||
pattrib->ampdu_en = _FALSE;
|
||||
pattrib->ampdu_en = false;
|
||||
#endif //CONFIG_80211N_HT
|
||||
//if (pattrib->ht_en && psta->htpriv.ampdu_enable)
|
||||
//{
|
||||
// if (psta->htpriv.agg_enable_bitmap & BIT(pattrib->priority))
|
||||
// pattrib->ampdu_en = _TRUE;
|
||||
// pattrib->ampdu_en = true;
|
||||
//}
|
||||
|
||||
|
||||
pattrib->retry_ctrl = _FALSE;
|
||||
pattrib->retry_ctrl = false;
|
||||
|
||||
}
|
||||
|
||||
|
@ -633,8 +633,8 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
|
|||
|
||||
pattrib->pctrl = 0;
|
||||
|
||||
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)) {
|
||||
_rtw_memcpy(pattrib->ra, pattrib->dst, ETH_ALEN);
|
||||
_rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
|
||||
}
|
||||
|
@ -712,7 +712,7 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
|
|||
res =_FAIL;
|
||||
goto exit;
|
||||
}
|
||||
else if ((check_fwstate(pmlmepriv, WIFI_AP_STATE)==_TRUE)&&(!(psta->state & _FW_LINKED)))
|
||||
else if ((check_fwstate(pmlmepriv, WIFI_AP_STATE)==true)&&(!(psta->state & _FW_LINKED)))
|
||||
{
|
||||
res =_FAIL;
|
||||
goto exit;
|
||||
|
@ -764,17 +764,17 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
|
|||
|
||||
//pattrib->priority = 5; //force to used VI queue, for testing
|
||||
|
||||
if (psta->ieee8021x_blocked == _TRUE)
|
||||
if (psta->ieee8021x_blocked == true)
|
||||
{
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("\n psta->ieee8021x_blocked == _TRUE\n"));
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("\n psta->ieee8021x_blocked == true\n"));
|
||||
|
||||
pattrib->encrypt = 0;
|
||||
|
||||
if ((pattrib->ether_type != 0x888e) && (check_fwstate(pmlmepriv, WIFI_MP_STATE) == _FALSE))
|
||||
if ((pattrib->ether_type != 0x888e) && (check_fwstate(pmlmepriv, WIFI_MP_STATE) == false))
|
||||
{
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("\npsta->ieee8021x_blocked == _TRUE, pattrib->ether_type(%.4x) != 0x888e\n",pattrib->ether_type));
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("\npsta->ieee8021x_blocked == true, pattrib->ether_type(%.4x) != 0x888e\n",pattrib->ether_type));
|
||||
#ifdef DBG_TX_DROP_FRAME
|
||||
DBG_88E("DBG_TX_DROP_FRAME %s psta->ieee8021x_blocked == _TRUE, pattrib->ether_type(%04x) != 0x888e\n", __func__,pattrib->ether_type);
|
||||
DBG_88E("DBG_TX_DROP_FRAME %s psta->ieee8021x_blocked == true, pattrib->ether_type(%04x) != 0x888e\n", __func__,pattrib->ether_type);
|
||||
#endif
|
||||
res = _FAIL;
|
||||
goto exit;
|
||||
|
@ -857,27 +857,27 @@ static s32 update_attrib(_adapter *padapter, _pkt *pkt, struct pkt_attrib *pattr
|
|||
pattrib->encrypt, padapter->securitypriv.sw_encrypt));
|
||||
|
||||
if (pattrib->encrypt &&
|
||||
((padapter->securitypriv.sw_encrypt == _TRUE) || (psecuritypriv->hw_decrypted == _FALSE)))
|
||||
((padapter->securitypriv.sw_encrypt == true) || (psecuritypriv->hw_decrypted == false)))
|
||||
{
|
||||
pattrib->bswenc = _TRUE;
|
||||
pattrib->bswenc = true;
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,
|
||||
("update_attrib: encrypt=%d securitypriv.hw_decrypted=%d bswenc=_TRUE\n",
|
||||
("update_attrib: encrypt=%d securitypriv.hw_decrypted=%d bswenc=true\n",
|
||||
pattrib->encrypt, padapter->securitypriv.sw_encrypt));
|
||||
} else {
|
||||
pattrib->bswenc = _FALSE;
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("update_attrib: bswenc=_FALSE\n"));
|
||||
pattrib->bswenc = false;
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("update_attrib: bswenc=false\n"));
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if ((pattrib->encrypt && bmcast) || (pattrib->encrypt ==_WEP40_) || (pattrib->encrypt ==_WEP104_))
|
||||
{
|
||||
pattrib->bswenc = _TRUE;//force using sw enc.
|
||||
pattrib->bswenc = true;//force using sw enc.
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_WAPI_SUPPORT
|
||||
if (pattrib->encrypt == _SMS4_)
|
||||
pattrib->bswenc = _FALSE;
|
||||
pattrib->bswenc = false;
|
||||
#endif
|
||||
|
||||
rtw_set_tx_chksum_offload(pkt, pattrib);
|
||||
|
@ -936,7 +936,7 @@ _func_enter_;
|
|||
|
||||
if (bmcst)
|
||||
{
|
||||
if (_rtw_memcmp(psecuritypriv->dot118021XGrptxmickey[psecuritypriv->dot118021XGrpKeyid].skey, null_key, 16)==_TRUE){
|
||||
if (_rtw_memcmp(psecuritypriv->dot118021XGrptxmickey[psecuritypriv->dot118021XGrpKeyid].skey, null_key, 16)==true){
|
||||
//DbgPrint("\nxmitframe_addmic:stainfo->dot11tkiptxmickey==0\n");
|
||||
//rtw_msleep_os(10);
|
||||
return _FAIL;
|
||||
|
@ -946,7 +946,7 @@ _func_enter_;
|
|||
}
|
||||
else
|
||||
{
|
||||
if (_rtw_memcmp(&stainfo->dot11tkiptxmickey.skey[0],null_key, 16)==_TRUE){
|
||||
if (_rtw_memcmp(&stainfo->dot11tkiptxmickey.skey[0],null_key, 16)==true){
|
||||
//DbgPrint("\nxmitframe_addmic:stainfo->dot11tkiptxmickey==0\n");
|
||||
//rtw_msleep_os(10);
|
||||
return _FAIL;
|
||||
|
@ -1074,7 +1074,7 @@ s32 rtw_make_wlanhdr (_adapter *padapter , u8 *hdr, struct pkt_attrib *pattrib)
|
|||
struct rtw_ieee80211_hdr *pwlanhdr = (struct rtw_ieee80211_hdr *)hdr;
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct qos_priv *pqospriv = &pmlmepriv->qospriv;
|
||||
u8 qos_option = _FALSE;
|
||||
u8 qos_option = false;
|
||||
#ifdef CONFIG_TDLS
|
||||
struct tdls_info *ptdlsinfo = &padapter->tdlsinfo;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
|
@ -1107,7 +1107,7 @@ _func_enter_;
|
|||
|
||||
if (pattrib->subtype & WIFI_DATA_TYPE)
|
||||
{
|
||||
if ((check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)) {
|
||||
if ((check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true)) {
|
||||
//to_ds = 1, fr_ds = 0;
|
||||
#ifdef CONFIG_TDLS
|
||||
if ((ptdlsinfo->setup_state == TDLS_LINKED_STATE)){
|
||||
|
@ -1137,10 +1137,10 @@ _func_enter_;
|
|||
}
|
||||
|
||||
if (pqospriv->qos_option)
|
||||
qos_option = _TRUE;
|
||||
qos_option = true;
|
||||
|
||||
}
|
||||
else if ((check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE) ) {
|
||||
else if ((check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) ) {
|
||||
//to_ds = 0, fr_ds = 1;
|
||||
SetFrDs(fctrl);
|
||||
_rtw_memcpy(pwlanhdr->addr1, pattrib->dst, ETH_ALEN);
|
||||
|
@ -1148,16 +1148,16 @@ _func_enter_;
|
|||
_rtw_memcpy(pwlanhdr->addr3, pattrib->src, ETH_ALEN);
|
||||
|
||||
if (psta->qos_option)
|
||||
qos_option = _TRUE;
|
||||
qos_option = true;
|
||||
}
|
||||
else if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == _TRUE) ||
|
||||
(check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == _TRUE)) {
|
||||
else if ((check_fwstate(pmlmepriv, WIFI_ADHOC_STATE) == true) ||
|
||||
(check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) == true)) {
|
||||
_rtw_memcpy(pwlanhdr->addr1, pattrib->dst, ETH_ALEN);
|
||||
_rtw_memcpy(pwlanhdr->addr2, pattrib->src, ETH_ALEN);
|
||||
_rtw_memcpy(pwlanhdr->addr3, get_bssid(pmlmepriv), ETH_ALEN);
|
||||
|
||||
if (psta->qos_option)
|
||||
qos_option = _TRUE;
|
||||
qos_option = true;
|
||||
}
|
||||
else {
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_err_,("fw_state:%x is not allowed to xmit frame\n", get_fwstate(pmlmepriv)));
|
||||
|
@ -1208,11 +1208,11 @@ _func_enter_;
|
|||
if (pattrib->ht_en && psta->htpriv.ampdu_enable)
|
||||
{
|
||||
if (psta->htpriv.agg_enable_bitmap & BIT(pattrib->priority))
|
||||
pattrib->ampdu_en = _TRUE;
|
||||
pattrib->ampdu_en = true;
|
||||
}
|
||||
|
||||
//re-check if enable ampdu by BA_starting_seqctrl
|
||||
if (pattrib->ampdu_en == _TRUE)
|
||||
if (pattrib->ampdu_en == true)
|
||||
{
|
||||
u16 tx_seq;
|
||||
|
||||
|
@ -1222,19 +1222,19 @@ _func_enter_;
|
|||
if (SN_LESS(pattrib->seqnum, tx_seq))
|
||||
{
|
||||
//DBG_88E("tx ampdu seqnum(%d) < tx_seq(%d)\n", pattrib->seqnum, tx_seq);
|
||||
pattrib->ampdu_en = _FALSE;//AGG BK
|
||||
pattrib->ampdu_en = false;//AGG BK
|
||||
}
|
||||
else if (SN_EQUAL(pattrib->seqnum, tx_seq))
|
||||
{
|
||||
psta->BA_starting_seqctrl[pattrib->priority & 0x0f] = (tx_seq+1)&0xfff;
|
||||
|
||||
pattrib->ampdu_en = _TRUE;//AGG EN
|
||||
pattrib->ampdu_en = true;//AGG EN
|
||||
}
|
||||
else
|
||||
{
|
||||
//DBG_88E("tx ampdu over run\n");
|
||||
psta->BA_starting_seqctrl[pattrib->priority & 0x0f] = (pattrib->seqnum+1)&0xfff;
|
||||
pattrib->ampdu_en = _TRUE;//AGG EN
|
||||
pattrib->ampdu_en = true;//AGG EN
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1284,10 +1284,10 @@ s32 rtw_txframes_pending(_adapter *padapter)
|
|||
{
|
||||
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
||||
|
||||
return ((_rtw_queue_empty(&pxmitpriv->be_pending) == _FALSE) ||
|
||||
(_rtw_queue_empty(&pxmitpriv->bk_pending) == _FALSE) ||
|
||||
(_rtw_queue_empty(&pxmitpriv->vi_pending) == _FALSE) ||
|
||||
(_rtw_queue_empty(&pxmitpriv->vo_pending) == _FALSE));
|
||||
return ((_rtw_queue_empty(&pxmitpriv->be_pending) == false) ||
|
||||
(_rtw_queue_empty(&pxmitpriv->bk_pending) == false) ||
|
||||
(_rtw_queue_empty(&pxmitpriv->vi_pending) == false) ||
|
||||
(_rtw_queue_empty(&pxmitpriv->vo_pending) == false));
|
||||
}
|
||||
|
||||
s32 rtw_txframes_sta_ac_pending(_adapter *padapter, struct pkt_attrib *pattrib)
|
||||
|
@ -1769,7 +1769,7 @@ _func_enter_;
|
|||
|
||||
frg_inx++;
|
||||
|
||||
if (bmcst || (rtw_endofpktfile(&pktfile) == _TRUE))
|
||||
if (bmcst || (rtw_endofpktfile(&pktfile) == true))
|
||||
{
|
||||
pattrib->nr_frags = frg_inx;
|
||||
|
||||
|
@ -1800,7 +1800,7 @@ _func_enter_;
|
|||
|
||||
xmitframe_swencrypt(padapter, pxmitframe);
|
||||
|
||||
if (bmcst == _FALSE)
|
||||
if (bmcst == false)
|
||||
update_attrib_vcs_info(padapter, pxmitframe);
|
||||
else
|
||||
pattrib->vcs_mode = NONE_VCS;
|
||||
|
@ -1937,7 +1937,7 @@ _func_enter_;
|
|||
|
||||
_enter_critical(&pfree_queue->lock, &irqL);
|
||||
|
||||
if (_rtw_queue_empty(pfree_queue) == _TRUE) {
|
||||
if (_rtw_queue_empty(pfree_queue) == true) {
|
||||
pxmitbuf = NULL;
|
||||
} else {
|
||||
|
||||
|
@ -1959,7 +1959,7 @@ _func_enter_;
|
|||
|
||||
|
||||
pxmitbuf->priv_data = NULL;
|
||||
//pxmitbuf->ext_tag = _TRUE;
|
||||
//pxmitbuf->ext_tag = true;
|
||||
|
||||
#if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
|
||||
pxmitbuf->len = 0;
|
||||
|
@ -2025,7 +2025,7 @@ _func_enter_;
|
|||
|
||||
_enter_critical(&pfree_xmitbuf_queue->lock, &irqL);
|
||||
|
||||
if (_rtw_queue_empty(pfree_xmitbuf_queue) == _TRUE) {
|
||||
if (_rtw_queue_empty(pfree_xmitbuf_queue) == true) {
|
||||
pxmitbuf = NULL;
|
||||
} else {
|
||||
|
||||
|
@ -2047,7 +2047,7 @@ _func_enter_;
|
|||
//DBG_88E("alloc, free_xmitbuf_cnt=%d\n", pxmitpriv->free_xmitbuf_cnt);
|
||||
|
||||
pxmitbuf->priv_data = NULL;
|
||||
//pxmitbuf->ext_tag = _FALSE;
|
||||
//pxmitbuf->ext_tag = false;
|
||||
#if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
|
||||
pxmitbuf->len = 0;
|
||||
pxmitbuf->pdata = pxmitbuf->ptail = pxmitbuf->phead;
|
||||
|
@ -2153,7 +2153,7 @@ _func_enter_;
|
|||
|
||||
_enter_critical_bh(&pfree_xmit_queue->lock, &irqL);
|
||||
|
||||
if (_rtw_queue_empty(pfree_xmit_queue) == _TRUE) {
|
||||
if (_rtw_queue_empty(pfree_xmit_queue) == true) {
|
||||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("rtw_alloc_xmitframe:%d\n", pxmitpriv->free_xmitframe_cnt));
|
||||
pxframe = NULL;
|
||||
} else {
|
||||
|
@ -2262,7 +2262,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)
|
||||
{
|
||||
|
||||
pxmitframe = LIST_CONTAINOR(plist, struct xmit_frame, list);
|
||||
|
@ -2298,7 +2298,7 @@ static struct xmit_frame *dequeue_one_xmitframe(struct xmit_priv *pxmitpriv, str
|
|||
xmitframe_phead = get_list_head(pframe_queue);
|
||||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE)
|
||||
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == false)
|
||||
{
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
|
||||
|
@ -2373,7 +2373,7 @@ _func_enter_;
|
|||
sta_phead = get_list_head(phwxmit->sta_queue);
|
||||
sta_plist = get_next(sta_phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(sta_phead, sta_plist)) == _FALSE)
|
||||
while ((rtw_end_of_queue_search(sta_phead, sta_plist)) == false)
|
||||
{
|
||||
|
||||
ptxservq= LIST_CONTAINOR(sta_plist, struct tx_servq, tx_pending);
|
||||
|
@ -2667,7 +2667,7 @@ int rtw_br_client_tx(_adapter *padapter, struct sk_buff **pskb)
|
|||
struct sk_buff *skb = *pskb;
|
||||
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
||||
_irqL irqL;
|
||||
//if (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == _TRUE)
|
||||
//if (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) == true)
|
||||
{
|
||||
void dhcp_flag_bcast(_adapter *priv, struct sk_buff *skb);
|
||||
int res, is_vlan_tag=0, i, do_nat25=1;
|
||||
|
@ -2874,7 +2874,7 @@ static void do_queue_select(_adapter *padapter, struct pkt_attrib *pattrib)
|
|||
RT_TRACE(_module_rtl871x_xmit_c_,_drv_info_,("### do_queue_select priority=%d ,qsel = %d\n",pattrib->priority ,qsel));
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
// if (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
// if (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == true)
|
||||
// qsel = 7;//
|
||||
#endif
|
||||
|
||||
|
@ -2922,7 +2922,7 @@ s32 rtw_xmit(_adapter *padapter, _pkt **ppkt)
|
|||
rcu_read_unlock();
|
||||
#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)
|
||||
{
|
||||
res = rtw_br_client_tx(padapter, ppkt);
|
||||
if (res == -1)
|
||||
|
@ -2962,7 +2962,7 @@ s32 rtw_xmit(_adapter *padapter, _pkt **ppkt)
|
|||
|
||||
#ifdef CONFIG_AP_MODE
|
||||
_enter_critical_bh(&pxmitpriv->lock, &irqL0);
|
||||
if (xmitframe_enqueue_for_sleeping_sta(padapter, pxmitframe) == _TRUE)
|
||||
if (xmitframe_enqueue_for_sleeping_sta(padapter, pxmitframe) == true)
|
||||
{
|
||||
_exit_critical_bh(&pxmitpriv->lock, &irqL0);
|
||||
return 1;
|
||||
|
@ -2970,7 +2970,7 @@ s32 rtw_xmit(_adapter *padapter, _pkt **ppkt)
|
|||
_exit_critical_bh(&pxmitpriv->lock, &irqL0);
|
||||
#endif
|
||||
|
||||
if (rtw_hal_xmit(padapter, pxmitframe) == _FALSE)
|
||||
if (rtw_hal_xmit(padapter, pxmitframe) == false)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
|
@ -2979,7 +2979,7 @@ s32 rtw_xmit(_adapter *padapter, _pkt **ppkt)
|
|||
#ifdef CONFIG_TDLS
|
||||
sint xmitframe_enqueue_for_tdls_sleeping_sta(_adapter *padapter, struct xmit_frame *pxmitframe)
|
||||
{
|
||||
sint ret=_FALSE;
|
||||
sint ret=false;
|
||||
|
||||
_irqL irqL;
|
||||
struct sta_info *ptdls_sta=NULL;
|
||||
|
@ -2995,7 +2995,7 @@ sint xmitframe_enqueue_for_tdls_sleeping_sta(_adapter *padapter, struct xmit_fra
|
|||
|
||||
if (pattrib->triggered==1)
|
||||
{
|
||||
ret = _TRUE;
|
||||
ret = true;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -3039,7 +3039,7 @@ sint xmitframe_enqueue_for_tdls_sleeping_sta(_adapter *padapter, struct xmit_fra
|
|||
//transmit TDLS PTI via AP
|
||||
rtw_tdls_cmd(padapter, ptdls_sta->hwaddr, TDLS_SD_PTI);
|
||||
}
|
||||
ret = _TRUE;
|
||||
ret = true;
|
||||
|
||||
}
|
||||
|
||||
|
@ -3056,7 +3056,7 @@ sint xmitframe_enqueue_for_tdls_sleeping_sta(_adapter *padapter, struct xmit_fra
|
|||
sint xmitframe_enqueue_for_sleeping_sta(_adapter *padapter, struct xmit_frame *pxmitframe)
|
||||
{
|
||||
_irqL irqL;
|
||||
sint ret=_FALSE;
|
||||
sint ret=false;
|
||||
struct sta_info *psta=NULL;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
struct pkt_attrib *pattrib = &pxmitframe->attrib;
|
||||
|
@ -3072,7 +3072,7 @@ sint xmitframe_enqueue_for_sleeping_sta(_adapter *padapter, struct xmit_frame *p
|
|||
}
|
||||
#endif //CONFIG_TDLS
|
||||
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _FALSE)
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == false)
|
||||
return ret;
|
||||
|
||||
if (pattrib->psta)
|
||||
|
@ -3122,11 +3122,11 @@ sint xmitframe_enqueue_for_sleeping_sta(_adapter *padapter, struct xmit_frame *p
|
|||
|
||||
//DBG_88E("enqueue, sq_len=%d, tim=%x\n", psta->sleepq_len, pstapriv->tim_bitmap);
|
||||
|
||||
update_beacon(padapter, _TIM_IE_, NULL, _FALSE);//tx bc/mc packets after upate bcn
|
||||
update_beacon(padapter, _TIM_IE_, NULL, false);//tx bc/mc packets after upate bcn
|
||||
|
||||
//_exit_critical_bh(&psta->sleep_q.lock, &irqL);
|
||||
|
||||
ret = _TRUE;
|
||||
ret = true;
|
||||
|
||||
}
|
||||
|
||||
|
@ -3187,7 +3187,7 @@ sint xmitframe_enqueue_for_sleeping_sta(_adapter *padapter, struct xmit_frame *p
|
|||
{
|
||||
//DBG_88E("sleepq_len==1, update BCNTIM\n");
|
||||
//upate BCN for TIM IE
|
||||
update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
|
||||
update_beacon(padapter, _TIM_IE_, NULL, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3198,7 +3198,7 @@ sint xmitframe_enqueue_for_sleeping_sta(_adapter *padapter, struct xmit_frame *p
|
|||
// wakeup_sta_to_xmit(padapter, psta);
|
||||
//}
|
||||
|
||||
ret = _TRUE;
|
||||
ret = true;
|
||||
|
||||
}
|
||||
|
||||
|
@ -3222,7 +3222,7 @@ static void dequeue_xmitframes_to_sleeping_queue(_adapter *padapter, struct sta_
|
|||
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)
|
||||
{
|
||||
pxmitframe = LIST_CONTAINOR(plist, struct xmit_frame, list);
|
||||
|
||||
|
@ -3317,7 +3317,7 @@ void wakeup_sta_to_xmit(_adapter *padapter, struct sta_info *psta)
|
|||
xmitframe_phead = get_list_head(&psta->sleep_q);
|
||||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE)
|
||||
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == false)
|
||||
{
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
|
||||
|
@ -3370,7 +3370,7 @@ void wakeup_sta_to_xmit(_adapter *padapter, struct sta_info *psta)
|
|||
pxmitframe->attrib.triggered = 1;
|
||||
|
||||
_exit_critical_bh(&psta->sleep_q.lock, &irqL);
|
||||
if (rtw_hal_xmit(padapter, pxmitframe) == _TRUE)
|
||||
if (rtw_hal_xmit(padapter, pxmitframe) == true)
|
||||
{
|
||||
rtw_os_xmit_complete(padapter, pxmitframe);
|
||||
}
|
||||
|
@ -3424,7 +3424,7 @@ void wakeup_sta_to_xmit(_adapter *padapter, struct sta_info *psta)
|
|||
xmitframe_phead = get_list_head(&psta_bmc->sleep_q);
|
||||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE)
|
||||
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == false)
|
||||
{
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
|
||||
|
@ -3442,7 +3442,7 @@ void wakeup_sta_to_xmit(_adapter *padapter, struct sta_info *psta)
|
|||
pxmitframe->attrib.triggered = 1;
|
||||
|
||||
_exit_critical_bh(&psta_bmc->sleep_q.lock, &irqL);
|
||||
if (rtw_hal_xmit(padapter, pxmitframe) == _TRUE)
|
||||
if (rtw_hal_xmit(padapter, pxmitframe) == true)
|
||||
{
|
||||
rtw_os_xmit_complete(padapter, pxmitframe);
|
||||
}
|
||||
|
@ -3470,7 +3470,7 @@ void wakeup_sta_to_xmit(_adapter *padapter, struct sta_info *psta)
|
|||
if (update_mask)
|
||||
{
|
||||
//update_BCNTIM(padapter);
|
||||
update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
|
||||
update_beacon(padapter, _TIM_IE_, NULL, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -3488,7 +3488,7 @@ void xmit_delivery_enabled_frames(_adapter *padapter, struct sta_info *psta)
|
|||
xmitframe_phead = get_list_head(&psta->sleep_q);
|
||||
xmitframe_plist = get_next(xmitframe_phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == _FALSE)
|
||||
while ((rtw_end_of_queue_search(xmitframe_phead, xmitframe_plist)) == false)
|
||||
{
|
||||
pxmitframe = LIST_CONTAINOR(xmitframe_plist, struct xmit_frame, list);
|
||||
|
||||
|
@ -3536,7 +3536,7 @@ void xmit_delivery_enabled_frames(_adapter *padapter, struct sta_info *psta)
|
|||
|
||||
pxmitframe->attrib.triggered = 1;
|
||||
|
||||
if (rtw_hal_xmit(padapter, pxmitframe) == _TRUE)
|
||||
if (rtw_hal_xmit(padapter, pxmitframe) == true)
|
||||
{
|
||||
rtw_os_xmit_complete(padapter, pxmitframe);
|
||||
}
|
||||
|
@ -3555,7 +3555,7 @@ void xmit_delivery_enabled_frames(_adapter *padapter, struct sta_info *psta)
|
|||
//DBG_88E("wakeup to xmit, qlen==0, update_BCNTIM, tim=%x\n", pstapriv->tim_bitmap);
|
||||
//upate BCN for TIM IE
|
||||
//update_BCNTIM(padapter);
|
||||
update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
|
||||
update_beacon(padapter, _TIM_IE_, NULL, false);
|
||||
//update_mask = BIT(0);
|
||||
}
|
||||
|
||||
|
@ -3606,7 +3606,7 @@ struct xmit_buf* dequeue_pending_xmitbuf(
|
|||
|
||||
_enter_critical_bh(&pqueue->lock, &irql);
|
||||
|
||||
if (_rtw_queue_empty(pqueue) == _FALSE)
|
||||
if (_rtw_queue_empty(pqueue) == false)
|
||||
{
|
||||
_list *plist, *phead;
|
||||
|
||||
|
@ -3637,7 +3637,7 @@ struct xmit_buf* dequeue_pending_xmitbuf_under_survey(
|
|||
|
||||
_enter_critical_bh(&pqueue->lock, &irql);
|
||||
|
||||
if (_rtw_queue_empty(pqueue) == _FALSE)
|
||||
if (_rtw_queue_empty(pqueue) == false)
|
||||
{
|
||||
_list *plist, *phead;
|
||||
u8 type;
|
||||
|
@ -3687,10 +3687,10 @@ sint check_pending_xmitbuf(
|
|||
|
||||
pqueue = &pxmitpriv->pending_xmitbuf_queue;
|
||||
|
||||
if (_rtw_queue_empty(pqueue) == _FALSE)
|
||||
return _TRUE;
|
||||
if (_rtw_queue_empty(pqueue) == false)
|
||||
return true;
|
||||
else
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
thread_return rtw_xmit_thread(thread_context context)
|
||||
|
@ -3758,9 +3758,9 @@ bool rtw_sctx_chk_waring_status(int status)
|
|||
|
||||
case RTW_SCTX_DONE_DRV_STOP:
|
||||
case RTW_SCTX_DONE_DEV_REMOVE:
|
||||
return _TRUE;
|
||||
return true;
|
||||
default:
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue