mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 08:34:20 +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
244
core/rtw_ap.c
244
core/rtw_ap.c
|
@ -46,7 +46,7 @@ void init_mlme_ap_info(struct adapter *padapter)
|
|||
//for ACL
|
||||
_rtw_init_queue(&pacl_list->acl_node_q);
|
||||
|
||||
//pmlmeext->bstart_bss = _FALSE;
|
||||
//pmlmeext->bstart_bss = false;
|
||||
|
||||
start_ap_mode(padapter);
|
||||
}
|
||||
|
@ -62,8 +62,8 @@ void free_mlme_ap_info(struct adapter *padapter)
|
|||
|
||||
//stop_ap_mode(padapter);
|
||||
|
||||
pmlmepriv->update_bcn = _FALSE;
|
||||
pmlmeext->bstart_bss = _FALSE;
|
||||
pmlmepriv->update_bcn = false;
|
||||
pmlmeext->bstart_bss = false;
|
||||
|
||||
rtw_sta_flush(padapter);
|
||||
|
||||
|
@ -93,7 +93,7 @@ static void update_BCNTIM(struct adapter *padapter)
|
|||
|
||||
//update TIM IE
|
||||
//if(pstapriv->tim_bitmap)
|
||||
if(_TRUE)
|
||||
if(true)
|
||||
{
|
||||
u8 *p, *dst_ie, *premainder_ie=NULL, *pbackup_remainder_ie=NULL;
|
||||
u16 tim_bitmap_le;
|
||||
|
@ -202,7 +202,7 @@ static void update_BCNTIM(struct adapter *padapter)
|
|||
void rtw_add_bcn_ie(struct adapter *padapter, WLAN_BSSID_EX *pnetwork, u8 index, u8 *data, u8 len)
|
||||
{
|
||||
PNDIS_802_11_VARIABLE_IEs pIE;
|
||||
u8 bmatch = _FALSE;
|
||||
u8 bmatch = false;
|
||||
u8 *pie = pnetwork->IEs;
|
||||
u8 *p, *dst_ie, *premainder_ie=NULL, *pbackup_remainder_ie=NULL;
|
||||
u32 i, offset, ielen, ie_offset, remainder_ielen = 0;
|
||||
|
@ -219,7 +219,7 @@ void rtw_add_bcn_ie(struct adapter *padapter, WLAN_BSSID_EX *pnetwork, u8 index,
|
|||
{
|
||||
p = (u8 *)pIE;
|
||||
ielen = pIE->Length;
|
||||
bmatch = _TRUE;
|
||||
bmatch = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -315,7 +315,7 @@ void rtw_remove_bcn_ie(struct adapter *padapter, WLAN_BSSID_EX *pnetwork, u8 ind
|
|||
u8 chk_sta_is_alive(struct sta_info *psta);
|
||||
u8 chk_sta_is_alive(struct sta_info *psta)
|
||||
{
|
||||
u8 ret = _FALSE;
|
||||
u8 ret = false;
|
||||
#ifdef DBG_EXPIRATION_CHK
|
||||
DBG_871X("sta:"MAC_FMT", rssi:%d, rx:"STA_PKTS_FMT", expire_to:%u, %s%ssq_len:%u\n"
|
||||
, MAC_ARG(psta->hwaddr)
|
||||
|
@ -335,7 +335,7 @@ u8 chk_sta_is_alive(struct sta_info *psta)
|
|||
}
|
||||
else
|
||||
{
|
||||
ret = _TRUE;
|
||||
ret = true;
|
||||
}
|
||||
|
||||
sta_update_last_rx_pkts(psta);
|
||||
|
@ -361,19 +361,19 @@ void expire_timeout_chk(struct adapter *padapter)
|
|||
|
||||
//check auth_queue
|
||||
#ifdef DBG_EXPIRATION_CHK
|
||||
if (rtw_end_of_queue_search(phead, plist) == _FALSE) {
|
||||
if (rtw_end_of_queue_search(phead, plist) == false) {
|
||||
DBG_871X(FUNC_NDEV_FMT" auth_list, cnt:%u\n"
|
||||
, FUNC_NDEV_ARG(padapter->pnetdev), pstapriv->auth_list_cnt);
|
||||
}
|
||||
#endif
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == false)
|
||||
{
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, auth_list);
|
||||
plist = get_next(plist);
|
||||
|
||||
|
||||
#ifdef CONFIG_ATMEL_RC_PATCH
|
||||
if (_TRUE == _rtw_memcmp((void *)(pstapriv->atmel_rc_pattern), (void *)(psta->hwaddr), ETH_ALEN))
|
||||
if (true == _rtw_memcmp((void *)(pstapriv->atmel_rc_pattern), (void *)(psta->hwaddr), ETH_ALEN))
|
||||
continue;
|
||||
if (psta->flag_atmel_rc)
|
||||
continue;
|
||||
|
@ -413,19 +413,19 @@ void expire_timeout_chk(struct adapter *padapter)
|
|||
|
||||
//check asoc_queue
|
||||
#ifdef DBG_EXPIRATION_CHK
|
||||
if (rtw_end_of_queue_search(phead, plist) == _FALSE) {
|
||||
if (rtw_end_of_queue_search(phead, plist) == false) {
|
||||
DBG_871X(FUNC_NDEV_FMT" asoc_list, cnt:%u\n"
|
||||
, FUNC_NDEV_ARG(padapter->pnetdev), pstapriv->asoc_list_cnt);
|
||||
}
|
||||
#endif
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == false)
|
||||
{
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
|
||||
plist = get_next(plist);
|
||||
#ifdef CONFIG_ATMEL_RC_PATCH
|
||||
DBG_871X("%s:%d psta=%p, %02x,%02x||%02x,%02x \n\n", __func__, __LINE__,
|
||||
psta,pstapriv->atmel_rc_pattern[0], pstapriv->atmel_rc_pattern[5], psta->hwaddr[0], psta->hwaddr[5]);
|
||||
if (_TRUE == _rtw_memcmp((void *)pstapriv->atmel_rc_pattern, (void *)(psta->hwaddr), ETH_ALEN))
|
||||
if (true == _rtw_memcmp((void *)pstapriv->atmel_rc_pattern, (void *)(psta->hwaddr), ETH_ALEN))
|
||||
continue;
|
||||
if (psta->flag_atmel_rc)
|
||||
continue;
|
||||
|
@ -487,7 +487,7 @@ void expire_timeout_chk(struct adapter *padapter)
|
|||
|
||||
//to update bcn with tim_bitmap for this station
|
||||
pstapriv->tim_bitmap |= BIT(psta->aid);
|
||||
update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
|
||||
update_beacon(padapter, _TIM_IE_, NULL, false);
|
||||
|
||||
if(!pmlmeext->active_keep_alive_check)
|
||||
continue;
|
||||
|
@ -510,7 +510,7 @@ void expire_timeout_chk(struct adapter *padapter)
|
|||
pstapriv->asoc_list_cnt--;
|
||||
|
||||
DBG_871X("asoc expire "MAC_FMT", state=0x%x\n", MAC_ARG(psta->hwaddr), psta->state);
|
||||
updated = ap_free_sta(padapter, psta, _FALSE, WLAN_REASON_DEAUTH_LEAVING);
|
||||
updated = ap_free_sta(padapter, psta, false, WLAN_REASON_DEAUTH_LEAVING);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -546,7 +546,7 @@ if (chk_alive_num) {
|
|||
|
||||
psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]);
|
||||
#ifdef CONFIG_ATMEL_RC_PATCH
|
||||
if (_TRUE == _rtw_memcmp( pstapriv->atmel_rc_pattern, psta->hwaddr, ETH_ALEN))
|
||||
if (true == _rtw_memcmp( pstapriv->atmel_rc_pattern, psta->hwaddr, ETH_ALEN))
|
||||
continue;
|
||||
if (psta->flag_atmel_rc)
|
||||
continue;
|
||||
|
@ -578,10 +578,10 @@ if (chk_alive_num) {
|
|||
|
||||
DBG_871X("asoc expire "MAC_FMT", state=0x%x\n", MAC_ARG(psta->hwaddr), psta->state);
|
||||
_enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
|
||||
if (rtw_is_list_empty(&psta->asoc_list)==_FALSE) {
|
||||
if (rtw_is_list_empty(&psta->asoc_list)==false) {
|
||||
rtw_list_delete(&psta->asoc_list);
|
||||
pstapriv->asoc_list_cnt--;
|
||||
updated = ap_free_sta(padapter, psta, _FALSE, WLAN_REASON_DEAUTH_LEAVING);
|
||||
updated = ap_free_sta(padapter, psta, false, WLAN_REASON_DEAUTH_LEAVING);
|
||||
}
|
||||
_exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
|
||||
|
||||
|
@ -600,7 +600,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
|
|||
int i;
|
||||
u8 rf_type;
|
||||
u32 init_rate=0;
|
||||
unsigned char sta_band = 0, raid, shortGIrate = _FALSE;
|
||||
unsigned char sta_band = 0, raid, shortGIrate = false;
|
||||
unsigned char limit;
|
||||
unsigned int tx_ra_bitmap=0;
|
||||
struct ht_priv *psta_ht = NULL;
|
||||
|
@ -675,7 +675,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
|
|||
|
||||
arg |= BIT(7);//support entry 2~31
|
||||
|
||||
if (shortGIrate==_TRUE)
|
||||
if (shortGIrate==true)
|
||||
arg |= BIT(5);
|
||||
|
||||
tx_ra_bitmap |= ((raid<<28)&0xf0000000);
|
||||
|
@ -690,7 +690,7 @@ void add_RATid(struct adapter *padapter, struct sta_info *psta, u8 rssi_level)
|
|||
rtw_hal_add_ra_tid(padapter, tx_ra_bitmap, arg, rssi_level);
|
||||
|
||||
|
||||
if (shortGIrate==_TRUE)
|
||||
if (shortGIrate==true)
|
||||
init_rate |= BIT(6);
|
||||
|
||||
//set ra_id, init_rate
|
||||
|
@ -724,7 +724,7 @@ void update_bmc_sta(struct adapter *padapter)
|
|||
|
||||
psta->qos_option = 0;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
psta->htpriv.ht_option = _FALSE;
|
||||
psta->htpriv.ht_option = false;
|
||||
#endif //CONFIG_80211N_HT
|
||||
|
||||
psta->ieee8021x_blocked = 0;
|
||||
|
@ -766,9 +766,9 @@ void update_bmc_sta(struct adapter *padapter)
|
|||
|
||||
//DBG_871X("Add id %d val %08x to ratr for bmc sta\n", psta->aid, tx_ra_bitmap);
|
||||
//ap mode
|
||||
rtw_hal_set_odm_var(padapter, HAL_ODM_STA_INFO, psta, _TRUE);
|
||||
rtw_hal_set_odm_var(padapter, HAL_ODM_STA_INFO, psta, true);
|
||||
|
||||
//if(pHalData->fw_ractrl == _TRUE)
|
||||
//if(pHalData->fw_ractrl == true)
|
||||
{
|
||||
u8 arg = 0;
|
||||
|
||||
|
@ -776,7 +776,7 @@ void update_bmc_sta(struct adapter *padapter)
|
|||
|
||||
arg |= BIT(7);
|
||||
|
||||
//if (shortGIrate==_TRUE)
|
||||
//if (shortGIrate==true)
|
||||
// arg |= BIT(5);
|
||||
|
||||
tx_ra_bitmap |= ((raid<<28)&0xf0000000);
|
||||
|
@ -834,12 +834,12 @@ void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta)
|
|||
DBG_871X("%s\n",__FUNCTION__);
|
||||
|
||||
//ap mode
|
||||
rtw_hal_set_odm_var(padapter,HAL_ODM_STA_INFO,psta,_TRUE);
|
||||
rtw_hal_set_odm_var(padapter,HAL_ODM_STA_INFO,psta,true);
|
||||
|
||||
if(psecuritypriv->dot11AuthAlgrthm==dot11AuthAlgrthm_8021X)
|
||||
psta->ieee8021x_blocked = _TRUE;
|
||||
psta->ieee8021x_blocked = true;
|
||||
else
|
||||
psta->ieee8021x_blocked = _FALSE;
|
||||
psta->ieee8021x_blocked = false;
|
||||
|
||||
|
||||
//update sta's cap
|
||||
|
@ -856,7 +856,7 @@ void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta)
|
|||
//check if sta support s Short GI
|
||||
if((phtpriv_sta->ht_cap.cap_info & phtpriv_ap->ht_cap.cap_info) & cpu_to_le16(IEEE80211_HT_CAP_SGI_20|IEEE80211_HT_CAP_SGI_40))
|
||||
{
|
||||
phtpriv_sta->sgi = _TRUE;
|
||||
phtpriv_sta->sgi = true;
|
||||
}
|
||||
|
||||
// bwmode
|
||||
|
@ -868,14 +868,14 @@ void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta)
|
|||
|
||||
}
|
||||
|
||||
psta->qos_option = _TRUE;
|
||||
psta->qos_option = true;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
phtpriv_sta->ampdu_enable = _FALSE;
|
||||
phtpriv_sta->ampdu_enable = false;
|
||||
|
||||
phtpriv_sta->sgi = _FALSE;
|
||||
phtpriv_sta->sgi = false;
|
||||
phtpriv_sta->bwmode = HT_CHANNEL_WIDTH_20;
|
||||
phtpriv_sta->ch_offset = HAL_PRIME_CHNL_OFFSET_DONT_CARE;
|
||||
}
|
||||
|
@ -983,28 +983,28 @@ static void start_bss_network(struct adapter *padapter, u8 *pbuf)
|
|||
//and at first time the security ie ( RSN/WPA IE) will not include in beacon.
|
||||
if(NULL == rtw_get_wps_ie(pnetwork->IEs+_FIXED_IE_LENGTH_, pnetwork->IELength-_FIXED_IE_LENGTH_, NULL, NULL))
|
||||
{
|
||||
pmlmeext->bstart_bss = _TRUE;
|
||||
pmlmeext->bstart_bss = true;
|
||||
}
|
||||
|
||||
//todo: update wmm, ht cap
|
||||
//pmlmeinfo->WMM_enable;
|
||||
//pmlmeinfo->HT_enable;
|
||||
if(pmlmepriv->qospriv.qos_option)
|
||||
pmlmeinfo->WMM_enable = _TRUE;
|
||||
pmlmeinfo->WMM_enable = true;
|
||||
#ifdef CONFIG_80211N_HT
|
||||
if(pmlmepriv->htpriv.ht_option)
|
||||
{
|
||||
pmlmeinfo->WMM_enable = _TRUE;
|
||||
pmlmeinfo->HT_enable = _TRUE;
|
||||
//pmlmeinfo->HT_info_enable = _TRUE;
|
||||
//pmlmeinfo->HT_caps_enable = _TRUE;
|
||||
pmlmeinfo->WMM_enable = true;
|
||||
pmlmeinfo->HT_enable = true;
|
||||
//pmlmeinfo->HT_info_enable = true;
|
||||
//pmlmeinfo->HT_caps_enable = true;
|
||||
|
||||
update_hw_ht_param(padapter);
|
||||
}
|
||||
#endif //#CONFIG_80211N_HT
|
||||
|
||||
|
||||
if(pmlmepriv->cur_network.join_res != _TRUE) //setting only at first time
|
||||
if(pmlmepriv->cur_network.join_res != true) //setting only at first time
|
||||
{
|
||||
//WEP Key will be set before this function, do not clear CAM.
|
||||
if ((psecuritypriv->dot11PrivacyAlgrthm != _WEP40_) && (psecuritypriv->dot11PrivacyAlgrthm != _WEP104_))
|
||||
|
@ -1043,7 +1043,7 @@ static void start_bss_network(struct adapter *padapter, u8 *pbuf)
|
|||
UpdateBrateTbl(padapter, pnetwork->SupportedRates);
|
||||
rtw_hal_set_hwreg(padapter, HW_VAR_BASIC_RATE, pnetwork->SupportedRates);
|
||||
|
||||
if(pmlmepriv->cur_network.join_res != _TRUE) //setting only at first time
|
||||
if(pmlmepriv->cur_network.join_res != true) //setting only at first time
|
||||
{
|
||||
//u32 initialgain;
|
||||
|
||||
|
@ -1052,7 +1052,7 @@ static void start_bss_network(struct adapter *padapter, u8 *pbuf)
|
|||
|
||||
//disable dynamic functions, such as high power, DIG
|
||||
//Save_DM_Func_Flag(padapter);
|
||||
//Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, _FALSE);
|
||||
//Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, false);
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if(padapter->adapter_type > PRIMARY_ADAPTER)
|
||||
|
@ -1062,7 +1062,7 @@ static void start_bss_network(struct adapter *padapter, u8 *pbuf)
|
|||
struct adapter *pbuddy_adapter = padapter->pbuddy_adapter;
|
||||
|
||||
//turn on all dynamic functions on PRIMARY_ADAPTER, dynamic functions only runs at PRIMARY_ADAPTER
|
||||
Switch_DM_Func(pbuddy_adapter, DYNAMIC_ALL_FUNC_ENABLE, _TRUE);
|
||||
Switch_DM_Func(pbuddy_adapter, DYNAMIC_ALL_FUNC_ENABLE, true);
|
||||
|
||||
//rtw_hal_set_hwreg(pbuddy_adapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
|
||||
}
|
||||
|
@ -1071,7 +1071,7 @@ static void start_bss_network(struct adapter *padapter, u8 *pbuf)
|
|||
#endif
|
||||
{
|
||||
//turn on all dynamic functions
|
||||
Switch_DM_Func(padapter, DYNAMIC_ALL_FUNC_ENABLE, _TRUE);
|
||||
Switch_DM_Func(padapter, DYNAMIC_ALL_FUNC_ENABLE, true);
|
||||
|
||||
//rtw_hal_set_hwreg(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
|
||||
}
|
||||
|
@ -1121,7 +1121,7 @@ static void start_bss_network(struct adapter *padapter, u8 *pbuf)
|
|||
{
|
||||
set_channel_bwmode(padapter, cur_channel, cur_ch_offset, cur_bwmode);
|
||||
}
|
||||
else if(check_buddy_fwstate(padapter, _FW_LINKED)==_TRUE)//only second adapter can enter AP Mode
|
||||
else if(check_buddy_fwstate(padapter, _FW_LINKED)==true)//only second adapter can enter AP Mode
|
||||
{
|
||||
struct adapter *pbuddy_adapter = padapter->pbuddy_adapter;
|
||||
struct mlme_ext_priv *pbuddy_mlmeext = &pbuddy_adapter->mlmeextpriv;
|
||||
|
@ -1223,9 +1223,9 @@ static void start_bss_network(struct adapter *padapter, u8 *pbuf)
|
|||
pwdinfo->p2p_group_ssid_len = pnetwork->Ssid.SsidLength;
|
||||
#endif //CONFIG_P2P
|
||||
|
||||
if(_TRUE == pmlmeext->bstart_bss)
|
||||
if(true == pmlmeext->bstart_bss)
|
||||
{
|
||||
update_beacon(padapter, _TIM_IE_, NULL, _FALSE);
|
||||
update_beacon(padapter, _TIM_IE_, NULL, false);
|
||||
|
||||
#ifndef CONFIG_INTERRUPT_BASED_TXBCN //other case will tx beacon when bcn interrupt coming in.
|
||||
//issue beacon frame
|
||||
|
@ -1239,7 +1239,7 @@ static void start_bss_network(struct adapter *padapter, u8 *pbuf)
|
|||
//update bc/mc sta_info
|
||||
update_bmc_sta(padapter);
|
||||
|
||||
//pmlmeext->bstart_bss = _TRUE;
|
||||
//pmlmeext->bstart_bss = true;
|
||||
|
||||
}
|
||||
|
||||
|
@ -1250,7 +1250,7 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len)
|
|||
u8 *pHT_caps_ie=NULL;
|
||||
u8 *pHT_info_ie=NULL;
|
||||
struct sta_info *psta = NULL;
|
||||
u16 cap, ht_cap=_FALSE;
|
||||
u16 cap, ht_cap=false;
|
||||
uint ie_len = 0;
|
||||
int group_cipher, pairwise_cipher;
|
||||
u8 channel, network_type, supportRate[NDIS_802_11_LENGTH_RATES_EX];
|
||||
|
@ -1279,7 +1279,7 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len)
|
|||
|
||||
DBG_871X("%s, len=%d\n", __FUNCTION__, len);
|
||||
|
||||
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
|
||||
if(check_fwstate(pmlmepriv, WIFI_AP_STATE) != true)
|
||||
return _FAIL;
|
||||
|
||||
|
||||
|
@ -1462,7 +1462,7 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len)
|
|||
pHT_caps_ie=p;
|
||||
|
||||
|
||||
ht_cap = _TRUE;
|
||||
ht_cap = true;
|
||||
network_type |= WIRELESS_11_24N;
|
||||
|
||||
|
||||
|
@ -1519,24 +1519,24 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len)
|
|||
pmlmepriv->cur_network.network_type = network_type;
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
pmlmepriv->htpriv.ht_option = _FALSE;
|
||||
pmlmepriv->htpriv.ht_option = false;
|
||||
|
||||
if( (psecuritypriv->wpa2_pairwise_cipher&WPA_CIPHER_TKIP) ||
|
||||
(psecuritypriv->wpa_pairwise_cipher&WPA_CIPHER_TKIP))
|
||||
{
|
||||
//todo:
|
||||
//ht_cap = _FALSE;
|
||||
//ht_cap = false;
|
||||
}
|
||||
|
||||
//ht_cap
|
||||
if(pregistrypriv->ht_enable && ht_cap==_TRUE)
|
||||
if(pregistrypriv->ht_enable && ht_cap==true)
|
||||
{
|
||||
pmlmepriv->htpriv.ht_option = _TRUE;
|
||||
pmlmepriv->htpriv.ht_option = true;
|
||||
pmlmepriv->qospriv.qos_option = 1;
|
||||
|
||||
if(pregistrypriv->ampdu_enable==1)
|
||||
{
|
||||
pmlmepriv->htpriv.ampdu_enable = _TRUE;
|
||||
pmlmepriv->htpriv.ampdu_enable = true;
|
||||
}
|
||||
|
||||
HT_caps_handler(padapter, (PNDIS_802_11_VARIABLE_IEs)pHT_caps_ie);
|
||||
|
@ -1565,7 +1565,7 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len)
|
|||
psta->state |= WIFI_AP_STATE; //Aries, add,fix bug of flush_cam_entry at STOP AP mode , 0724
|
||||
rtw_indicate_connect( padapter);
|
||||
|
||||
pmlmepriv->cur_network.join_res = _TRUE;//for check if already set beacon
|
||||
pmlmepriv->cur_network.join_res = true;//for check if already set beacon
|
||||
|
||||
//update bc/mc sta_info
|
||||
//update_bmc_sta(padapter);
|
||||
|
@ -1588,7 +1588,7 @@ int rtw_acl_add_sta(struct adapter *padapter, u8 *addr)
|
|||
{
|
||||
_irqL irqL;
|
||||
_list *plist, *phead;
|
||||
u8 added = _FALSE;
|
||||
u8 added = false;
|
||||
int i, ret=0;
|
||||
struct rtw_wlan_acl_node *paclnode;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
|
@ -1606,16 +1606,16 @@ int rtw_acl_add_sta(struct adapter *padapter, u8 *addr)
|
|||
phead = get_list_head(pacl_node_q);
|
||||
plist = get_next(phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == false)
|
||||
{
|
||||
paclnode = LIST_CONTAINOR(plist, struct rtw_wlan_acl_node, list);
|
||||
plist = get_next(plist);
|
||||
|
||||
if(_rtw_memcmp(paclnode->addr, addr, ETH_ALEN))
|
||||
{
|
||||
if(paclnode->valid == _TRUE)
|
||||
if(paclnode->valid == true)
|
||||
{
|
||||
added = _TRUE;
|
||||
added = true;
|
||||
DBG_871X("%s, sta has been added\n", __func__);
|
||||
break;
|
||||
}
|
||||
|
@ -1625,7 +1625,7 @@ int rtw_acl_add_sta(struct adapter *padapter, u8 *addr)
|
|||
_exit_critical_bh(&(pacl_node_q->lock), &irqL);
|
||||
|
||||
|
||||
if(added == _TRUE)
|
||||
if(added == true)
|
||||
return ret;
|
||||
|
||||
|
||||
|
@ -1635,13 +1635,13 @@ int rtw_acl_add_sta(struct adapter *padapter, u8 *addr)
|
|||
{
|
||||
paclnode = &pacl_list->aclnode[i];
|
||||
|
||||
if(paclnode->valid == _FALSE)
|
||||
if(paclnode->valid == false)
|
||||
{
|
||||
_rtw_init_listhead(&paclnode->list);
|
||||
|
||||
_rtw_memcpy(paclnode->addr, addr, ETH_ALEN);
|
||||
|
||||
paclnode->valid = _TRUE;
|
||||
paclnode->valid = true;
|
||||
|
||||
rtw_list_insert_tail(&paclnode->list, get_list_head(pacl_node_q));
|
||||
|
||||
|
@ -1675,16 +1675,16 @@ int rtw_acl_remove_sta(struct adapter *padapter, u8 *addr)
|
|||
phead = get_list_head(pacl_node_q);
|
||||
plist = get_next(phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == false)
|
||||
{
|
||||
paclnode = LIST_CONTAINOR(plist, struct rtw_wlan_acl_node, list);
|
||||
plist = get_next(plist);
|
||||
|
||||
if(_rtw_memcmp(paclnode->addr, addr, ETH_ALEN))
|
||||
{
|
||||
if(paclnode->valid == _TRUE)
|
||||
if(paclnode->valid == true)
|
||||
{
|
||||
paclnode->valid = _FALSE;
|
||||
paclnode->valid = false;
|
||||
|
||||
rtw_list_delete(&paclnode->list);
|
||||
|
||||
|
@ -1879,7 +1879,7 @@ void update_beacon(struct adapter *padapter, u8 ie_id, u8 *oui, u8 tx)
|
|||
pmlmeext = &(padapter->mlmeextpriv);
|
||||
//pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
||||
if(_FALSE == pmlmeext->bstart_bss)
|
||||
if(false == pmlmeext->bstart_bss)
|
||||
return;
|
||||
|
||||
_enter_critical_bh(&pmlmepriv->bcn_update_lock, &irqL);
|
||||
|
@ -1932,7 +1932,7 @@ void update_beacon(struct adapter *padapter, u8 ie_id, u8 *oui, u8 tx)
|
|||
break;
|
||||
}
|
||||
|
||||
pmlmepriv->update_bcn = _TRUE;
|
||||
pmlmepriv->update_bcn = true;
|
||||
|
||||
_exit_critical_bh(&pmlmepriv->bcn_update_lock, &irqL);
|
||||
|
||||
|
@ -1966,7 +1966,7 @@ static int rtw_ht_operation_update(struct adapter *padapter)
|
|||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
||||
struct ht_priv *phtpriv_ap = &pmlmepriv->htpriv;
|
||||
|
||||
if(pmlmepriv->htpriv.ht_option == _TRUE)
|
||||
if(pmlmepriv->htpriv.ht_option == true)
|
||||
return 0;
|
||||
|
||||
//if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed)
|
||||
|
@ -2035,7 +2035,7 @@ static int rtw_ht_operation_update(struct adapter *padapter)
|
|||
void associated_clients_update(struct adapter *padapter, u8 updated)
|
||||
{
|
||||
//update associcated stations cap.
|
||||
if(updated == _TRUE)
|
||||
if(updated == true)
|
||||
{
|
||||
_irqL irqL;
|
||||
_list *phead, *plist;
|
||||
|
@ -2048,7 +2048,7 @@ void associated_clients_update(struct adapter *padapter, u8 updated)
|
|||
plist = get_next(phead);
|
||||
|
||||
//check asoc_queue
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == false)
|
||||
{
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
|
||||
|
||||
|
@ -2066,7 +2066,7 @@ void associated_clients_update(struct adapter *padapter, u8 updated)
|
|||
/* called > TSR LEVEL for USB or SDIO Interface*/
|
||||
void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta)
|
||||
{
|
||||
u8 beacon_updated = _FALSE;
|
||||
u8 beacon_updated = false;
|
||||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
||||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||
|
||||
|
@ -2078,8 +2078,8 @@ void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta)
|
|||
|
||||
if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
|
||||
(pmlmepriv->num_sta_no_short_preamble == 1)) {
|
||||
beacon_updated = _TRUE;
|
||||
update_beacon(padapter, 0xFF, NULL, _TRUE);
|
||||
beacon_updated = true;
|
||||
update_beacon(padapter, 0xFF, NULL, true);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2091,8 +2091,8 @@ void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta)
|
|||
|
||||
if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
|
||||
(pmlmepriv->num_sta_no_short_preamble == 0)) {
|
||||
beacon_updated = _TRUE;
|
||||
update_beacon(padapter, 0xFF, NULL, _TRUE);
|
||||
beacon_updated = true;
|
||||
update_beacon(padapter, 0xFF, NULL, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2104,8 +2104,8 @@ void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta)
|
|||
pmlmepriv->num_sta_non_erp++;
|
||||
|
||||
if (pmlmepriv->num_sta_non_erp == 1) {
|
||||
beacon_updated = _TRUE;
|
||||
update_beacon(padapter, _ERPINFO_IE_, NULL, _TRUE);
|
||||
beacon_updated = true;
|
||||
update_beacon(padapter, _ERPINFO_IE_, NULL, true);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -2115,8 +2115,8 @@ void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta)
|
|||
pmlmepriv->num_sta_non_erp--;
|
||||
|
||||
if (pmlmepriv->num_sta_non_erp == 0) {
|
||||
beacon_updated = _TRUE;
|
||||
update_beacon(padapter, _ERPINFO_IE_, NULL, _TRUE);
|
||||
beacon_updated = true;
|
||||
update_beacon(padapter, _ERPINFO_IE_, NULL, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2133,8 +2133,8 @@ void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta)
|
|||
if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
|
||||
(pmlmepriv->num_sta_no_short_slot_time == 1))
|
||||
{
|
||||
beacon_updated = _TRUE;
|
||||
update_beacon(padapter, 0xFF, NULL, _TRUE);
|
||||
beacon_updated = true;
|
||||
update_beacon(padapter, 0xFF, NULL, true);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2150,8 +2150,8 @@ void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta)
|
|||
if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) &&
|
||||
(pmlmepriv->num_sta_no_short_slot_time == 0))
|
||||
{
|
||||
beacon_updated = _TRUE;
|
||||
update_beacon(padapter, 0xFF, NULL, _TRUE);
|
||||
beacon_updated = true;
|
||||
update_beacon(padapter, 0xFF, NULL, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2199,7 +2199,7 @@ void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta)
|
|||
psta->no_ht_set = 1;
|
||||
pmlmepriv->num_sta_no_ht++;
|
||||
}
|
||||
if(pmlmepriv->htpriv.ht_option == _TRUE) {
|
||||
if(pmlmepriv->htpriv.ht_option == true) {
|
||||
DBG_871X("%s STA " MAC_FMT
|
||||
" - no HT, num of non-HT stations %d\n",
|
||||
__FUNCTION__, MAC_ARG(psta->hwaddr),
|
||||
|
@ -2209,8 +2209,8 @@ void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta)
|
|||
|
||||
if (rtw_ht_operation_update(padapter) > 0)
|
||||
{
|
||||
update_beacon(padapter, _HT_CAPABILITY_IE_, NULL, _FALSE);
|
||||
update_beacon(padapter, _HT_ADD_INFO_IE_, NULL, _TRUE);
|
||||
update_beacon(padapter, _HT_CAPABILITY_IE_, NULL, false);
|
||||
update_beacon(padapter, _HT_ADD_INFO_IE_, NULL, true);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
@ -2224,7 +2224,7 @@ void bss_cap_update_on_sta_join(struct adapter *padapter, struct sta_info *psta)
|
|||
|
||||
u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta)
|
||||
{
|
||||
u8 beacon_updated = _FALSE;
|
||||
u8 beacon_updated = false;
|
||||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
||||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||
|
||||
|
@ -2237,8 +2237,8 @@ u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta)
|
|||
if (pmlmeext->cur_wireless_mode > WIRELESS_11B
|
||||
&& pmlmepriv->num_sta_no_short_preamble == 0)
|
||||
{
|
||||
beacon_updated = _TRUE;
|
||||
update_beacon(padapter, 0xFF, NULL, _TRUE);
|
||||
beacon_updated = true;
|
||||
update_beacon(padapter, 0xFF, NULL, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2247,8 +2247,8 @@ u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta)
|
|||
pmlmepriv->num_sta_non_erp--;
|
||||
if (pmlmepriv->num_sta_non_erp == 0)
|
||||
{
|
||||
beacon_updated = _TRUE;
|
||||
update_beacon(padapter, _ERPINFO_IE_, NULL, _TRUE);
|
||||
beacon_updated = true;
|
||||
update_beacon(padapter, _ERPINFO_IE_, NULL, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2258,8 +2258,8 @@ u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta)
|
|||
if (pmlmeext->cur_wireless_mode > WIRELESS_11B
|
||||
&& pmlmepriv->num_sta_no_short_slot_time == 0)
|
||||
{
|
||||
beacon_updated = _TRUE;
|
||||
update_beacon(padapter, 0xFF, NULL, _TRUE);
|
||||
beacon_updated = true;
|
||||
update_beacon(padapter, 0xFF, NULL, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2282,8 +2282,8 @@ u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta)
|
|||
|
||||
if (rtw_ht_operation_update(padapter) > 0)
|
||||
{
|
||||
update_beacon(padapter, _HT_CAPABILITY_IE_, NULL, _FALSE);
|
||||
update_beacon(padapter, _HT_ADD_INFO_IE_, NULL, _TRUE);
|
||||
update_beacon(padapter, _HT_CAPABILITY_IE_, NULL, false);
|
||||
update_beacon(padapter, _HT_ADD_INFO_IE_, NULL, true);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_80211N_HT */
|
||||
|
@ -2300,7 +2300,7 @@ u8 bss_cap_update_on_sta_leave(struct adapter *padapter, struct sta_info *psta)
|
|||
u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta, bool active, u16 reason)
|
||||
{
|
||||
_irqL irqL;
|
||||
u8 beacon_updated = _FALSE;
|
||||
u8 beacon_updated = false;
|
||||
struct mlme_priv *pmlmepriv = &(padapter->mlmepriv);
|
||||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
|
@ -2308,7 +2308,7 @@ u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta, bool active, u16
|
|||
if(!psta)
|
||||
return beacon_updated;
|
||||
|
||||
if (active == _TRUE)
|
||||
if (active == true)
|
||||
{
|
||||
#ifdef CONFIG_80211N_HT
|
||||
//tear down Rx AMPDU
|
||||
|
@ -2330,7 +2330,7 @@ u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta, bool active, u16
|
|||
|
||||
//clear cam entry / key
|
||||
//clear_cam_entry(padapter, (psta->mac_id + 3));
|
||||
rtw_clearstakey_cmd(padapter, (u8*)psta, (u8)(psta->mac_id + 3), _TRUE);
|
||||
rtw_clearstakey_cmd(padapter, (u8*)psta, (u8)(psta->mac_id + 3), true);
|
||||
|
||||
|
||||
_enter_critical_bh(&psta->lock, &irqL);
|
||||
|
@ -2387,7 +2387,7 @@ int rtw_ap_inform_ch_switch(struct adapter *padapter, u8 new_ch, u8 ch_offset)
|
|||
plist = get_next(phead);
|
||||
|
||||
/* for each sta in asoc_queue */
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == false)
|
||||
{
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
|
||||
plist = get_next(plist);
|
||||
|
@ -2425,7 +2425,7 @@ int rtw_sta_flush(struct adapter *padapter)
|
|||
phead = &pstapriv->asoc_list;
|
||||
plist = get_next(phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == false) {
|
||||
int stainfo_offset;
|
||||
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
|
||||
|
@ -2447,12 +2447,12 @@ int rtw_sta_flush(struct adapter *padapter)
|
|||
/* For each sta in chk_alive_list, call ap_free_sta */
|
||||
for (i = 0; i < chk_alive_num; i++) {
|
||||
psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]);
|
||||
ap_free_sta(padapter, psta, _TRUE, WLAN_REASON_DEAUTH_LEAVING);
|
||||
ap_free_sta(padapter, psta, true, WLAN_REASON_DEAUTH_LEAVING);
|
||||
}
|
||||
|
||||
issue_deauth(padapter, bc_addr, WLAN_REASON_DEAUTH_LEAVING);
|
||||
|
||||
associated_clients_update(padapter, _TRUE);
|
||||
associated_clients_update(padapter, true);
|
||||
|
||||
return ret;
|
||||
|
||||
|
@ -2479,16 +2479,16 @@ void sta_info_update(struct adapter *padapter, struct sta_info *psta)
|
|||
//update 802.11n ht cap.
|
||||
if(WLAN_STA_HT&flags)
|
||||
{
|
||||
psta->htpriv.ht_option = _TRUE;
|
||||
psta->htpriv.ht_option = true;
|
||||
psta->qos_option = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
psta->htpriv.ht_option = _FALSE;
|
||||
psta->htpriv.ht_option = false;
|
||||
}
|
||||
|
||||
if(pmlmepriv->htpriv.ht_option == _FALSE)
|
||||
psta->htpriv.ht_option = _FALSE;
|
||||
if(pmlmepriv->htpriv.ht_option == false)
|
||||
psta->htpriv.ht_option = false;
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -2521,7 +2521,7 @@ void rtw_ap_restore_network(struct adapter *padapter)
|
|||
char chk_alive_list[NUM_STA];
|
||||
int i;
|
||||
|
||||
rtw_setopmode_cmd(padapter, Ndis802_11APMode,_FALSE);
|
||||
rtw_setopmode_cmd(padapter, Ndis802_11APMode,false);
|
||||
|
||||
set_channel_bwmode(padapter, pmlmeext->cur_channel, pmlmeext->cur_ch_offset, pmlmeext->cur_bwmode);
|
||||
|
||||
|
@ -2531,7 +2531,7 @@ void rtw_ap_restore_network(struct adapter *padapter)
|
|||
(padapter->securitypriv.dot11PrivacyAlgrthm == _AES_))
|
||||
{
|
||||
/* restore group key, WEP keys is restored in ips_leave() */
|
||||
rtw_set_key(padapter, psecuritypriv, psecuritypriv->dot118021XGrpKeyid, 0,_FALSE);
|
||||
rtw_set_key(padapter, psecuritypriv, psecuritypriv->dot118021XGrpKeyid, 0,false);
|
||||
}
|
||||
|
||||
_enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
|
||||
|
@ -2539,7 +2539,7 @@ void rtw_ap_restore_network(struct adapter *padapter)
|
|||
phead = &pstapriv->asoc_list;
|
||||
plist = get_next(phead);
|
||||
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE) {
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == false) {
|
||||
int stainfo_offset;
|
||||
|
||||
psta = LIST_CONTAINOR(plist, struct sta_info, asoc_list);
|
||||
|
@ -2567,7 +2567,7 @@ void rtw_ap_restore_network(struct adapter *padapter)
|
|||
if( (padapter->securitypriv.dot11PrivacyAlgrthm == _TKIP_) ||
|
||||
(padapter->securitypriv.dot11PrivacyAlgrthm == _AES_))
|
||||
{
|
||||
rtw_setstakey_cmd(padapter, (unsigned char *)psta, _TRUE,_FALSE);
|
||||
rtw_setstakey_cmd(padapter, (unsigned char *)psta, true,false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2582,10 +2582,10 @@ void start_ap_mode(struct adapter *padapter)
|
|||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
|
||||
|
||||
pmlmepriv->update_bcn = _FALSE;
|
||||
pmlmepriv->update_bcn = false;
|
||||
|
||||
//init_mlme_ap_info(padapter);
|
||||
pmlmeext->bstart_bss = _FALSE;
|
||||
pmlmeext->bstart_bss = false;
|
||||
|
||||
pmlmepriv->num_sta_non_erp = 0;
|
||||
|
||||
|
@ -2599,9 +2599,9 @@ void start_ap_mode(struct adapter *padapter)
|
|||
#endif //CONFIG_80211N_HT
|
||||
pmlmepriv->num_sta_ht_20mhz = 0;
|
||||
|
||||
pmlmepriv->olbc = _FALSE;
|
||||
pmlmepriv->olbc = false;
|
||||
|
||||
pmlmepriv->olbc_ht = _FALSE;
|
||||
pmlmepriv->olbc_ht = false;
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
pmlmepriv->ht_op_mode = 0;
|
||||
|
@ -2625,7 +2625,7 @@ void start_ap_mode(struct adapter *padapter)
|
|||
for(i = 0; i < NUM_ACL; i++)
|
||||
{
|
||||
_rtw_init_listhead(&pacl_list->aclnode[i].list);
|
||||
pacl_list->aclnode[i].valid = _FALSE;
|
||||
pacl_list->aclnode[i].valid = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2642,8 +2642,8 @@ void stop_ap_mode(struct adapter *padapter)
|
|||
struct wlan_acl_pool *pacl_list = &pstapriv->acl_list;
|
||||
_queue *pacl_node_q =&pacl_list->acl_node_q;
|
||||
|
||||
pmlmepriv->update_bcn = _FALSE;
|
||||
pmlmeext->bstart_bss = _FALSE;
|
||||
pmlmepriv->update_bcn = false;
|
||||
pmlmeext->bstart_bss = false;
|
||||
//_rtw_spinlock_free(&pmlmepriv->bcn_update_lock);
|
||||
|
||||
//reset and init security priv , this can refine with rtw_reset_securitypriv
|
||||
|
@ -2655,14 +2655,14 @@ void stop_ap_mode(struct adapter *padapter)
|
|||
_enter_critical_bh(&(pacl_node_q->lock), &irqL);
|
||||
phead = get_list_head(pacl_node_q);
|
||||
plist = get_next(phead);
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == _FALSE)
|
||||
while ((rtw_end_of_queue_search(phead, plist)) == false)
|
||||
{
|
||||
paclnode = LIST_CONTAINOR(plist, struct rtw_wlan_acl_node, list);
|
||||
plist = get_next(plist);
|
||||
|
||||
if(paclnode->valid == _TRUE)
|
||||
if(paclnode->valid == true)
|
||||
{
|
||||
paclnode->valid = _FALSE;
|
||||
paclnode->valid = false;
|
||||
|
||||
rtw_list_delete(&paclnode->list);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue