mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +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
|
@ -360,7 +360,7 @@ static int rtw_cfg80211_inform_bss(_adapter *padapter, struct wlan_network *pnet
|
|||
notify_ielen = pnetwork->network.IELength-_FIXED_IE_LENGTH_;
|
||||
|
||||
//We've set wiphy's signal_type as CFG80211_SIGNAL_TYPE_MBM: signal strength in mBm (100*dBm)
|
||||
if ( check_fwstate(pmlmepriv, _FW_LINKED)== _TRUE &&
|
||||
if ( check_fwstate(pmlmepriv, _FW_LINKED)== true &&
|
||||
is_same_network(&pmlmepriv->cur_network.network, &pnetwork->network)) {
|
||||
notify_signal = 100*translate_percentage_to_dbm(padapter->recvpriv.signal_strength);//dbm
|
||||
} else {
|
||||
|
@ -485,7 +485,7 @@ void rtw_cfg80211_indicate_connect(_adapter *padapter)
|
|||
return;
|
||||
}
|
||||
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true)
|
||||
return;
|
||||
|
||||
#ifdef CONFIG_P2P
|
||||
|
@ -558,7 +558,7 @@ void rtw_cfg80211_indicate_disconnect(_adapter *padapter)
|
|||
return;
|
||||
}
|
||||
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true)
|
||||
return;
|
||||
|
||||
#ifdef CONFIG_P2P
|
||||
|
@ -848,7 +848,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
_rtw_memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8);
|
||||
_rtw_memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8);
|
||||
|
||||
psecuritypriv->busetkipkey = _TRUE;
|
||||
psecuritypriv->busetkipkey = true;
|
||||
|
||||
}
|
||||
else if (strcmp(param->u.crypt.alg, "CCMP") == 0)
|
||||
|
@ -868,7 +868,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
|
||||
psecuritypriv->dot118021XGrpKeyid = param->u.crypt.idx;
|
||||
|
||||
psecuritypriv->binstallGrpkey = _TRUE;
|
||||
psecuritypriv->binstallGrpkey = true;
|
||||
|
||||
psecuritypriv->dot11PrivacyAlgrthm = psecuritypriv->dot118021XGrpPrivacy;//!!!
|
||||
|
||||
|
@ -877,7 +877,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
pbcmc_sta=rtw_get_bcmc_stainfo(padapter);
|
||||
if (pbcmc_sta)
|
||||
{
|
||||
pbcmc_sta->ieee8021x_blocked = _FALSE;
|
||||
pbcmc_sta->ieee8021x_blocked = false;
|
||||
pbcmc_sta->dot118021XPrivacy= psecuritypriv->dot118021XGrpPrivacy;//rx will use bmc_sta's dot118021XPrivacy
|
||||
}
|
||||
|
||||
|
@ -916,7 +916,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
_rtw_memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8);
|
||||
_rtw_memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8);
|
||||
|
||||
psecuritypriv->busetkipkey = _TRUE;
|
||||
psecuritypriv->busetkipkey = true;
|
||||
|
||||
}
|
||||
else if (strcmp(param->u.crypt.alg, "CCMP") == 0)
|
||||
|
@ -935,9 +935,9 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
|
||||
set_pairwise_key(padapter, psta);
|
||||
|
||||
psta->ieee8021x_blocked = _FALSE;
|
||||
psta->ieee8021x_blocked = false;
|
||||
|
||||
psta->bpairwise_key_installed = _TRUE;
|
||||
psta->bpairwise_key_installed = true;
|
||||
|
||||
}
|
||||
else//group key???
|
||||
|
@ -963,7 +963,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
_rtw_memcpy(psecuritypriv->dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8);
|
||||
_rtw_memcpy(psecuritypriv->dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8);
|
||||
|
||||
psecuritypriv->busetkipkey = _TRUE;
|
||||
psecuritypriv->busetkipkey = true;
|
||||
|
||||
}
|
||||
else if (strcmp(param->u.crypt.alg, "CCMP") == 0)
|
||||
|
@ -979,7 +979,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
|
||||
psecuritypriv->dot118021XGrpKeyid = param->u.crypt.idx;
|
||||
|
||||
psecuritypriv->binstallGrpkey = _TRUE;
|
||||
psecuritypriv->binstallGrpkey = true;
|
||||
|
||||
psecuritypriv->dot11PrivacyAlgrthm = psecuritypriv->dot118021XGrpPrivacy;//!!!
|
||||
|
||||
|
@ -988,7 +988,7 @@ static int rtw_cfg80211_ap_set_encryption(struct net_device *dev, struct ieee_pa
|
|||
pbcmc_sta=rtw_get_bcmc_stainfo(padapter);
|
||||
if (pbcmc_sta)
|
||||
{
|
||||
pbcmc_sta->ieee8021x_blocked = _FALSE;
|
||||
pbcmc_sta->ieee8021x_blocked = false;
|
||||
pbcmc_sta->dot118021XPrivacy= psecuritypriv->dot118021XGrpPrivacy;//rx will use bmc_sta's dot118021XPrivacy
|
||||
}
|
||||
|
||||
|
@ -1097,7 +1097,7 @@ _func_enter_;
|
|||
|
||||
//DBG_88E("%s, : dot11AuthAlgrthm == dot11AuthAlgrthm_8021X\n", __func__);
|
||||
|
||||
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | WIFI_MP_STATE) == _TRUE) //sta mode
|
||||
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | WIFI_MP_STATE) == true) //sta mode
|
||||
{
|
||||
psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv));
|
||||
if (psta == NULL) {
|
||||
|
@ -1108,7 +1108,7 @@ _func_enter_;
|
|||
{
|
||||
//Jeff: don't disable ieee8021x_blocked while clearing key
|
||||
if (strcmp(param->u.crypt.alg, "none") != 0)
|
||||
psta->ieee8021x_blocked = _FALSE;
|
||||
psta->ieee8021x_blocked = false;
|
||||
|
||||
|
||||
if ((padapter->securitypriv.ndisencryptstatus == Ndis802_11Encryption2Enabled)||
|
||||
|
@ -1130,21 +1130,21 @@ _func_enter_;
|
|||
_rtw_memcpy(psta->dot11tkiptxmickey.skey, &(param->u.crypt.key[16]), 8);
|
||||
_rtw_memcpy(psta->dot11tkiprxmickey.skey, &(param->u.crypt.key[24]), 8);
|
||||
|
||||
padapter->securitypriv.busetkipkey=_FALSE;
|
||||
padapter->securitypriv.busetkipkey=false;
|
||||
//_set_timer(&padapter->securitypriv.tkip_timer, 50);
|
||||
}
|
||||
|
||||
//DEBUG_ERR((" param->u.crypt.key_len=%d\n",param->u.crypt.key_len));
|
||||
DBG_88E(" ~~~~set sta key:unicastkey\n");
|
||||
|
||||
rtw_setstakey_cmd(padapter, (unsigned char *)psta, _TRUE);
|
||||
rtw_setstakey_cmd(padapter, (unsigned char *)psta, true);
|
||||
}
|
||||
else//group key
|
||||
{
|
||||
_rtw_memcpy(padapter->securitypriv.dot118021XGrpKey[param->u.crypt.idx].skey, param->u.crypt.key,(param->u.crypt.key_len>16 ?16:param->u.crypt.key_len));
|
||||
_rtw_memcpy(padapter->securitypriv.dot118021XGrptxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[16]),8);
|
||||
_rtw_memcpy(padapter->securitypriv.dot118021XGrprxmickey[param->u.crypt.idx].skey,&(param->u.crypt.key[24]),8);
|
||||
padapter->securitypriv.binstallGrpkey = _TRUE;
|
||||
padapter->securitypriv.binstallGrpkey = true;
|
||||
//DEBUG_ERR((" param->u.crypt.key_len=%d\n", param->u.crypt.key_len));
|
||||
DBG_88E(" ~~~~set sta key:groupkey\n");
|
||||
|
||||
|
@ -1170,7 +1170,7 @@ _func_enter_;
|
|||
{
|
||||
//Jeff: don't disable ieee8021x_blocked while clearing key
|
||||
if (strcmp(param->u.crypt.alg, "none") != 0)
|
||||
pbcmc_sta->ieee8021x_blocked = _FALSE;
|
||||
pbcmc_sta->ieee8021x_blocked = false;
|
||||
|
||||
if ((padapter->securitypriv.ndisencryptstatus == Ndis802_11Encryption2Enabled)||
|
||||
(padapter->securitypriv.ndisencryptstatus == Ndis802_11Encryption3Enabled))
|
||||
|
@ -1358,11 +1358,11 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev,
|
|||
_rtw_memcpy(param->u.crypt.key, params->key, params->key_len);
|
||||
}
|
||||
|
||||
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == _TRUE)
|
||||
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == true)
|
||||
{
|
||||
ret = rtw_cfg80211_set_encryption(ndev, param, param_len);
|
||||
}
|
||||
else if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
else if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true)
|
||||
{
|
||||
#ifdef CONFIG_AP_MODE
|
||||
if (mac_addr)
|
||||
|
@ -1487,7 +1487,7 @@ static int cfg80211_rtw_get_station(struct wiphy *wiphy,
|
|||
{
|
||||
struct wlan_network *cur_network = &(pmlmepriv->cur_network);
|
||||
|
||||
if (_rtw_memcmp(mac, cur_network->network.MacAddress, ETH_ALEN) == _FALSE)
|
||||
if (_rtw_memcmp(mac, cur_network->network.MacAddress, ETH_ALEN) == false)
|
||||
{
|
||||
DBG_88E("%s, mismatch bssid="MAC_FMT"\n", __func__, MAC_ARG(cur_network->network.MacAddress));
|
||||
return -ENOENT;
|
||||
|
@ -1559,7 +1559,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
|
|||
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
|
||||
#endif
|
||||
int ret = 0;
|
||||
u8 change = _FALSE;
|
||||
u8 change = false;
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if (!padapter->isprimary)
|
||||
|
@ -1591,7 +1591,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
|
|||
|
||||
if (old_type != type)
|
||||
{
|
||||
change = _TRUE;
|
||||
change = true;
|
||||
pmlmeext->action_public_rxseq = 0xffff;
|
||||
pmlmeext->action_public_dialog_token = 0xff;
|
||||
}
|
||||
|
@ -1639,7 +1639,7 @@ static int cfg80211_rtw_change_iface(struct wiphy *wiphy,
|
|||
|
||||
rtw_wdev->iftype = type;
|
||||
|
||||
if (rtw_set_802_11_infrastructure_mode(padapter, networkType) ==_FALSE)
|
||||
if (rtw_set_802_11_infrastructure_mode(padapter, networkType) ==false)
|
||||
{
|
||||
rtw_wdev->iftype = old_type;
|
||||
ret = -EPERM;
|
||||
|
@ -1714,7 +1714,7 @@ void rtw_cfg80211_surveydone_event_callback(_adapter *padapter)
|
|||
|
||||
while (1)
|
||||
{
|
||||
if (rtw_end_of_queue_search(phead,plist)== _TRUE)
|
||||
if (rtw_end_of_queue_search(phead,plist)== true)
|
||||
break;
|
||||
|
||||
pnetwork = LIST_CONTAINOR(plist, struct wlan_network, list);
|
||||
|
@ -1722,7 +1722,7 @@ void rtw_cfg80211_surveydone_event_callback(_adapter *padapter)
|
|||
//report network only if the current channel set contains the channel to which this network belongs
|
||||
if (rtw_ch_set_search_ch(padapter->mlmeextpriv.channel_set, pnetwork->network.Configuration.DSConfig) >= 0
|
||||
#ifdef CONFIG_VALIDATE_SSID
|
||||
&& _TRUE == rtw_validate_ssid(&(pnetwork->network.Ssid))
|
||||
&& true == rtw_validate_ssid(&(pnetwork->network.Ssid))
|
||||
#endif
|
||||
)
|
||||
{
|
||||
|
@ -1737,7 +1737,7 @@ void rtw_cfg80211_surveydone_event_callback(_adapter *padapter)
|
|||
_exit_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
|
||||
|
||||
//call this after other things have been done
|
||||
rtw_cfg80211_indicate_scan_done(wdev_to_priv(padapter->rtw_wdev), _FALSE);
|
||||
rtw_cfg80211_indicate_scan_done(wdev_to_priv(padapter->rtw_wdev), false);
|
||||
}
|
||||
|
||||
static int rtw_cfg80211_set_probe_req_wpsp2pie(struct net_device *net, char *buf, int len)
|
||||
|
@ -1849,7 +1849,7 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy, struct net_device *ndev,
|
|||
struct cfg80211_scan_request *request)
|
||||
{
|
||||
int i;
|
||||
u8 _status = _FALSE;
|
||||
u8 _status = false;
|
||||
int ret = 0;
|
||||
_adapter *padapter = wiphy_to_adapter(wiphy);
|
||||
struct mlme_priv *pmlmepriv= &padapter->mlmepriv;
|
||||
|
@ -1866,7 +1866,7 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy, struct net_device *ndev,
|
|||
struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(padapter->rtw_wdev);
|
||||
struct cfg80211_ssid *ssids = request->ssids;
|
||||
int social_channel = 0, j = 0;
|
||||
bool need_indicate_scan_done = _FALSE;
|
||||
bool need_indicate_scan_done = false;
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
PADAPTER pbuddy_adapter = NULL;
|
||||
struct mlme_priv *pbuddy_mlmepriv = NULL;
|
||||
|
@ -1887,7 +1887,7 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy, struct net_device *ndev,
|
|||
#ifdef CONFIG_MP_INCLUDED
|
||||
if (padapter->registrypriv.mp_mode == 1)
|
||||
{
|
||||
if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == _TRUE)
|
||||
if (check_fwstate(pmlmepriv, WIFI_MP_STATE) == true)
|
||||
{
|
||||
ret = -EPERM;
|
||||
goto exit;
|
||||
|
@ -1899,18 +1899,18 @@ if (padapter->registrypriv.mp_mode == 1)
|
|||
pwdev_priv->scan_request = request;
|
||||
_exit_critical_bh(&pwdev_priv->scan_req_lock, &irqL);
|
||||
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true)
|
||||
{
|
||||
|
||||
#ifdef CONFIG_DEBUG_CFG80211
|
||||
DBG_88E("%s under WIFI_AP_STATE\n", __func__);
|
||||
#endif
|
||||
//need_indicate_scan_done = _TRUE;
|
||||
//need_indicate_scan_done = true;
|
||||
//goto check_need_indicate_scan_done;
|
||||
}
|
||||
|
||||
if (_FAIL == rtw_pwr_wakeup(padapter)) {
|
||||
need_indicate_scan_done = _TRUE;
|
||||
need_indicate_scan_done = true;
|
||||
goto check_need_indicate_scan_done;
|
||||
}
|
||||
|
||||
|
@ -1923,7 +1923,7 @@ if (padapter->registrypriv.mp_mode == 1)
|
|||
if (rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
|
||||
{
|
||||
rtw_p2p_enable(padapter, P2P_ROLE_DEVICE);
|
||||
wdev_to_priv(padapter->rtw_wdev)->p2p_enabled = _TRUE;
|
||||
wdev_to_priv(padapter->rtw_wdev)->p2p_enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1950,47 +1950,47 @@ if (padapter->registrypriv.mp_mode == 1)
|
|||
rtw_cfg80211_set_probe_req_wpsp2pie( ndev, (u8 *)request->ie, request->ie_len );
|
||||
}
|
||||
|
||||
if (pmlmepriv->LinkDetectInfo.bBusyTraffic == _TRUE)
|
||||
if (pmlmepriv->LinkDetectInfo.bBusyTraffic == true)
|
||||
{
|
||||
DBG_88E("%s, bBusyTraffic == _TRUE\n", __func__);
|
||||
need_indicate_scan_done = _TRUE;
|
||||
DBG_88E("%s, bBusyTraffic == true\n", __func__);
|
||||
need_indicate_scan_done = true;
|
||||
goto check_need_indicate_scan_done;
|
||||
}
|
||||
if (rtw_is_scan_deny(padapter)){
|
||||
DBG_88E(FUNC_NDEV_FMT ": scan deny\n", FUNC_NDEV_ARG(ndev));
|
||||
need_indicate_scan_done = _TRUE;
|
||||
need_indicate_scan_done = true;
|
||||
goto check_need_indicate_scan_done;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if (pbuddy_mlmepriv && (pbuddy_mlmepriv->LinkDetectInfo.bBusyTraffic == _TRUE))
|
||||
if (pbuddy_mlmepriv && (pbuddy_mlmepriv->LinkDetectInfo.bBusyTraffic == true))
|
||||
{
|
||||
DBG_88E("%s, bBusyTraffic == _TRUE at buddy_intf\n", __func__);
|
||||
need_indicate_scan_done = _TRUE;
|
||||
DBG_88E("%s, bBusyTraffic == true at buddy_intf\n", __func__);
|
||||
need_indicate_scan_done = true;
|
||||
goto check_need_indicate_scan_done;
|
||||
}
|
||||
#endif //CONFIG_CONCURRENT_MODE
|
||||
|
||||
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE)
|
||||
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == true)
|
||||
{
|
||||
DBG_88E("%s, fwstate=0x%x\n", __func__, pmlmepriv->fw_state);
|
||||
need_indicate_scan_done = _TRUE;
|
||||
need_indicate_scan_done = true;
|
||||
goto check_need_indicate_scan_done;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if (check_buddy_fwstate(padapter,
|
||||
_FW_UNDER_SURVEY|_FW_UNDER_LINKING|WIFI_UNDER_WPS) == _TRUE)
|
||||
_FW_UNDER_SURVEY|_FW_UNDER_LINKING|WIFI_UNDER_WPS) == true)
|
||||
{
|
||||
if (check_buddy_fwstate(padapter, _FW_UNDER_SURVEY))
|
||||
{
|
||||
DBG_88E("scanning_via_buddy_intf\n");
|
||||
pmlmepriv->scanning_via_buddy_intf = _TRUE;
|
||||
pmlmepriv->scanning_via_buddy_intf = true;
|
||||
}
|
||||
|
||||
DBG_88E("buddy_intf's mlme state:0x%x\n", pbuddy_mlmepriv->fw_state);
|
||||
|
||||
need_indicate_scan_done = _TRUE;
|
||||
need_indicate_scan_done = true;
|
||||
goto check_need_indicate_scan_done;
|
||||
}
|
||||
#endif
|
||||
|
@ -2000,7 +2000,7 @@ if (padapter->registrypriv.mp_mode == 1)
|
|||
if (!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE) && !rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE))
|
||||
{
|
||||
rtw_p2p_set_state(pwdinfo, P2P_STATE_FIND_PHASE_SEARCH);
|
||||
rtw_free_network_queue(padapter, _TRUE);
|
||||
rtw_free_network_queue(padapter, true);
|
||||
|
||||
if (social_channel == 0)
|
||||
rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_NONE);
|
||||
|
@ -2043,7 +2043,7 @@ if (padapter->registrypriv.mp_mode == 1)
|
|||
_exit_critical_bh(&pmlmepriv->lock, &irqL);
|
||||
|
||||
|
||||
if (_status == _FALSE)
|
||||
if (_status == false)
|
||||
{
|
||||
ret = -1;
|
||||
}
|
||||
|
@ -2450,9 +2450,9 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
NDIS_802_11_SSID ndis_ssid;
|
||||
u8 *dst_ssid, *src_ssid;
|
||||
u8 *dst_bssid, *src_bssid;
|
||||
//u8 matched_by_bssid=_FALSE;
|
||||
//u8 matched_by_ssid=_FALSE;
|
||||
u8 matched=_FALSE;
|
||||
//u8 matched_by_bssid=false;
|
||||
//u8 matched_by_ssid=false;
|
||||
u8 matched=false;
|
||||
_adapter *padapter = wiphy_to_adapter(wiphy);
|
||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
||||
|
@ -2463,7 +2463,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
sme->privacy, sme->key, sme->key_len, sme->key_idx);
|
||||
|
||||
|
||||
if (wdev_to_priv(padapter->rtw_wdev)->block == _TRUE)
|
||||
if (wdev_to_priv(padapter->rtw_wdev)->block == true)
|
||||
{
|
||||
ret = -EBUSY;
|
||||
DBG_88E("%s wdev_priv.block is set\n", __func__);
|
||||
|
@ -2472,7 +2472,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
|
||||
#ifdef CONFIG_PLATFORM_MSTAR_TITANIA12
|
||||
printk("MStar Android!\n");
|
||||
if ((wdev_to_priv(padapter->rtw_wdev))->bandroid_scan == _FALSE)
|
||||
if ((wdev_to_priv(padapter->rtw_wdev))->bandroid_scan == false)
|
||||
{
|
||||
#ifdef CONFIG_P2P
|
||||
struct wifidirect_info *pwdinfo= &(padapter->wdinfo);
|
||||
|
@ -2497,12 +2497,12 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
}
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if (check_buddy_fwstate(padapter, _FW_UNDER_LINKING) == _TRUE) {
|
||||
if (check_buddy_fwstate(padapter, _FW_UNDER_LINKING) == true) {
|
||||
DBG_88E("%s, but buddy_intf is under linking\n", __func__);
|
||||
ret = -EINVAL;
|
||||
goto exit;
|
||||
}
|
||||
if (check_buddy_fwstate(padapter, _FW_UNDER_SURVEY) == _TRUE) {
|
||||
if (check_buddy_fwstate(padapter, _FW_UNDER_SURVEY) == true) {
|
||||
rtw_scan_abort(padapter->pbuddy_adapter);
|
||||
}
|
||||
#endif
|
||||
|
@ -2531,7 +2531,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
DBG_88E("bssid="MAC_FMT"\n", MAC_ARG(sme->bssid));
|
||||
|
||||
|
||||
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == _TRUE)
|
||||
if (check_fwstate(pmlmepriv, _FW_UNDER_SURVEY|_FW_UNDER_LINKING) == true)
|
||||
{
|
||||
ret = -EBUSY;
|
||||
DBG_88E("%s, fw_state=0x%x, goto exit\n", __func__, pmlmepriv->fw_state);
|
||||
|
@ -2546,7 +2546,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
|
||||
while (1)
|
||||
{
|
||||
if (rtw_end_of_queue_search(phead, pmlmepriv->pscanned) == _TRUE)
|
||||
if (rtw_end_of_queue_search(phead, pmlmepriv->pscanned) == true)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
@ -2558,13 +2558,13 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
dst_bssid = pnetwork->network.MacAddress;
|
||||
|
||||
if (sme->bssid) {
|
||||
if (_rtw_memcmp(pnetwork->network.MacAddress, sme->bssid, ETH_ALEN) == _FALSE)
|
||||
if (_rtw_memcmp(pnetwork->network.MacAddress, sme->bssid, ETH_ALEN) == false)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (sme->ssid && sme->ssid_len) {
|
||||
if ( pnetwork->network.Ssid.SsidLength != sme->ssid_len
|
||||
|| _rtw_memcmp(pnetwork->network.Ssid.Ssid, sme->ssid, sme->ssid_len) == _FALSE
|
||||
|| _rtw_memcmp(pnetwork->network.Ssid.Ssid, sme->ssid, sme->ssid_len) == false
|
||||
)
|
||||
continue;
|
||||
}
|
||||
|
@ -2574,14 +2574,14 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
{
|
||||
src_bssid = sme->bssid;
|
||||
|
||||
if ((_rtw_memcmp(dst_bssid, src_bssid, ETH_ALEN)) == _TRUE)
|
||||
if ((_rtw_memcmp(dst_bssid, src_bssid, ETH_ALEN)) == true)
|
||||
{
|
||||
DBG_88E("matched by bssid\n");
|
||||
|
||||
ndis_ssid.SsidLength = pnetwork->network.Ssid.SsidLength;
|
||||
_rtw_memcpy(ndis_ssid.Ssid, pnetwork->network.Ssid.Ssid, pnetwork->network.Ssid.SsidLength);
|
||||
|
||||
matched=_TRUE;
|
||||
matched=true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2590,11 +2590,11 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
{
|
||||
src_ssid = ndis_ssid.Ssid;
|
||||
|
||||
if ((_rtw_memcmp(dst_ssid, src_ssid, ndis_ssid.SsidLength) == _TRUE) &&
|
||||
if ((_rtw_memcmp(dst_ssid, src_ssid, ndis_ssid.SsidLength) == true) &&
|
||||
(pnetwork->network.Ssid.SsidLength==ndis_ssid.SsidLength))
|
||||
{
|
||||
DBG_88E("matched by ssid\n");
|
||||
matched=_TRUE;
|
||||
matched=true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -2603,15 +2603,15 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
|
||||
_exit_critical_bh(&queue->lock, &irqL);
|
||||
|
||||
if ((matched == _FALSE) || (pnetwork== NULL))
|
||||
if ((matched == false) || (pnetwork== NULL))
|
||||
{
|
||||
ret = -ENOENT;
|
||||
DBG_88E("connect, matched == _FALSE, goto exit\n");
|
||||
DBG_88E("connect, matched == false, goto exit\n");
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
||||
if (rtw_set_802_11_infrastructure_mode(padapter, pnetwork->network.InfrastructureMode) == _FALSE)
|
||||
if (rtw_set_802_11_infrastructure_mode(padapter, pnetwork->network.InfrastructureMode) == false)
|
||||
{
|
||||
ret = -EPERM;
|
||||
goto exit;
|
||||
|
@ -2658,7 +2658,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
goto exit;
|
||||
|
||||
if (sme->crypto.n_ciphers_pairwise) {
|
||||
ret = rtw_cfg80211_set_cipher(psecuritypriv, sme->crypto.ciphers_pairwise[0], _TRUE);
|
||||
ret = rtw_cfg80211_set_cipher(psecuritypriv, sme->crypto.ciphers_pairwise[0], true);
|
||||
if (ret < 0)
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2725,7 +2725,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
goto exit;
|
||||
}
|
||||
|
||||
ret = rtw_cfg80211_set_cipher(psecuritypriv, sme->crypto.cipher_group, _FALSE);
|
||||
ret = rtw_cfg80211_set_cipher(psecuritypriv, sme->crypto.cipher_group, false);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
|
@ -2749,7 +2749,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
|
||||
//rtw_set_802_11_encryption_mode(padapter, padapter->securitypriv.ndisencryptstatus);
|
||||
|
||||
if (rtw_set_802_11_ssid(padapter, &ndis_ssid) == _FALSE) {
|
||||
if (rtw_set_802_11_ssid(padapter, &ndis_ssid) == false) {
|
||||
ret = -1;
|
||||
goto exit;
|
||||
}
|
||||
|
@ -2775,13 +2775,13 @@ static int cfg80211_rtw_disconnect(struct wiphy *wiphy, struct net_device *ndev,
|
|||
{
|
||||
rtw_scan_abort(padapter);
|
||||
LeaveAllPowerSaveMode(padapter);
|
||||
rtw_disassoc_cmd(padapter, 500, _FALSE);
|
||||
rtw_disassoc_cmd(padapter, 500, false);
|
||||
|
||||
DBG_88E("%s...call rtw_indicate_disconnect\n", __func__);
|
||||
|
||||
padapter->mlmepriv.not_indic_disco = _TRUE;
|
||||
padapter->mlmepriv.not_indic_disco = true;
|
||||
rtw_indicate_disconnect(padapter);
|
||||
padapter->mlmepriv.not_indic_disco = _FALSE;
|
||||
padapter->mlmepriv.not_indic_disco = false;
|
||||
|
||||
rtw_free_assoc_resources(padapter, 1);
|
||||
}
|
||||
|
@ -2839,31 +2839,31 @@ static int cfg80211_rtw_set_pmksa(struct wiphy *wiphy,
|
|||
struct net_device *netdev,
|
||||
struct cfg80211_pmksa *pmksa)
|
||||
{
|
||||
u8 index,blInserted = _FALSE;
|
||||
u8 index,blInserted = false;
|
||||
_adapter *padapter = wiphy_to_adapter(wiphy);
|
||||
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
||||
u8 strZeroMacAddress[ ETH_ALEN ] = { 0x00 };
|
||||
|
||||
DBG_88E(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(netdev));
|
||||
|
||||
if ( _rtw_memcmp( pmksa->bssid, strZeroMacAddress, ETH_ALEN ) == _TRUE )
|
||||
if ( _rtw_memcmp( pmksa->bssid, strZeroMacAddress, ETH_ALEN ) == true )
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
blInserted = _FALSE;
|
||||
blInserted = false;
|
||||
|
||||
//overwrite PMKID
|
||||
for (index=0 ; index<NUM_PMKID_CACHE; index++)
|
||||
{
|
||||
if ( _rtw_memcmp( psecuritypriv->PMKIDList[index].Bssid, pmksa->bssid, ETH_ALEN) ==_TRUE )
|
||||
if ( _rtw_memcmp( psecuritypriv->PMKIDList[index].Bssid, pmksa->bssid, ETH_ALEN) ==true )
|
||||
{ // BSSID is matched, the same AP => rewrite with new PMKID.
|
||||
DBG_88E(FUNC_NDEV_FMT" BSSID exists in the PMKList.\n", FUNC_NDEV_ARG(netdev));
|
||||
|
||||
_rtw_memcpy( psecuritypriv->PMKIDList[index].PMKID, pmksa->pmkid, WLAN_PMKID_LEN);
|
||||
psecuritypriv->PMKIDList[index].bUsed = _TRUE;
|
||||
psecuritypriv->PMKIDList[index].bUsed = true;
|
||||
psecuritypriv->PMKIDIndex = index+1;
|
||||
blInserted = _TRUE;
|
||||
blInserted = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -2877,7 +2877,7 @@ static int cfg80211_rtw_set_pmksa(struct wiphy *wiphy,
|
|||
_rtw_memcpy(psecuritypriv->PMKIDList[psecuritypriv->PMKIDIndex].Bssid, pmksa->bssid, ETH_ALEN);
|
||||
_rtw_memcpy(psecuritypriv->PMKIDList[psecuritypriv->PMKIDIndex].PMKID, pmksa->pmkid, WLAN_PMKID_LEN);
|
||||
|
||||
psecuritypriv->PMKIDList[psecuritypriv->PMKIDIndex].bUsed = _TRUE;
|
||||
psecuritypriv->PMKIDList[psecuritypriv->PMKIDIndex].bUsed = true;
|
||||
psecuritypriv->PMKIDIndex++ ;
|
||||
if (psecuritypriv->PMKIDIndex==16)
|
||||
{
|
||||
|
@ -2892,7 +2892,7 @@ static int cfg80211_rtw_del_pmksa(struct wiphy *wiphy,
|
|||
struct net_device *netdev,
|
||||
struct cfg80211_pmksa *pmksa)
|
||||
{
|
||||
u8 index, bMatched = _FALSE;
|
||||
u8 index, bMatched = false;
|
||||
_adapter *padapter = wiphy_to_adapter(wiphy);
|
||||
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
||||
|
||||
|
@ -2900,17 +2900,17 @@ static int cfg80211_rtw_del_pmksa(struct wiphy *wiphy,
|
|||
|
||||
for (index=0 ; index<NUM_PMKID_CACHE; index++)
|
||||
{
|
||||
if ( _rtw_memcmp( psecuritypriv->PMKIDList[index].Bssid, pmksa->bssid, ETH_ALEN) ==_TRUE )
|
||||
if ( _rtw_memcmp( psecuritypriv->PMKIDList[index].Bssid, pmksa->bssid, ETH_ALEN) ==true )
|
||||
{ // BSSID is matched, the same AP => Remove this PMKID information and reset it.
|
||||
_rtw_memset( psecuritypriv->PMKIDList[index].Bssid, 0x00, ETH_ALEN );
|
||||
_rtw_memset( psecuritypriv->PMKIDList[index].PMKID, 0x00, WLAN_PMKID_LEN );
|
||||
psecuritypriv->PMKIDList[index].bUsed = _FALSE;
|
||||
bMatched = _TRUE;
|
||||
psecuritypriv->PMKIDList[index].bUsed = false;
|
||||
bMatched = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (_FALSE == bMatched)
|
||||
if (false == bMatched)
|
||||
{
|
||||
DBG_88E(FUNC_NDEV_FMT" do not have matched BSSID\n"
|
||||
, FUNC_NDEV_ARG(netdev));
|
||||
|
@ -3149,7 +3149,7 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_de
|
|||
u8 category, action;
|
||||
int type = -1;
|
||||
|
||||
if (rtw_action_frame_parse(buf, len, &category, &action) == _FALSE) {
|
||||
if (rtw_action_frame_parse(buf, len, &category, &action) == false) {
|
||||
DBG_88E(FUNC_NDEV_FMT" frame_control:0x%x\n", FUNC_NDEV_ARG(ndev),
|
||||
le16_to_cpu(((struct rtw_ieee80211_hdr_3addr *)buf)->frame_ctl));
|
||||
goto fail;
|
||||
|
@ -3158,7 +3158,7 @@ static int rtw_cfg80211_monitor_if_xmit_entry(struct sk_buff *skb, struct net_de
|
|||
DBG_88E("RTW_Tx:da="MAC_FMT" via "FUNC_NDEV_FMT"\n",
|
||||
MAC_ARG(GetAddr1Ptr(buf)), FUNC_NDEV_ARG(ndev));
|
||||
#ifdef CONFIG_P2P
|
||||
if ((type = rtw_p2p_check_frames(padapter, buf, len, _TRUE)) >= 0)
|
||||
if ((type = rtw_p2p_check_frames(padapter, buf, len, true)) >= 0)
|
||||
goto dump;
|
||||
#endif
|
||||
if (category == RTW_WLAN_CATEGORY_PUBLIC)
|
||||
|
@ -3176,7 +3176,7 @@ dump:
|
|||
//update attribute
|
||||
pattrib = &pmgntframe->attrib;
|
||||
update_mgntframe_attrib(padapter, pattrib);
|
||||
pattrib->retry_ctrl = _FALSE;
|
||||
pattrib->retry_ctrl = false;
|
||||
|
||||
_rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
|
||||
|
||||
|
@ -3190,7 +3190,7 @@ dump:
|
|||
|
||||
pwfd_info = padapter->wdinfo.wfd_info;
|
||||
|
||||
if ( _TRUE == pwfd_info->wfd_enable )
|
||||
if ( true == pwfd_info->wfd_enable )
|
||||
{
|
||||
rtw_append_wfd_ie( padapter, pframe, &len );
|
||||
}
|
||||
|
@ -3403,7 +3403,7 @@ static int rtw_add_beacon(_adapter *adapter, const u8 *head, size_t head_len, co
|
|||
uint len, wps_ielen=0;
|
||||
uint p2p_ielen=0;
|
||||
u8 *p2p_ie;
|
||||
u8 got_p2p_ie = _FALSE;
|
||||
u8 got_p2p_ie = false;
|
||||
struct mlme_priv *pmlmepriv = &(adapter->mlmepriv);
|
||||
//struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
|
||||
|
@ -3411,7 +3411,7 @@ static int rtw_add_beacon(_adapter *adapter, const u8 *head, size_t head_len, co
|
|||
DBG_88E("%s beacon_head_len=%zu, beacon_tail_len=%zu\n", __func__, head_len, tail_len);
|
||||
|
||||
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) != _TRUE)
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) != true)
|
||||
return -EINVAL;
|
||||
|
||||
if (head_len<24)
|
||||
|
@ -3443,7 +3443,7 @@ static int rtw_add_beacon(_adapter *adapter, const u8 *head, size_t head_len, co
|
|||
if (rtw_get_p2p_ie(pbuf+_FIXED_IE_LENGTH_, len-_FIXED_IE_LENGTH_, NULL, &p2p_ielen))
|
||||
{
|
||||
DBG_88E("got p2p_ie, len=%d\n", p2p_ielen);
|
||||
got_p2p_ie = _TRUE;
|
||||
got_p2p_ie = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -3455,7 +3455,7 @@ static int rtw_add_beacon(_adapter *adapter, const u8 *head, size_t head_len, co
|
|||
{
|
||||
#ifdef CONFIG_P2P
|
||||
//check p2p if enable
|
||||
if (got_p2p_ie == _TRUE)
|
||||
if (got_p2p_ie == true)
|
||||
{
|
||||
struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
|
||||
struct wifidirect_info *pwdinfo= &(adapter->wdinfo);
|
||||
|
@ -3464,7 +3464,7 @@ static int rtw_add_beacon(_adapter *adapter, const u8 *head, size_t head_len, co
|
|||
{
|
||||
DBG_88E("Enable P2P function for the first time\n");
|
||||
rtw_p2p_enable(adapter, P2P_ROLE_GO);
|
||||
wdev_to_priv(adapter->rtw_wdev)->p2p_enabled = _TRUE;
|
||||
wdev_to_priv(adapter->rtw_wdev)->p2p_enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -3519,7 +3519,7 @@ static int cfg80211_rtw_set_beacon(struct wiphy *wiphy, struct net_device *ndev,
|
|||
|
||||
DBG_88E(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
|
||||
|
||||
pmlmeext->bstart_bss = _TRUE;
|
||||
pmlmeext->bstart_bss = true;
|
||||
|
||||
cfg80211_rtw_add_beacon(wiphy, ndev, info);
|
||||
|
||||
|
@ -3590,7 +3590,7 @@ static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev
|
|||
|
||||
DBG_88E("+"FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
|
||||
|
||||
if (check_fwstate(pmlmepriv, (_FW_LINKED|WIFI_AP_STATE)) != _TRUE)
|
||||
if (check_fwstate(pmlmepriv, (_FW_LINKED|WIFI_AP_STATE)) != true)
|
||||
{
|
||||
DBG_88E("%s, fw_state != FW_LINKED|WIFI_AP_STATE\n", __func__);
|
||||
return -EINVAL;
|
||||
|
@ -3625,7 +3625,7 @@ static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev
|
|||
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);
|
||||
|
||||
|
@ -3633,9 +3633,9 @@ static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev
|
|||
|
||||
if (_rtw_memcmp(mac, psta->hwaddr, ETH_ALEN))
|
||||
{
|
||||
if (psta->dot8021xalg == 1 && psta->bpairwise_key_installed == _FALSE)
|
||||
if (psta->dot8021xalg == 1 && psta->bpairwise_key_installed == false)
|
||||
{
|
||||
DBG_88E("%s, sta's dot8021xalg = 1 and key_installed = _FALSE\n", __func__);
|
||||
DBG_88E("%s, sta's dot8021xalg = 1 and key_installed = false\n", __func__);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -3645,7 +3645,7 @@ static int cfg80211_rtw_del_station(struct wiphy *wiphy, struct net_device *ndev
|
|||
pstapriv->asoc_list_cnt--;
|
||||
|
||||
//_exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
|
||||
updated = ap_free_sta(padapter, psta, _TRUE, WLAN_REASON_DEAUTH_LEAVING);
|
||||
updated = ap_free_sta(padapter, psta, true, WLAN_REASON_DEAUTH_LEAVING);
|
||||
//_enter_critical_bh(&pstapriv->asoc_list_lock, &irqL);
|
||||
|
||||
psta = NULL;
|
||||
|
@ -3750,7 +3750,7 @@ void rtw_cfg80211_rx_action_p2p(_adapter *padapter, u8 *pmgmt_frame, uint frame_
|
|||
|
||||
DBG_88E("RTW_Rx:cur_ch=%d\n", channel);
|
||||
#ifdef CONFIG_P2P
|
||||
type = rtw_p2p_check_frames(padapter, pmgmt_frame, frame_len, _FALSE);
|
||||
type = rtw_p2p_check_frames(padapter, pmgmt_frame, frame_len, false);
|
||||
if (type >= 0)
|
||||
goto indicate;
|
||||
#endif
|
||||
|
@ -3782,7 +3782,7 @@ void rtw_cfg80211_rx_p2p_action_public(_adapter *padapter, u8 *pmgmt_frame, uint
|
|||
|
||||
DBG_88E("RTW_Rx:cur_ch=%d\n", channel);
|
||||
#ifdef CONFIG_P2P
|
||||
type = rtw_p2p_check_frames(padapter, pmgmt_frame, frame_len, _FALSE);
|
||||
type = rtw_p2p_check_frames(padapter, pmgmt_frame, frame_len, false);
|
||||
if (type >= 0) {
|
||||
switch (type) {
|
||||
case P2P_GO_NEGO_CONF:
|
||||
|
@ -4077,11 +4077,11 @@ static s32 cfg80211_rtw_remain_on_channel(struct wiphy *wiphy, struct net_device
|
|||
struct wifidirect_info *pwdinfo = &padapter->wdinfo;
|
||||
struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &padapter->cfg80211_wdinfo;
|
||||
u8 remain_ch = (u8) ieee80211_frequency_to_channel(channel->center_freq);
|
||||
u8 ready_on_channel = _FALSE;
|
||||
u8 ready_on_channel = false;
|
||||
|
||||
DBG_88E(FUNC_NDEV_FMT" ch:%u duration:%d\n", FUNC_NDEV_ARG(ndev), remain_ch, duration);
|
||||
|
||||
if (pcfg80211_wdinfo->is_ro_ch == _TRUE)
|
||||
if (pcfg80211_wdinfo->is_ro_ch == true)
|
||||
{
|
||||
DBG_88E("%s, cancel ro ch timer\n", __func__);
|
||||
|
||||
|
@ -4094,7 +4094,7 @@ static s32 cfg80211_rtw_remain_on_channel(struct wiphy *wiphy, struct net_device
|
|||
p2p_protocol_wk_hdl(padapter, P2P_RO_CH_WK);
|
||||
}
|
||||
|
||||
pcfg80211_wdinfo->is_ro_ch = _TRUE;
|
||||
pcfg80211_wdinfo->is_ro_ch = true;
|
||||
|
||||
if (_FAIL == rtw_pwr_wakeup(padapter)) {
|
||||
err = -EFAULT;
|
||||
|
@ -4116,7 +4116,7 @@ static s32 cfg80211_rtw_remain_on_channel(struct wiphy *wiphy, struct net_device
|
|||
if (rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE))
|
||||
{
|
||||
rtw_p2p_enable(padapter, P2P_ROLE_DEVICE);
|
||||
wdev_to_priv(padapter->rtw_wdev)->p2p_enabled = _TRUE;
|
||||
wdev_to_priv(padapter->rtw_wdev)->p2p_enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -4166,14 +4166,14 @@ static s32 cfg80211_rtw_remain_on_channel(struct wiphy *wiphy, struct net_device
|
|||
}
|
||||
}
|
||||
|
||||
ready_on_channel = _TRUE;
|
||||
ready_on_channel = true;
|
||||
//pmlmeext->cur_channel = remain_ch;
|
||||
//set_channel_bwmode(padapter, remain_ch, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
|
||||
}else
|
||||
#endif //CONFIG_CONCURRENT_MODE
|
||||
if (remain_ch != pmlmeext->cur_channel )
|
||||
{
|
||||
ready_on_channel = _TRUE;
|
||||
ready_on_channel = true;
|
||||
//pmlmeext->cur_channel = remain_ch;
|
||||
//set_channel_bwmode(padapter, remain_ch, HAL_PRIME_CHNL_OFFSET_DONT_CARE, HT_CHANNEL_WIDTH_20);
|
||||
}
|
||||
|
@ -4191,7 +4191,7 @@ static s32 cfg80211_rtw_remain_on_channel(struct wiphy *wiphy, struct net_device
|
|||
ATOMIC_SET(&pwdev_priv->ro_ch_to, 0);
|
||||
#endif
|
||||
|
||||
if (ready_on_channel == _TRUE)
|
||||
if (ready_on_channel == true)
|
||||
{
|
||||
if ( !check_fwstate(&padapter->mlmepriv, _FW_LINKED ) )
|
||||
pmlmeext->cur_channel = remain_ch;
|
||||
|
@ -4217,7 +4217,7 @@ static s32 cfg80211_rtw_remain_on_channel(struct wiphy *wiphy, struct net_device
|
|||
|
||||
exit:
|
||||
if (err)
|
||||
pcfg80211_wdinfo->is_ro_ch = _FALSE;
|
||||
pcfg80211_wdinfo->is_ro_ch = false;
|
||||
|
||||
return err;
|
||||
}
|
||||
|
@ -4234,7 +4234,7 @@ static s32 cfg80211_rtw_cancel_remain_on_channel(struct wiphy *wiphy, struct net
|
|||
|
||||
DBG_88E(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
|
||||
|
||||
if (pcfg80211_wdinfo->is_ro_ch == _TRUE) {
|
||||
if (pcfg80211_wdinfo->is_ro_ch == true) {
|
||||
DBG_88E("%s, cancel ro ch timer\n", __func__);
|
||||
_cancel_timer_ex(&padapter->cfg80211_wdinfo.remain_on_ch_timer);
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
|
@ -4249,7 +4249,7 @@ static s32 cfg80211_rtw_cancel_remain_on_channel(struct wiphy *wiphy, struct net
|
|||
DBG_88E("%s, role=%d, p2p_state=%d\n", __func__, rtw_p2p_role(pwdinfo), rtw_p2p_state(pwdinfo));
|
||||
#endif
|
||||
}
|
||||
pcfg80211_wdinfo->is_ro_ch = _FALSE;
|
||||
pcfg80211_wdinfo->is_ro_ch = false;
|
||||
|
||||
return err;
|
||||
}
|
||||
|
@ -4262,7 +4262,7 @@ static int _cfg80211_rtw_mgmt_tx(struct net_device *ndev, u8 tx_ch, const u8 *bu
|
|||
struct pkt_attrib *pattrib;
|
||||
unsigned char *pframe;
|
||||
int ret = _FAIL;
|
||||
bool ack = _TRUE;
|
||||
bool ack = true;
|
||||
struct rtw_ieee80211_hdr *pwlanhdr;
|
||||
_adapter *padapter = (_adapter *)rtw_netdev_priv(ndev);
|
||||
struct rtw_wdev_priv *pwdev_priv = wdev_to_priv(padapter->rtw_wdev);
|
||||
|
@ -4285,10 +4285,10 @@ static int _cfg80211_rtw_mgmt_tx(struct net_device *ndev, u8 tx_ch, const u8 *bu
|
|||
rtw_scan_abort(padapter->pbuddy_adapter);
|
||||
#endif /* CONFIG_CONCURRENT_MODE */
|
||||
|
||||
if (padapter->cfg80211_wdinfo.is_ro_ch == _TRUE) {
|
||||
if (padapter->cfg80211_wdinfo.is_ro_ch == true) {
|
||||
//DBG_88E("%s, cancel ro ch timer\n", __func__);
|
||||
//_cancel_timer_ex(&padapter->cfg80211_wdinfo.remain_on_ch_timer);
|
||||
//padapter->cfg80211_wdinfo.is_ro_ch = _FALSE;
|
||||
//padapter->cfg80211_wdinfo.is_ro_ch = false;
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
DBG_88E("%s, extend ro ch time\n", __func__);
|
||||
_set_timer( &padapter->cfg80211_wdinfo.remain_on_ch_timer, pwdinfo->ext_listen_period);
|
||||
|
@ -4343,7 +4343,7 @@ static int _cfg80211_rtw_mgmt_tx(struct net_device *ndev, u8 tx_ch, const u8 *bu
|
|||
//update attribute
|
||||
pattrib = &pmgntframe->attrib;
|
||||
update_mgntframe_attrib(padapter, pattrib);
|
||||
pattrib->retry_ctrl = _FALSE;
|
||||
pattrib->retry_ctrl = false;
|
||||
|
||||
_rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
|
||||
|
||||
|
@ -4364,7 +4364,7 @@ static int _cfg80211_rtw_mgmt_tx(struct net_device *ndev, u8 tx_ch, const u8 *bu
|
|||
|
||||
pwfd_info = padapter->wdinfo.wfd_info;
|
||||
|
||||
if ( _TRUE == pwfd_info->wfd_enable )
|
||||
if ( true == pwfd_info->wfd_enable )
|
||||
{
|
||||
rtw_append_wfd_ie( padapter, pframe, &pattrib->pktlen );
|
||||
}
|
||||
|
@ -4375,7 +4375,7 @@ static int _cfg80211_rtw_mgmt_tx(struct net_device *ndev, u8 tx_ch, const u8 *bu
|
|||
|
||||
if (dump_mgntframe_and_wait_ack(padapter, pmgntframe) != _SUCCESS)
|
||||
{
|
||||
ack = _FALSE;
|
||||
ack = false;
|
||||
ret = _FAIL;
|
||||
|
||||
#ifdef CONFIG_DEBUG_CFG80211
|
||||
|
@ -4427,7 +4427,7 @@ static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct net_device *ndev,
|
|||
int tx_ret;
|
||||
u32 dump_limit = RTW_MAX_MGMT_TX_CNT;
|
||||
u32 dump_cnt = 0;
|
||||
bool ack = _TRUE;
|
||||
bool ack = true;
|
||||
u8 tx_ch = (u8)ieee80211_frequency_to_channel(chan->center_freq);
|
||||
u8 category, action;
|
||||
int type = (-1);
|
||||
|
@ -4450,7 +4450,7 @@ static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct net_device *ndev,
|
|||
cfg80211_action_tx_status(ndev, *cookie, buf, len, ack, GFP_KERNEL);
|
||||
#endif
|
||||
|
||||
if (rtw_action_frame_parse(buf, len, &category, &action) == _FALSE) {
|
||||
if (rtw_action_frame_parse(buf, len, &category, &action) == false) {
|
||||
DBG_88E(FUNC_NDEV_FMT" frame_control:0x%x\n", FUNC_NDEV_ARG(ndev),
|
||||
le16_to_cpu(((struct rtw_ieee80211_hdr_3addr *)buf)->frame_ctl));
|
||||
goto exit;
|
||||
|
@ -4458,7 +4458,7 @@ static int cfg80211_rtw_mgmt_tx(struct wiphy *wiphy, struct net_device *ndev,
|
|||
|
||||
DBG_88E("RTW_Tx:tx_ch=%d, da="MAC_FMT"\n", tx_ch, MAC_ARG(GetAddr1Ptr(buf)));
|
||||
#ifdef CONFIG_P2P
|
||||
if ((type = rtw_p2p_check_frames(padapter, buf, len, _TRUE)) >= 0)
|
||||
if ((type = rtw_p2p_check_frames(padapter, buf, len, true)) >= 0)
|
||||
goto dump;
|
||||
#endif
|
||||
if (category == RTW_WLAN_CATEGORY_PUBLIC)
|
||||
|
@ -4555,7 +4555,7 @@ static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *ndev, char *buf,
|
|||
_rtw_memcpy(pmlmepriv->wps_beacon_ie, wps_ie, wps_ielen);
|
||||
pmlmepriv->wps_beacon_ie_len = wps_ielen;
|
||||
|
||||
update_beacon(padapter, _VENDOR_SPECIFIC_IE_, wps_oui, _TRUE);
|
||||
update_beacon(padapter, _VENDOR_SPECIFIC_IE_, wps_oui, true);
|
||||
|
||||
}
|
||||
|
||||
|
@ -4618,7 +4618,7 @@ static int rtw_cfg80211_set_beacon_wpsp2pie(struct net_device *ndev, char *buf,
|
|||
}
|
||||
#endif //CONFIG_WFD
|
||||
|
||||
pmlmeext->bstart_bss = _TRUE;
|
||||
pmlmeext->bstart_bss = true;
|
||||
|
||||
}
|
||||
|
||||
|
@ -4692,7 +4692,7 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
|
|||
#ifdef CONFIG_P2P
|
||||
if ((p2p_ie=rtw_get_p2p_ie(buf, len, NULL, &p2p_ielen)))
|
||||
{
|
||||
u8 is_GO = _FALSE;
|
||||
u8 is_GO = false;
|
||||
u32 attr_contentlen = 0;
|
||||
u16 cap_attr=0;
|
||||
|
||||
|
@ -4708,14 +4708,14 @@ static int rtw_cfg80211_set_probe_resp_wpsp2pie(struct net_device *net, char *bu
|
|||
cap_attr = le16_to_cpu(cap_attr);
|
||||
grp_cap = (u8)((cap_attr >> 8)&0xff);
|
||||
|
||||
is_GO = (grp_cap&BIT(0)) ? _TRUE:_FALSE;
|
||||
is_GO = (grp_cap&BIT(0)) ? true:false;
|
||||
|
||||
if (is_GO)
|
||||
DBG_88E("Got P2P Capability Attr, grp_cap=0x%x, is_GO\n", grp_cap);
|
||||
}
|
||||
|
||||
|
||||
if (is_GO == _FALSE)
|
||||
if (is_GO == false)
|
||||
{
|
||||
if (pmlmepriv->p2p_probe_resp_ie)
|
||||
{
|
||||
|
@ -4926,7 +4926,7 @@ static void rtw_cfg80211_init_ht_capab(struct ieee80211_sta_ht_cap *ht_cap, enum
|
|||
#define MAX_BIT_RATE_40MHZ_MCS15 300 /* Mbps */
|
||||
#define MAX_BIT_RATE_40MHZ_MCS7 150 /* Mbps */
|
||||
|
||||
ht_cap->ht_supported = _TRUE;
|
||||
ht_cap->ht_supported = true;
|
||||
|
||||
ht_cap->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 |
|
||||
IEEE80211_HT_CAP_SGI_40 | IEEE80211_HT_CAP_SGI_20 |
|
||||
|
@ -5093,16 +5093,16 @@ int rtw_wdev_alloc(_adapter *padapter, struct device *dev)
|
|||
pwdev_priv->scan_request = NULL;
|
||||
_rtw_spinlock_init(&pwdev_priv->scan_req_lock);
|
||||
|
||||
pwdev_priv->p2p_enabled = _FALSE;
|
||||
pwdev_priv->provdisc_req_issued = _FALSE;
|
||||
pwdev_priv->p2p_enabled = false;
|
||||
pwdev_priv->provdisc_req_issued = false;
|
||||
rtw_wdev_invit_info_init(&pwdev_priv->invit_info);
|
||||
|
||||
pwdev_priv->bandroid_scan = _FALSE;
|
||||
pwdev_priv->bandroid_scan = false;
|
||||
|
||||
if (padapter->registrypriv.power_mgnt != PS_MODE_ACTIVE)
|
||||
pwdev_priv->power_mgmt = _TRUE;
|
||||
pwdev_priv->power_mgmt = true;
|
||||
else
|
||||
pwdev_priv->power_mgmt = _FALSE;
|
||||
pwdev_priv->power_mgmt = false;
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
ATOMIC_SET(&pwdev_priv->switch_ch_to, 1);
|
||||
|
@ -5168,7 +5168,7 @@ void rtw_wdev_unregister(struct wireless_dev *wdev)
|
|||
|
||||
pwdev_priv = wdev_to_priv(wdev);
|
||||
|
||||
rtw_cfg80211_indicate_scan_done(pwdev_priv, _TRUE);
|
||||
rtw_cfg80211_indicate_scan_done(pwdev_priv, true);
|
||||
|
||||
if (pwdev_priv->pmon_ndev) {
|
||||
DBG_88E("%s, unregister monitor interface\n", __func__);
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -137,7 +137,7 @@ int rtw_bt_sco = 3;// 0:Idle, 1:None-SCO, 2:SCO, 3:From Counter, 4.Busy, 5.Other
|
|||
int rtw_bt_ampdu =1 ;// 0:Disable BT control A-MPDU, 1:Enable BT control A-MPDU.
|
||||
#endif
|
||||
|
||||
int rtw_AcceptAddbaReq = _TRUE;// 0:Reject AP's Add BA req, 1:Accept AP's Add BA req.
|
||||
int rtw_AcceptAddbaReq = true;// 0:Reject AP's Add BA req, 1:Accept AP's Add BA req.
|
||||
|
||||
int rtw_antdiv_cfg = 2; // 0:OFF , 1:ON, 2:decide by Efuse config
|
||||
int rtw_antdiv_type = 0 ; //0:decide by efuse 1: for 88EE, 1Tx and 1RxCG are diversity.(2 Ant with SPDT), 2: for 88EE, 1Tx and 2Rx are diversity.( 2 Ant, Tx and RxCG are both on aux port, RxCS is on main port ), 3: for 88EE, 1Tx and 1RxCG are fixed.(1Ant, Tx and RxCG are both on aux port)
|
||||
|
@ -791,7 +791,7 @@ static int rtw_net_set_mac_address(struct net_device *pnetdev, void *p)
|
|||
_adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
|
||||
struct sockaddr *addr = p;
|
||||
|
||||
if (padapter->bup == _FALSE)
|
||||
if (padapter->bup == false)
|
||||
_rtw_memcpy(padapter->eeprompriv.mac_addr, addr->sa_data, ETH_ALEN);
|
||||
|
||||
return 0;
|
||||
|
@ -1014,7 +1014,7 @@ u32 rtw_start_drv_threads(_adapter *padapter)
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if (padapter->isprimary == _TRUE)
|
||||
if (padapter->isprimary == true)
|
||||
#endif //CONFIG_CONCURRENT_MODE
|
||||
{
|
||||
padapter->cmdThread = kthread_run(rtw_cmd_thread, padapter, "RTW_CMD_THREAD");
|
||||
|
@ -1040,7 +1040,7 @@ void rtw_stop_drv_threads (_adapter *padapter)
|
|||
RT_TRACE(_module_os_intfs_c_,_drv_info_,("+rtw_stop_drv_threads\n"));
|
||||
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if (padapter->isprimary == _TRUE)
|
||||
if (padapter->isprimary == true)
|
||||
#endif //CONFIG_CONCURRENT_MODE
|
||||
{
|
||||
//Below is to termindate rtw_cmd_thread & event_thread...
|
||||
|
@ -1092,7 +1092,7 @@ u8 rtw_init_default_value(_adapter *padapter)
|
|||
|
||||
//ht_priv
|
||||
#ifdef CONFIG_80211N_HT
|
||||
pmlmepriv->htpriv.ampdu_enable = _FALSE;//set to disabled
|
||||
pmlmepriv->htpriv.ampdu_enable = false;//set to disabled
|
||||
#endif
|
||||
|
||||
//security_priv
|
||||
|
@ -1115,8 +1115,8 @@ u8 rtw_init_default_value(_adapter *padapter)
|
|||
rtw_hal_def_value_init(padapter);
|
||||
|
||||
//misc.
|
||||
padapter->bReadPortCancel = _FALSE;
|
||||
padapter->bWritePortCancel = _FALSE;
|
||||
padapter->bReadPortCancel = false;
|
||||
padapter->bWritePortCancel = false;
|
||||
padapter->bRxRSSIDisplay = 0;
|
||||
padapter->bNotifyChannelChange = 0;
|
||||
#ifdef CONFIG_P2P
|
||||
|
@ -1133,15 +1133,15 @@ u8 rtw_reset_drv_sw(_adapter *padapter)
|
|||
|
||||
//hal_priv
|
||||
rtw_hal_def_value_init(padapter);
|
||||
padapter->bReadPortCancel = _FALSE;
|
||||
padapter->bWritePortCancel = _FALSE;
|
||||
padapter->bReadPortCancel = false;
|
||||
padapter->bWritePortCancel = false;
|
||||
padapter->bRxRSSIDisplay = 0;
|
||||
pmlmepriv->scan_interval = SCAN_INTERVAL;// 30*2 sec = 60sec
|
||||
|
||||
padapter->xmitpriv.tx_pkts = 0;
|
||||
padapter->recvpriv.rx_pkts = 0;
|
||||
|
||||
pmlmepriv->LinkDetectInfo.bBusyTraffic = _FALSE;
|
||||
pmlmepriv->LinkDetectInfo.bBusyTraffic = false;
|
||||
|
||||
_clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY |_FW_UNDER_LINKING);
|
||||
|
||||
|
@ -1422,16 +1422,16 @@ int _netdev_if2_open(struct net_device *pnetdev)
|
|||
|
||||
DBG_88E("+88eu_drv - if2_open, bup=%d\n", padapter->bup);
|
||||
|
||||
if (primary_padapter->bup == _FALSE || primary_padapter->hw_init_completed == _FALSE)
|
||||
if (primary_padapter->bup == false || primary_padapter->hw_init_completed == false)
|
||||
_netdev_open(primary_padapter->pnetdev);
|
||||
|
||||
if (padapter->bup == _FALSE && primary_padapter->bup == _TRUE &&
|
||||
primary_padapter->hw_init_completed == _TRUE) {
|
||||
if (padapter->bup == false && primary_padapter->bup == true &&
|
||||
primary_padapter->hw_init_completed == true) {
|
||||
int i;
|
||||
|
||||
padapter->bDriverStopped = _FALSE;
|
||||
padapter->bSurpriseRemoved = _FALSE;
|
||||
padapter->bCardDisableWOHSM = _FALSE;
|
||||
padapter->bDriverStopped = false;
|
||||
padapter->bSurpriseRemoved = false;
|
||||
padapter->bCardDisableWOHSM = false;
|
||||
|
||||
rtw_hal_clone_data(padapter, primary_padapter);
|
||||
|
||||
|
@ -1443,7 +1443,7 @@ int _netdev_if2_open(struct net_device *pnetdev)
|
|||
if (padapter->intf_start)
|
||||
padapter->intf_start(padapter);
|
||||
|
||||
padapter->hw_init_completed = _TRUE;
|
||||
padapter->hw_init_completed = true;
|
||||
|
||||
padapter->dir_dev = NULL;
|
||||
rtw_proc_init_one(pnetdev);
|
||||
|
@ -1452,9 +1452,9 @@ int _netdev_if2_open(struct net_device *pnetdev)
|
|||
rtw_cfg80211_init_wiphy(padapter);
|
||||
#endif
|
||||
|
||||
padapter->bup = _TRUE;
|
||||
padapter->bup = true;
|
||||
}
|
||||
padapter->net_closed = _FALSE;
|
||||
padapter->net_closed = false;
|
||||
_set_timer(&padapter->mlmepriv.dynamic_chk_timer, 2000);
|
||||
if (!rtw_netif_queue_stopped(pnetdev))
|
||||
rtw_netif_start_queue(pnetdev);
|
||||
|
@ -1466,7 +1466,7 @@ int _netdev_if2_open(struct net_device *pnetdev)
|
|||
|
||||
netdev_if2_open_error:
|
||||
|
||||
padapter->bup = _FALSE;
|
||||
padapter->bup = false;
|
||||
|
||||
netif_carrier_off(pnetdev);
|
||||
rtw_netif_stop_queue(pnetdev);
|
||||
|
@ -1489,7 +1489,7 @@ static int netdev_if2_close(struct net_device *pnetdev)
|
|||
{
|
||||
_adapter *padapter = (_adapter *)rtw_netdev_priv(pnetdev);
|
||||
|
||||
padapter->net_closed = _TRUE;
|
||||
padapter->net_closed = true;
|
||||
|
||||
if (pnetdev) {
|
||||
if (!rtw_netif_queue_stopped(pnetdev))
|
||||
|
@ -1498,7 +1498,7 @@ static int netdev_if2_close(struct net_device *pnetdev)
|
|||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
rtw_scan_abort(padapter);
|
||||
wdev_to_priv(padapter->rtw_wdev)->bandroid_scan = _FALSE;
|
||||
wdev_to_priv(padapter->rtw_wdev)->bandroid_scan = false;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
@ -1552,13 +1552,13 @@ _adapter *rtw_drv_if2_init(_adapter *primary_padapter, char *name,
|
|||
padapter->psetbw_mutex = primary_padapter->psetbw_mutex;
|
||||
padapter->hw_init_mutex = primary_padapter->hw_init_mutex;
|
||||
|
||||
padapter->bup = _FALSE;
|
||||
padapter->net_closed = _TRUE;
|
||||
padapter->hw_init_completed = _FALSE;
|
||||
padapter->bup = false;
|
||||
padapter->net_closed = true;
|
||||
padapter->hw_init_completed = false;
|
||||
|
||||
|
||||
//set adapter_type/iface type
|
||||
padapter->isprimary = _FALSE;
|
||||
padapter->isprimary = false;
|
||||
padapter->adapter_type = SECONDARY_ADAPTER;
|
||||
padapter->pbuddy_adapter = primary_padapter;
|
||||
#ifndef CONFIG_HWPORT_SWAP //Port0 -> Pri , Port1 -> Sec
|
||||
|
@ -1715,8 +1715,8 @@ void rtw_drv_if2_stop(_adapter *if2)
|
|||
|
||||
rtw_cancel_all_timer(padapter);
|
||||
|
||||
if (padapter->bup == _TRUE) {
|
||||
padapter->bDriverStopped = _TRUE;
|
||||
if (padapter->bup == true) {
|
||||
padapter->bDriverStopped = true;
|
||||
#ifdef CONFIG_XMIT_ACK
|
||||
if (padapter->xmitpriv.ack_tx)
|
||||
rtw_ack_tx_done(&padapter->xmitpriv, RTW_SCTX_DONE_DRV_STOP);
|
||||
|
@ -1727,7 +1727,7 @@ void rtw_drv_if2_stop(_adapter *if2)
|
|||
|
||||
rtw_stop_drv_threads(padapter);
|
||||
|
||||
padapter->bup = _FALSE;
|
||||
padapter->bup = false;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
|
@ -1795,15 +1795,15 @@ int _netdev_open(struct net_device *pnetdev)
|
|||
RT_TRACE(_module_os_intfs_c_,_drv_info_,("+88eu_drv - dev_open\n"));
|
||||
DBG_88E("+88eu_drv - drv_open, bup=%d\n", padapter->bup);
|
||||
|
||||
if (pwrctrlpriv->ps_flag == _TRUE){
|
||||
padapter->net_closed = _FALSE;
|
||||
if (pwrctrlpriv->ps_flag == true){
|
||||
padapter->net_closed = false;
|
||||
goto netdev_open_normal_process;
|
||||
}
|
||||
|
||||
if (padapter->bup == _FALSE) {
|
||||
padapter->bDriverStopped = _FALSE;
|
||||
padapter->bSurpriseRemoved = _FALSE;
|
||||
padapter->bCardDisableWOHSM = _FALSE;
|
||||
if (padapter->bup == false) {
|
||||
padapter->bDriverStopped = false;
|
||||
padapter->bSurpriseRemoved = false;
|
||||
padapter->bCardDisableWOHSM = false;
|
||||
|
||||
status = rtw_hal_init(padapter);
|
||||
if (status ==_FAIL) {
|
||||
|
@ -1843,13 +1843,13 @@ int _netdev_open(struct net_device *pnetdev)
|
|||
#endif
|
||||
rtw_led_control(padapter, LED_CTL_NO_LINK);
|
||||
|
||||
padapter->bup = _TRUE;
|
||||
padapter->bup = true;
|
||||
}
|
||||
padapter->net_closed = _FALSE;
|
||||
padapter->net_closed = false;
|
||||
|
||||
_set_timer(&padapter->mlmepriv.dynamic_chk_timer, 2000);
|
||||
|
||||
padapter->pwrctrlpriv.bips_processing = _FALSE;
|
||||
padapter->pwrctrlpriv.bips_processing = false;
|
||||
rtw_set_pwr_state_check_timer(&padapter->pwrctrlpriv);
|
||||
|
||||
if (!rtw_netif_queue_stopped(pnetdev))
|
||||
|
@ -1866,7 +1866,7 @@ netdev_open_normal_process:
|
|||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
{
|
||||
_adapter *sec_adapter = padapter->pbuddy_adapter;
|
||||
if (sec_adapter && (sec_adapter->bup == _FALSE || sec_adapter->hw_init_completed == _FALSE))
|
||||
if (sec_adapter && (sec_adapter->bup == false || sec_adapter->hw_init_completed == false))
|
||||
_netdev_if2_open(sec_adapter->pnetdev);
|
||||
}
|
||||
#endif
|
||||
|
@ -1878,7 +1878,7 @@ netdev_open_normal_process:
|
|||
|
||||
netdev_open_error:
|
||||
|
||||
padapter->bup = _FALSE;
|
||||
padapter->bup = false;
|
||||
|
||||
netif_carrier_off(pnetdev);
|
||||
rtw_netif_stop_queue(pnetdev);
|
||||
|
@ -1905,12 +1905,12 @@ int netdev_open(struct net_device *pnetdev)
|
|||
int ips_netdrv_open(_adapter *padapter)
|
||||
{
|
||||
int status = _SUCCESS;
|
||||
padapter->net_closed = _FALSE;
|
||||
padapter->net_closed = false;
|
||||
DBG_88E("===> %s.........\n",__func__);
|
||||
|
||||
padapter->bDriverStopped = _FALSE;
|
||||
padapter->bSurpriseRemoved = _FALSE;
|
||||
padapter->bCardDisableWOHSM = _FALSE;
|
||||
padapter->bDriverStopped = false;
|
||||
padapter->bSurpriseRemoved = false;
|
||||
padapter->bCardDisableWOHSM = false;
|
||||
|
||||
status = rtw_hal_init(padapter);
|
||||
if (status ==_FAIL) {
|
||||
|
@ -1953,13 +1953,13 @@ void rtw_ips_pwr_down(_adapter *padapter)
|
|||
u32 start_time = rtw_get_current_time();
|
||||
DBG_88E("===> rtw_ips_pwr_down...................\n");
|
||||
|
||||
padapter->bCardDisableWOHSM = _TRUE;
|
||||
padapter->net_closed = _TRUE;
|
||||
padapter->bCardDisableWOHSM = true;
|
||||
padapter->net_closed = true;
|
||||
|
||||
rtw_led_control(padapter, LED_CTL_POWER_OFF);
|
||||
|
||||
rtw_ips_dev_unload(padapter);
|
||||
padapter->bCardDisableWOHSM = _FALSE;
|
||||
padapter->bCardDisableWOHSM = false;
|
||||
DBG_88E("<=== rtw_ips_pwr_down..................... in %dms\n", rtw_get_passing_time_ms(start_time));
|
||||
}
|
||||
#endif
|
||||
|
@ -1976,7 +1976,7 @@ void rtw_ips_dev_unload(_adapter *padapter)
|
|||
padapter->intf_stop(padapter);
|
||||
|
||||
//s5.
|
||||
if (padapter->bSurpriseRemoved == _FALSE)
|
||||
if (padapter->bSurpriseRemoved == false)
|
||||
rtw_hal_deinit(padapter);
|
||||
}
|
||||
|
||||
|
@ -2005,7 +2005,7 @@ int pm_netdev_open(struct net_device *pnetdev,u8 bnormal)
|
|||
{
|
||||
int status;
|
||||
|
||||
if (_TRUE == bnormal)
|
||||
if (true == bnormal)
|
||||
status = netdev_open(pnetdev);
|
||||
#ifdef CONFIG_IPS
|
||||
else
|
||||
|
@ -2021,11 +2021,11 @@ static int netdev_close(struct net_device *pnetdev)
|
|||
|
||||
RT_TRACE(_module_os_intfs_c_,_drv_info_,("+88eu_drv - drv_close\n"));
|
||||
|
||||
if (padapter->pwrctrlpriv.bInternalAutoSuspend == _TRUE) {
|
||||
if (padapter->pwrctrlpriv.bInternalAutoSuspend == true) {
|
||||
if (padapter->pwrctrlpriv.rf_pwrstate == rf_off)
|
||||
padapter->pwrctrlpriv.ps_flag = _TRUE;
|
||||
padapter->pwrctrlpriv.ps_flag = true;
|
||||
}
|
||||
padapter->net_closed = _TRUE;
|
||||
padapter->net_closed = true;
|
||||
|
||||
if (padapter->pwrctrlpriv.rf_pwrstate == rf_on){
|
||||
DBG_88E("(2)88eu_drv - drv_close, bup=%d, hw_init_completed=%d\n", padapter->bup, padapter->hw_init_completed);
|
||||
|
@ -2039,13 +2039,13 @@ static int netdev_close(struct net_device *pnetdev)
|
|||
#ifndef CONFIG_ANDROID
|
||||
//s2.
|
||||
LeaveAllPowerSaveMode(padapter);
|
||||
rtw_disassoc_cmd(padapter, 500, _FALSE);
|
||||
rtw_disassoc_cmd(padapter, 500, false);
|
||||
//s2-2. indicate disconnect to os
|
||||
rtw_indicate_disconnect(padapter);
|
||||
//s2-3.
|
||||
rtw_free_assoc_resources(padapter, 1);
|
||||
//s2-4.
|
||||
rtw_free_network_queue(padapter,_TRUE);
|
||||
rtw_free_network_queue(padapter,true);
|
||||
#endif
|
||||
// Close LED
|
||||
rtw_led_control(padapter, LED_CTL_POWER_OFF);
|
||||
|
@ -2057,15 +2057,15 @@ static int netdev_close(struct net_device *pnetdev)
|
|||
|
||||
#ifdef CONFIG_P2P
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if (wdev_to_priv(padapter->rtw_wdev)->p2p_enabled == _TRUE)
|
||||
wdev_to_priv(padapter->rtw_wdev)->p2p_enabled = _FALSE;
|
||||
if (wdev_to_priv(padapter->rtw_wdev)->p2p_enabled == true)
|
||||
wdev_to_priv(padapter->rtw_wdev)->p2p_enabled = false;
|
||||
#endif
|
||||
rtw_p2p_enable(padapter, P2P_ROLE_DISABLE);
|
||||
#endif //CONFIG_P2P
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
rtw_scan_abort(padapter);
|
||||
wdev_to_priv(padapter->rtw_wdev)->bandroid_scan = _FALSE;
|
||||
wdev_to_priv(padapter->rtw_wdev)->bandroid_scan = false;
|
||||
padapter->rtw_wdev->iftype = NL80211_IFTYPE_MONITOR; //set this at the end
|
||||
#endif //CONFIG_IOCTL_CFG80211
|
||||
|
||||
|
|
|
@ -153,9 +153,9 @@ int _rtw_memcmp(void *dst, void *src, u32 sz)
|
|||
{
|
||||
//under Linux/GNU/GLibc, the return value of memcmp for two same mem. chunk is 0
|
||||
if (!(memcmp(dst, src, sz)))
|
||||
return _TRUE;
|
||||
return true;
|
||||
else
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
void _rtw_memset(void *pbuf, int c, u32 sz)
|
||||
|
@ -176,9 +176,9 @@ Otherwise, there will be racing condition.
|
|||
u32 rtw_is_list_empty(_list *phead)
|
||||
{
|
||||
if (list_empty(phead))
|
||||
return _TRUE;
|
||||
return true;
|
||||
else
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
void rtw_list_insert_head(_list *plist, _list *phead)
|
||||
|
@ -276,9 +276,9 @@ u32 _rtw_queue_empty(_queue *pqueue)
|
|||
u32 rtw_end_of_queue_search(_list *head, _list *plist)
|
||||
{
|
||||
if (head == plist)
|
||||
return _TRUE;
|
||||
return true;
|
||||
else
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
u32 rtw_get_current_time(void)
|
||||
|
@ -650,14 +650,14 @@ static int storeToFile(char *path, u8* buf, u32 sz)
|
|||
/*
|
||||
* Test if the specifi @param path is a file and readable
|
||||
* @param path the path of the file to test
|
||||
* @return _TRUE or _FALSE
|
||||
* @return true or false
|
||||
*/
|
||||
int rtw_is_file_readable(char *path)
|
||||
{
|
||||
if (isFileReadable(path) == 0)
|
||||
return _TRUE;
|
||||
return true;
|
||||
else
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -892,22 +892,22 @@ keep_ori:
|
|||
* rtw_cbuf_full - test if cbuf is full
|
||||
* @cbuf: pointer of struct rtw_cbuf
|
||||
*
|
||||
* Returns: _TRUE if cbuf is full
|
||||
* Returns: true if cbuf is full
|
||||
*/
|
||||
inline bool rtw_cbuf_full(struct rtw_cbuf *cbuf)
|
||||
{
|
||||
return (cbuf->write == cbuf->read-1)? _TRUE : _FALSE;
|
||||
return (cbuf->write == cbuf->read-1)? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
* rtw_cbuf_empty - test if cbuf is empty
|
||||
* @cbuf: pointer of struct rtw_cbuf
|
||||
*
|
||||
* Returns: _TRUE if cbuf is empty
|
||||
* Returns: true if cbuf is empty
|
||||
*/
|
||||
inline bool rtw_cbuf_empty(struct rtw_cbuf *cbuf)
|
||||
{
|
||||
return (cbuf->write == cbuf->read)? _TRUE : _FALSE;
|
||||
return (cbuf->write == cbuf->read)? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -916,7 +916,7 @@ inline bool rtw_cbuf_empty(struct rtw_cbuf *cbuf)
|
|||
* @buf: pointer to push in
|
||||
*
|
||||
* Lock free operation, be careful of the use scheme
|
||||
* Returns: _TRUE push success
|
||||
* Returns: true push success
|
||||
*/
|
||||
bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf)
|
||||
{
|
||||
|
|
|
@ -68,7 +68,7 @@ int rtw_os_recvbuf_resource_alloc(_adapter *padapter, struct recv_buf *precvbuf)
|
|||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
|
||||
struct usb_device *pusbd = pdvobjpriv->pusbdev;
|
||||
|
||||
precvbuf->irp_pending = _FALSE;
|
||||
precvbuf->irp_pending = false;
|
||||
precvbuf->purb = usb_alloc_urb(0, GFP_KERNEL);
|
||||
if (precvbuf->purb == NULL){
|
||||
res = _FAIL;
|
||||
|
@ -76,7 +76,7 @@ int rtw_os_recvbuf_resource_alloc(_adapter *padapter, struct recv_buf *precvbuf)
|
|||
|
||||
precvbuf->pskb = NULL;
|
||||
|
||||
precvbuf->reuse = _FALSE;
|
||||
precvbuf->reuse = false;
|
||||
|
||||
precvbuf->pallocated_buf = precvbuf->pbuf = NULL;
|
||||
|
||||
|
@ -154,7 +154,7 @@ void rtw_handle_tkip_mic_err(_adapter *padapter,u8 bgroup)
|
|||
|
||||
if ( cur_time - psecuritypriv->last_mic_err_time < 60*HZ )
|
||||
{
|
||||
psecuritypriv->btkip_countermeasure = _TRUE;
|
||||
psecuritypriv->btkip_countermeasure = true;
|
||||
psecuritypriv->last_mic_err_time = 0;
|
||||
psecuritypriv->btkip_countermeasure_time = cur_time;
|
||||
}
|
||||
|
@ -295,7 +295,7 @@ _func_enter_;
|
|||
("skb->head=%p skb->data=%p skb->tail=%p skb->end=%p skb->len=%d\n",
|
||||
skb->head, skb->data, skb_tail_pointer(skb), skb_end_pointer(skb), skb->len));
|
||||
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE) {
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == true) {
|
||||
_pkt *pskb2=NULL;
|
||||
struct sta_info *psta = NULL;
|
||||
struct sta_priv *pstapriv = &padapter->stapriv;
|
||||
|
@ -304,7 +304,7 @@ _func_enter_;
|
|||
|
||||
//DBG_88E("bmcast=%d\n", bmcast);
|
||||
|
||||
if (_rtw_memcmp(pattrib->dst, myid(&padapter->eeprompriv), ETH_ALEN)==_FALSE) {
|
||||
if (_rtw_memcmp(pattrib->dst, myid(&padapter->eeprompriv), ETH_ALEN)==false) {
|
||||
if (bmcast) {
|
||||
psta = rtw_get_bcmc_stainfo(padapter);
|
||||
pskb2 = skb_clone(skb, GFP_ATOMIC);
|
||||
|
@ -351,7 +351,7 @@ _func_enter_;
|
|||
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) )
|
||||
{
|
||||
int nat25_handle_frame(_adapter *priv, struct sk_buff *skb);
|
||||
if (nat25_handle_frame(padapter, skb) == -1) {
|
||||
|
@ -424,9 +424,9 @@ void rtw_os_read_port(_adapter *padapter, struct recv_buf *precvbuf)
|
|||
dev_kfree_skb_any(precvbuf->pskb);
|
||||
|
||||
precvbuf->pskb = NULL;
|
||||
precvbuf->reuse = _FALSE;
|
||||
precvbuf->reuse = false;
|
||||
|
||||
if (precvbuf->irp_pending == _FALSE)
|
||||
if (precvbuf->irp_pending == false)
|
||||
{
|
||||
rtw_read_port(padapter, precvpriv->ff_hwaddr, 0, (unsigned char *)precvbuf);
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@ typedef struct android_wifi_priv_cmd {
|
|||
* time (only) in dhd_open, subsequential wifi on will be handled by
|
||||
* wl_android_wifi_on
|
||||
*/
|
||||
static int g_wifi_on = _TRUE;
|
||||
static int g_wifi_on = true;
|
||||
|
||||
|
||||
#ifdef PNO_SUPPORT
|
||||
|
@ -244,7 +244,7 @@ int rtw_android_get_rssi(struct net_device *net, char *command, int total_len)
|
|||
struct wlan_network *pcur_network = &pmlmepriv->cur_network;
|
||||
int bytes_written = 0;
|
||||
|
||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE) {
|
||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == true) {
|
||||
bytes_written += snprintf(&command[bytes_written], total_len, "%s rssi %d",
|
||||
pcur_network->network.Ssid.Ssid, padapter->recvpriv.rssi);
|
||||
}
|
||||
|
@ -305,7 +305,7 @@ int rtw_android_set_block(struct net_device *net, char *command, int total_len)
|
|||
char *block_value = command + strlen(android_wifi_cmd_str[ANDROID_WIFI_CMD_BLOCK]) + 1;
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
wdev_to_priv(adapter->rtw_wdev)->block = (*block_value=='0')?_FALSE:_TRUE;
|
||||
wdev_to_priv(adapter->rtw_wdev)->block = (*block_value=='0')?false:true;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
|
@ -395,7 +395,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
//rtw_set_scan_mode((_adapter *)rtw_netdev_priv(net), SCAN_ACTIVE);
|
||||
#ifdef CONFIG_PLATFORM_MSTAR_TITANIA12
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
(wdev_to_priv(net->ieee80211_ptr))->bandroid_scan = _TRUE;
|
||||
(wdev_to_priv(net->ieee80211_ptr))->bandroid_scan = true;
|
||||
#endif //CONFIG_IOCTL_CFG80211
|
||||
#endif //CONFIG_PLATFORM_MSTAR_TITANIA12
|
||||
break;
|
||||
|
@ -496,7 +496,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
_adapter* padapter = ( _adapter * ) rtw_netdev_priv(net);
|
||||
|
||||
pwfd_info = &padapter->wfd_info;
|
||||
pwfd_info->wfd_enable = _TRUE;
|
||||
pwfd_info->wfd_enable = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -510,7 +510,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
|
|||
_adapter* padapter = ( _adapter * ) rtw_netdev_priv(net);
|
||||
|
||||
pwfd_info = &padapter->wfd_info;
|
||||
pwfd_info->wfd_enable = _FALSE;
|
||||
pwfd_info->wfd_enable = false;
|
||||
break;
|
||||
}
|
||||
case ANDROID_WIFI_CMD_WFD_SET_TCPPORT:
|
||||
|
|
|
@ -559,10 +559,10 @@ _func_enter_;
|
|||
DBG_88E("nr_endpoint=%d, in_num=%d, out_num=%d\n\n", pdvobjpriv->nr_endpoint, pdvobjpriv->RtNumInPipes, pdvobjpriv->RtNumOutPipes);
|
||||
|
||||
if (pusbd->speed == USB_SPEED_HIGH) {
|
||||
pdvobjpriv->ishighspeed = _TRUE;
|
||||
pdvobjpriv->ishighspeed = true;
|
||||
DBG_88E("USB_SPEED_HIGH\n");
|
||||
} else {
|
||||
pdvobjpriv->ishighspeed = _FALSE;
|
||||
pdvobjpriv->ishighspeed = false;
|
||||
DBG_88E("NON USB_SPEED_HIGH\n");
|
||||
}
|
||||
|
||||
|
@ -641,11 +641,11 @@ static void usb_intf_stop(_adapter *padapter)
|
|||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+usb_intf_stop\n"));
|
||||
|
||||
//disabel_hw_interrupt
|
||||
if (padapter->bSurpriseRemoved == _FALSE)
|
||||
if (padapter->bSurpriseRemoved == false)
|
||||
{
|
||||
//device still exists, so driver can do i/o operation
|
||||
//TODO:
|
||||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("SurpriseRemoved==_FALSE\n"));
|
||||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("SurpriseRemoved==false\n"));
|
||||
}
|
||||
|
||||
//cancel in irp
|
||||
|
@ -666,11 +666,11 @@ static void rtw_dev_unload(_adapter *padapter)
|
|||
u8 val8;
|
||||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+rtw_dev_unload\n"));
|
||||
|
||||
if (padapter->bup == _TRUE)
|
||||
if (padapter->bup == true)
|
||||
{
|
||||
DBG_88E("===> rtw_dev_unload\n");
|
||||
|
||||
padapter->bDriverStopped = _TRUE;
|
||||
padapter->bDriverStopped = true;
|
||||
#ifdef CONFIG_XMIT_ACK
|
||||
if (padapter->xmitpriv.ack_tx)
|
||||
rtw_ack_tx_done(&padapter->xmitpriv, RTW_SCTX_DONE_DRV_STOP);
|
||||
|
@ -688,29 +688,29 @@ static void rtw_dev_unload(_adapter *padapter)
|
|||
|
||||
|
||||
//s5.
|
||||
if (padapter->bSurpriseRemoved == _FALSE)
|
||||
if (padapter->bSurpriseRemoved == false)
|
||||
{
|
||||
//DBG_88E("r871x_dev_unload()->rtl871x_hal_deinit()\n");
|
||||
#ifdef CONFIG_WOWLAN
|
||||
if ((padapter->pwrctrlpriv.bSupportRemoteWakeup==_TRUE)&&(padapter->pwrctrlpriv.wowlan_mode==_TRUE)){
|
||||
DBG_88E("%s bSupportWakeOnWlan==_TRUE do not run rtw_hal_deinit()\n",__func__);
|
||||
if ((padapter->pwrctrlpriv.bSupportRemoteWakeup==true)&&(padapter->pwrctrlpriv.wowlan_mode==true)){
|
||||
DBG_88E("%s bSupportWakeOnWlan==true do not run rtw_hal_deinit()\n",__func__);
|
||||
}
|
||||
else
|
||||
#endif //CONFIG_WOWLAN
|
||||
{
|
||||
rtw_hal_deinit(padapter);
|
||||
}
|
||||
padapter->bSurpriseRemoved = _TRUE;
|
||||
padapter->bSurpriseRemoved = true;
|
||||
}
|
||||
|
||||
padapter->bup = _FALSE;
|
||||
padapter->bup = false;
|
||||
#ifdef CONFIG_WOWLAN
|
||||
padapter->hw_init_completed=_FALSE;
|
||||
padapter->hw_init_completed=false;
|
||||
#endif //CONFIG_WOWLAN
|
||||
}
|
||||
else
|
||||
{
|
||||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("r871x_dev_unload():padapter->bup == _FALSE\n" ));
|
||||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("r871x_dev_unload():padapter->bup == false\n" ));
|
||||
}
|
||||
|
||||
DBG_88E("<=== rtw_dev_unload\n");
|
||||
|
@ -777,8 +777,8 @@ int rtw_hw_suspend(_adapter *padapter )
|
|||
|
||||
DBG_88E("==> rtw_hw_suspend\n");
|
||||
_enter_pwrlock(&pwrpriv->lock);
|
||||
pwrpriv->bips_processing = _TRUE;
|
||||
//padapter->net_closed = _TRUE;
|
||||
pwrpriv->bips_processing = true;
|
||||
//padapter->net_closed = true;
|
||||
//s1.
|
||||
if (pnetdev)
|
||||
{
|
||||
|
@ -787,7 +787,7 @@ int rtw_hw_suspend(_adapter *padapter )
|
|||
}
|
||||
|
||||
//s2.
|
||||
rtw_disassoc_cmd(padapter, 500, _FALSE);
|
||||
rtw_disassoc_cmd(padapter, 500, false);
|
||||
|
||||
//s2-2. indicate disconnect to os
|
||||
//rtw_indicate_disconnect(padapter);
|
||||
|
@ -813,12 +813,12 @@ int rtw_hw_suspend(_adapter *padapter )
|
|||
rtw_free_assoc_resources(padapter, 1);
|
||||
|
||||
//s2-4.
|
||||
rtw_free_network_queue(padapter,_TRUE);
|
||||
rtw_free_network_queue(padapter,true);
|
||||
#ifdef CONFIG_IPS
|
||||
rtw_ips_dev_unload(padapter);
|
||||
#endif
|
||||
pwrpriv->rf_pwrstate = rf_off;
|
||||
pwrpriv->bips_processing = _FALSE;
|
||||
pwrpriv->bips_processing = false;
|
||||
|
||||
_exit_pwrlock(&pwrpriv->lock);
|
||||
}
|
||||
|
@ -846,10 +846,10 @@ int rtw_hw_resume(_adapter *padapter)
|
|||
{
|
||||
DBG_88E("==> rtw_hw_resume\n");
|
||||
_enter_pwrlock(&pwrpriv->lock);
|
||||
pwrpriv->bips_processing = _TRUE;
|
||||
pwrpriv->bips_processing = true;
|
||||
rtw_reset_drv_sw(padapter);
|
||||
|
||||
if (pm_netdev_open(pnetdev,_FALSE) != 0)
|
||||
if (pm_netdev_open(pnetdev,false) != 0)
|
||||
{
|
||||
_exit_pwrlock(&pwrpriv->lock);
|
||||
goto error_exit;
|
||||
|
@ -863,11 +863,11 @@ int rtw_hw_resume(_adapter *padapter)
|
|||
else
|
||||
netif_wake_queue(pnetdev);
|
||||
|
||||
pwrpriv->bkeepfwalive = _FALSE;
|
||||
pwrpriv->brfoffbyhw = _FALSE;
|
||||
pwrpriv->bkeepfwalive = false;
|
||||
pwrpriv->brfoffbyhw = false;
|
||||
|
||||
pwrpriv->rf_pwrstate = rf_on;
|
||||
pwrpriv->bips_processing = _FALSE;
|
||||
pwrpriv->bips_processing = false;
|
||||
|
||||
_exit_pwrlock(&pwrpriv->lock);
|
||||
}
|
||||
|
@ -906,9 +906,9 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
|
|||
|
||||
#ifdef CONFIG_WOWLAN
|
||||
if (check_fwstate(pmlmepriv, _FW_LINKED))
|
||||
padapter->pwrctrlpriv.wowlan_mode = _TRUE;
|
||||
padapter->pwrctrlpriv.wowlan_mode = true;
|
||||
else
|
||||
padapter->pwrctrlpriv.wowlan_mode = _FALSE;
|
||||
padapter->pwrctrlpriv.wowlan_mode = false;
|
||||
#endif
|
||||
|
||||
if ((!padapter->bup) || (padapter->bDriverStopped)||(padapter->bSurpriseRemoved))
|
||||
|
@ -925,19 +925,19 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
|
|||
// The FW command register update must after MAC and FW init ready.
|
||||
if ((padapter->bFWReady) && ( padapter->pwrctrlpriv.bHWPwrPindetect ) && (padapter->registrypriv.usbss_enable ))
|
||||
{
|
||||
u8 bOpen = _TRUE;
|
||||
u8 bOpen = true;
|
||||
rtw_interface_ps_func(padapter,HAL_USB_SELECT_SUSPEND,&bOpen);
|
||||
//rtl8192c_set_FwSelectSuspend_cmd(padapter,_TRUE ,500);//note fw to support hw power down ping detect
|
||||
//rtl8192c_set_FwSelectSuspend_cmd(padapter,true ,500);//note fw to support hw power down ping detect
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
pwrpriv->bInSuspend = _TRUE;
|
||||
pwrpriv->bInSuspend = true;
|
||||
rtw_cancel_all_timer(padapter);
|
||||
LeaveAllPowerSaveMode(padapter);
|
||||
|
||||
_enter_pwrlock(&pwrpriv->lock);
|
||||
//padapter->net_closed = _TRUE;
|
||||
//padapter->net_closed = true;
|
||||
//s1.
|
||||
if (pnetdev)
|
||||
{
|
||||
|
@ -946,7 +946,7 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_WOWLAN
|
||||
if (padapter->pwrctrlpriv.bSupportRemoteWakeup==_TRUE&&padapter->pwrctrlpriv.wowlan_mode==_TRUE){
|
||||
if (padapter->pwrctrlpriv.bSupportRemoteWakeup==true&&padapter->pwrctrlpriv.wowlan_mode==true){
|
||||
//set H2C command
|
||||
poidparam.subcode=WOWLAN_ENABLE;
|
||||
padapter->HalFunc.SetHwRegHandler(padapter,HW_VAR_WOWLAN,(u8 *)&poidparam);
|
||||
|
@ -955,7 +955,7 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
|
|||
#else
|
||||
{
|
||||
//s2.
|
||||
rtw_disassoc_cmd(padapter, 0, _FALSE);
|
||||
rtw_disassoc_cmd(padapter, 0, false);
|
||||
}
|
||||
#endif //CONFIG_WOWLAN
|
||||
|
||||
|
@ -980,12 +980,12 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
|
|||
if (!pwrpriv->bInternalAutoSuspend )
|
||||
#endif
|
||||
//s2-4.
|
||||
rtw_free_network_queue(padapter, _TRUE);
|
||||
rtw_free_network_queue(padapter, true);
|
||||
|
||||
rtw_dev_unload(padapter);
|
||||
#ifdef CONFIG_AUTOSUSPEND
|
||||
pwrpriv->rf_pwrstate = rf_off;
|
||||
pwrpriv->bips_processing = _FALSE;
|
||||
pwrpriv->bips_processing = false;
|
||||
#endif
|
||||
_exit_pwrlock(&pwrpriv->lock);
|
||||
|
||||
|
@ -1024,7 +1024,7 @@ static int rtw_resume(struct usb_interface *pusb_intf)
|
|||
if (rtw_is_earlysuspend_registered(pwrpriv)) {
|
||||
#endif //CONFIG_WOWLAN
|
||||
//jeff: bypass resume here, do in late_resume
|
||||
pwrpriv->do_late_resume = _TRUE;
|
||||
pwrpriv->do_late_resume = true;
|
||||
} else {
|
||||
ret = rtw_resume_process(padapter);
|
||||
}
|
||||
|
@ -1069,19 +1069,19 @@ int rtw_resume_process(_adapter *padapter)
|
|||
#endif
|
||||
|
||||
DBG_88E("pwrpriv->bAutoResume (%x)\n",pwrpriv->bAutoResume );
|
||||
if ( _TRUE == pwrpriv->bAutoResume ){
|
||||
pwrpriv->bInternalAutoSuspend = _FALSE;
|
||||
pwrpriv->bAutoResume=_FALSE;
|
||||
if ( true == pwrpriv->bAutoResume ){
|
||||
pwrpriv->bInternalAutoSuspend = false;
|
||||
pwrpriv->bAutoResume=false;
|
||||
DBG_88E("pwrpriv->bAutoResume (%x) pwrpriv->bInternalAutoSuspend(%x)\n",pwrpriv->bAutoResume,pwrpriv->bInternalAutoSuspend );
|
||||
|
||||
}
|
||||
#endif //#ifdef CONFIG_AUTOSUSPEND
|
||||
#endif //#ifdef CONFIG_BT_COEXIST
|
||||
rtw_reset_drv_sw(padapter);
|
||||
pwrpriv->bkeepfwalive = _FALSE;
|
||||
pwrpriv->bkeepfwalive = false;
|
||||
|
||||
DBG_88E("bkeepfwalive(%x)\n",pwrpriv->bkeepfwalive);
|
||||
if (pm_netdev_open(pnetdev,_TRUE) != 0)
|
||||
if (pm_netdev_open(pnetdev,true) != 0)
|
||||
goto exit;
|
||||
|
||||
netif_device_attach(pnetdev);
|
||||
|
@ -1095,24 +1095,24 @@ int rtw_resume_process(_adapter *padapter)
|
|||
// The FW command register update must after MAC and FW init ready.
|
||||
if ((padapter->bFWReady) && ( padapter->pwrctrlpriv.bHWPwrPindetect ) && (padapter->registrypriv.usbss_enable ))
|
||||
{
|
||||
//rtl8192c_set_FwSelectSuspend_cmd(padapter,_FALSE ,500);//note fw to support hw power down ping detect
|
||||
u8 bOpen = _FALSE;
|
||||
//rtl8192c_set_FwSelectSuspend_cmd(padapter,false ,500);//note fw to support hw power down ping detect
|
||||
u8 bOpen = false;
|
||||
rtw_interface_ps_func(padapter,HAL_USB_SELECT_SUSPEND,&bOpen);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#ifdef CONFIG_BT_COEXIST
|
||||
DBG_88E("pwrpriv->bAutoResume (%x)\n",pwrpriv->bAutoResume );
|
||||
if ( _TRUE == pwrpriv->bAutoResume ){
|
||||
pwrpriv->bInternalAutoSuspend = _FALSE;
|
||||
pwrpriv->bAutoResume=_FALSE;
|
||||
if ( true == pwrpriv->bAutoResume ){
|
||||
pwrpriv->bInternalAutoSuspend = false;
|
||||
pwrpriv->bAutoResume=false;
|
||||
DBG_88E("pwrpriv->bAutoResume (%x) pwrpriv->bInternalAutoSuspend(%x)\n",pwrpriv->bAutoResume,pwrpriv->bInternalAutoSuspend );
|
||||
}
|
||||
|
||||
#else //#ifdef CONFIG_BT_COEXIST
|
||||
pwrpriv->bInternalAutoSuspend = _FALSE;
|
||||
pwrpriv->bInternalAutoSuspend = false;
|
||||
#endif //#ifdef CONFIG_BT_COEXIST
|
||||
pwrpriv->brfoffbyhw = _FALSE;
|
||||
pwrpriv->brfoffbyhw = false;
|
||||
{
|
||||
DBG_88E("enc_algorithm(%x),wepkeymask(%x)\n",
|
||||
padapter->securitypriv.dot11PrivacyAlgrthm,pwrpriv->wepkeymask);
|
||||
|
@ -1150,7 +1150,7 @@ exit:
|
|||
rtw_unlock_suspend();
|
||||
#endif //CONFIG_RESUME_IN_WORKQUEUE
|
||||
|
||||
pwrpriv->bInSuspend = _FALSE;
|
||||
pwrpriv->bInSuspend = false;
|
||||
DBG_88E("<=== %s return %d.............. in %dms\n", __func__
|
||||
, ret, rtw_get_passing_time_ms(start_time));
|
||||
|
||||
|
@ -1167,8 +1167,8 @@ void autosuspend_enter(_adapter* padapter)
|
|||
|
||||
DBG_88E("==>autosuspend_enter...........\n");
|
||||
|
||||
pwrpriv->bInternalAutoSuspend = _TRUE;
|
||||
pwrpriv->bips_processing = _TRUE;
|
||||
pwrpriv->bInternalAutoSuspend = true;
|
||||
pwrpriv->bips_processing = true;
|
||||
|
||||
if (rf_off == pwrpriv->change_rfpwrstate )
|
||||
{
|
||||
|
@ -1228,7 +1228,7 @@ int autoresume_enter(_adapter* padapter)
|
|||
|
||||
if (rf_off == pwrpriv->rf_pwrstate )
|
||||
{
|
||||
pwrpriv->ps_flag = _FALSE;
|
||||
pwrpriv->ps_flag = false;
|
||||
#ifndef CONFIG_BT_COEXIST
|
||||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,33))
|
||||
if (usb_autopm_get_interface(dvobj->pusbintf) < 0)
|
||||
|
@ -1249,7 +1249,7 @@ int autoresume_enter(_adapter* padapter)
|
|||
DBG_88E("...pm_usage_cnt(%d).....\n", dvobj->pusbintf->pm_usage_cnt);
|
||||
#endif
|
||||
#else //#ifndef CONFIG_BT_COEXIST
|
||||
pwrpriv->bAutoResume=_TRUE;
|
||||
pwrpriv->bAutoResume=true;
|
||||
if (0==pwrpriv->autopm_cnt){
|
||||
#if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,33))
|
||||
if (usb_autopm_get_interface(dvobj->pusbintf) < 0)
|
||||
|
@ -1314,11 +1314,11 @@ _adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
|
|||
padapter->dvobj = dvobj;
|
||||
dvobj->if1 = padapter;
|
||||
|
||||
padapter->bDriverStopped=_TRUE;
|
||||
padapter->bDriverStopped=true;
|
||||
|
||||
#if defined(CONFIG_CONCURRENT_MODE) || defined(CONFIG_DUALMAC_CONCURRENT)
|
||||
//set adapter_type/iface type for primary padapter
|
||||
padapter->isprimary = _TRUE;
|
||||
padapter->isprimary = true;
|
||||
padapter->adapter_type = PRIMARY_ADAPTER;
|
||||
#ifndef CONFIG_HWPORT_SWAP
|
||||
padapter->iface_type = IFACE_PORT0;
|
||||
|
@ -1498,7 +1498,7 @@ static void rtw_usb_if1_deinit(_adapter *if1)
|
|||
struct mlme_priv *pmlmepriv= &if1->mlmepriv;
|
||||
|
||||
if (check_fwstate(pmlmepriv, _FW_LINKED))
|
||||
rtw_disassoc_cmd(if1, 0, _FALSE);
|
||||
rtw_disassoc_cmd(if1, 0, false);
|
||||
|
||||
|
||||
#ifdef CONFIG_AP_MODE
|
||||
|
@ -1518,7 +1518,7 @@ static void rtw_usb_if1_deinit(_adapter *if1)
|
|||
rtw_cancel_all_timer(if1);
|
||||
|
||||
#ifdef CONFIG_WOWLAN
|
||||
if1->pwrctrlpriv.wowlan_mode=_FALSE;
|
||||
if1->pwrctrlpriv.wowlan_mode=false;
|
||||
#endif //CONFIG_WOWLAN
|
||||
|
||||
rtw_dev_unload(if1);
|
||||
|
@ -1751,15 +1751,15 @@ _func_enter_;
|
|||
DBG_88E("+rtw_dev_remove\n");
|
||||
RT_TRACE(_module_hci_intfs_c_,_drv_err_,("+dev_remove()\n"));
|
||||
|
||||
if (usb_drv->drv_registered == _TRUE)
|
||||
if (usb_drv->drv_registered == true)
|
||||
{
|
||||
//DBG_88E("r871xu_dev_remove():padapter->bSurpriseRemoved == _TRUE\n");
|
||||
padapter->bSurpriseRemoved = _TRUE;
|
||||
//DBG_88E("r871xu_dev_remove():padapter->bSurpriseRemoved == true\n");
|
||||
padapter->bSurpriseRemoved = true;
|
||||
}
|
||||
/*else
|
||||
{
|
||||
//DBG_88E("r871xu_dev_remove():module removed\n");
|
||||
padapter->hw_init_completed = _FALSE;
|
||||
padapter->hw_init_completed = false;
|
||||
}*/
|
||||
|
||||
#if defined(CONFIG_HAS_EARLYSUSPEND) || defined(CONFIG_ANDROID_POWER)
|
||||
|
@ -1847,7 +1847,7 @@ static int __init rtw_drv_entry(void)
|
|||
_rtw_mutex_init(&usb_drv->setbw_mutex);
|
||||
#endif
|
||||
|
||||
usb_drv->drv_registered = _TRUE;
|
||||
usb_drv->drv_registered = true;
|
||||
return usb_register(&usb_drv->usbdrv);
|
||||
}
|
||||
|
||||
|
@ -1858,7 +1858,7 @@ static void __exit rtw_drv_halt(void)
|
|||
|
||||
rtw_suspend_lock_uninit();
|
||||
|
||||
usb_drv->drv_registered = _FALSE;
|
||||
usb_drv->drv_registered = false;
|
||||
usb_deregister(&usb_drv->usbdrv);
|
||||
|
||||
_rtw_mutex_free(&usb_drv->hw_init_mutex);
|
||||
|
|
|
@ -286,11 +286,11 @@ void usb_read_port_cancel(struct intf_hdl *pintfhdl)
|
|||
|
||||
DBG_88E("%s\n", __func__);
|
||||
|
||||
padapter->bReadPortCancel = _TRUE;
|
||||
padapter->bReadPortCancel = true;
|
||||
|
||||
for (i=0; i < NR_RECVBUFF ; i++) {
|
||||
|
||||
precvbuf->reuse = _TRUE;
|
||||
precvbuf->reuse = true;
|
||||
if (precvbuf->purb) {
|
||||
//DBG_88E("usb_read_port_cancel : usb_kill_urb\n");
|
||||
usb_kill_urb(precvbuf->purb);
|
||||
|
@ -416,14 +416,14 @@ _func_enter_;
|
|||
|
||||
} else if (purb->status == -ESHUTDOWN) {
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete: ESHUTDOWN\n"));
|
||||
padapter->bDriverStopped=_TRUE;
|
||||
padapter->bDriverStopped=true;
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bDriverStopped=TRUE\n"));
|
||||
|
||||
goto check_completion;
|
||||
}
|
||||
else
|
||||
{
|
||||
padapter->bSurpriseRemoved=_TRUE;
|
||||
padapter->bSurpriseRemoved=true;
|
||||
DBG_88E("bSurpriseRemoved=TRUE\n");
|
||||
//rtl8192cu_trigger_gpio_0(padapter);
|
||||
RT_TRACE(_module_hci_ops_os_c_,_drv_err_,("usb_write_port_complete:bSurpriseRemoved=TRUE\n"));
|
||||
|
@ -459,7 +459,7 @@ u32 usb_write_port(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *wmem)
|
|||
_irqL irqL;
|
||||
unsigned int pipe;
|
||||
int status;
|
||||
u32 ret = _FAIL, bwritezero = _FALSE;
|
||||
u32 ret = _FAIL, bwritezero = false;
|
||||
PURB purb = NULL;
|
||||
_adapter *padapter = (_adapter *)pintfhdl->padapter;
|
||||
struct dvobj_priv *pdvobj = adapter_to_dvobj(padapter);
|
||||
|
@ -520,7 +520,7 @@ _func_enter_;
|
|||
|
||||
#ifdef CONFIG_REDUCE_USB_TX_INT
|
||||
if ( (pxmitpriv->free_xmitbuf_cnt%NR_XMITBUFF == 0)
|
||||
|| (pxmitbuf->ext_tag == _TRUE) )
|
||||
|| (pxmitbuf->ext_tag == true) )
|
||||
{
|
||||
purb->transfer_flags &= (~URB_NO_INTERRUPT);
|
||||
} else {
|
||||
|
@ -556,7 +556,7 @@ _func_enter_;
|
|||
|
||||
switch (status) {
|
||||
case -ENODEV:
|
||||
padapter->bDriverStopped=_TRUE;
|
||||
padapter->bDriverStopped=true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -569,7 +569,7 @@ _func_enter_;
|
|||
// Commented by Albert 2009/10/13
|
||||
// We add the URB_ZERO_PACKET flag to urb so that the host will send the zero packet automatically.
|
||||
/*
|
||||
if (bwritezero == _TRUE)
|
||||
if (bwritezero == true)
|
||||
{
|
||||
usb_bulkout_zero(pintfhdl, addr);
|
||||
}
|
||||
|
@ -593,7 +593,7 @@ void usb_write_port_cancel(struct intf_hdl *pintfhdl)
|
|||
|
||||
DBG_88E("%s\n", __func__);
|
||||
|
||||
padapter->bWritePortCancel = _TRUE;
|
||||
padapter->bWritePortCancel = true;
|
||||
|
||||
for (i=0; i<NR_XMITBUFF; i++) {
|
||||
for (j=0; j<8; j++) {
|
||||
|
|
|
@ -75,12 +75,12 @@ _func_enter_;
|
|||
|
||||
if (pfile->pkt_len == 0) {
|
||||
_func_exit_;
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
_func_exit_;
|
||||
|
||||
return _FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
void rtw_set_tx_chksum_offload(_pkt *pkt, struct pkt_attrib *pattrib)
|
||||
|
@ -258,7 +258,7 @@ void rtw_os_xmit_schedule(_adapter *padapter)
|
|||
pri_adapter = padapter->pbuddy_adapter;
|
||||
#endif
|
||||
|
||||
if (_rtw_queue_empty(&pri_adapter->xmitpriv.pending_xmitbuf_queue) == _FALSE)
|
||||
if (_rtw_queue_empty(&pri_adapter->xmitpriv.pending_xmitbuf_queue) == false)
|
||||
_rtw_up_sema(&pri_adapter->xmitpriv.xmit_sema);
|
||||
|
||||
|
||||
|
@ -326,7 +326,7 @@ int rtw_mlcst2unicst(_adapter *padapter, struct sk_buff *skb)
|
|||
plist = get_next(phead);
|
||||
|
||||
//free sta 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);
|
||||
|
||||
|
@ -353,13 +353,13 @@ int rtw_mlcst2unicst(_adapter *padapter, struct sk_buff *skb)
|
|||
|
||||
_exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
|
||||
//dev_kfree_skb_any(skb);
|
||||
return _FALSE; // Caller shall tx this multicast frame via normal way.
|
||||
return false; // Caller shall tx this multicast frame via normal way.
|
||||
}
|
||||
}
|
||||
|
||||
_exit_critical_bh(&pstapriv->asoc_list_lock, &irqL);
|
||||
dev_kfree_skb_any(skb);
|
||||
return _TRUE;
|
||||
return true;
|
||||
}
|
||||
#endif // CONFIG_TX_MCAST2UNI
|
||||
|
||||
|
@ -381,7 +381,7 @@ _func_enter_;
|
|||
|
||||
RT_TRACE(_module_rtl871x_mlme_c_, _drv_info_, ("+xmit_enry\n"));
|
||||
|
||||
if (rtw_if_up(padapter) == _FALSE) {
|
||||
if (rtw_if_up(padapter) == false) {
|
||||
RT_TRACE(_module_xmit_osdep_c_, _drv_err_, ("rtw_xmit_entry: rtw_if_up fail\n"));
|
||||
#ifdef DBG_TX_DROP_FRAME
|
||||
DBG_88E("DBG_TX_DROP_FRAME %s if_up fail\n", __func__);
|
||||
|
@ -393,7 +393,7 @@ _func_enter_;
|
|||
|
||||
#ifdef CONFIG_TX_MCAST2UNI
|
||||
if ( !rtw_mc2u_disable
|
||||
&& check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE
|
||||
&& check_fwstate(pmlmepriv, WIFI_AP_STATE) == true
|
||||
&& ( IP_MCAST_MAC(pkt->data)
|
||||
|| ICMPV6_MCAST_MAC(pkt->data) )
|
||||
&& (padapter->registrypriv.wifi_spec == 0)
|
||||
|
@ -401,7 +401,7 @@ _func_enter_;
|
|||
{
|
||||
if ( pxmitpriv->free_xmitframe_cnt > (NR_XMITFRAME/4) ) {
|
||||
res = rtw_mlcst2unicst(padapter, pkt);
|
||||
if (res == _TRUE) {
|
||||
if (res == true) {
|
||||
goto exit;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue