mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 00:24:20 +00:00
rtl8188eu: Replace degub macro DBG_871X with DBG_88E
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
1e6accffc4
commit
3a3339b715
46 changed files with 1548 additions and 1548 deletions
|
@ -465,7 +465,7 @@ void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigne
|
|||
|
||||
if ( padapter->bNotifyChannelChange )
|
||||
{
|
||||
DBG_871X( "[%s] ch = %d, offset = %d, bwmode = %d\n", __FUNCTION__, channel, channel_offset, bwmode );
|
||||
DBG_88E( "[%s] ch = %d, offset = %d, bwmode = %d\n", __FUNCTION__, channel, channel_offset, bwmode );
|
||||
}
|
||||
|
||||
if ((bwmode == HT_CHANNEL_WIDTH_20)||(channel_offset == HAL_PRIME_CHNL_OFFSET_DONT_CARE))
|
||||
|
@ -714,7 +714,7 @@ int WFD_info_handler(struct adapter *padapter, struct ndis_802_11_variable_ies *
|
|||
u8 attr_content[ 10 ] = { 0x00 };
|
||||
u32 attr_contentlen = 0;
|
||||
|
||||
DBG_871X( "[%s] Found WFD IE\n", __FUNCTION__ );
|
||||
DBG_88E( "[%s] Found WFD IE\n", __FUNCTION__ );
|
||||
rtw_get_wfd_attr_content( wfd_ie, wfd_ielen, WFD_ATTR_DEVICE_INFO, attr_content, &attr_contentlen);
|
||||
if ( attr_contentlen )
|
||||
{
|
||||
|
@ -725,7 +725,7 @@ int WFD_info_handler(struct adapter *padapter, struct ndis_802_11_variable_ies *
|
|||
}
|
||||
else
|
||||
{
|
||||
DBG_871X( "[%s] NO WFD IE\n", __FUNCTION__ );
|
||||
DBG_88E( "[%s] NO WFD IE\n", __FUNCTION__ );
|
||||
|
||||
}
|
||||
return( _FAIL );
|
||||
|
@ -816,7 +816,7 @@ void WMMOnAssocRsp(struct adapter *padapter)
|
|||
break;
|
||||
}
|
||||
|
||||
DBG_871X("WMM(%x): %x, %x\n", ACI, ACM, acParm);
|
||||
DBG_88E("WMM(%x): %x, %x\n", ACI, ACM, acParm);
|
||||
}
|
||||
|
||||
if (padapter->registrypriv.acm_method == 1)
|
||||
|
@ -865,7 +865,7 @@ void WMMOnAssocRsp(struct adapter *padapter)
|
|||
|
||||
for (i =0; i<4; i++) {
|
||||
pxmitpriv->wmm_para_seq[i] = inx[i];
|
||||
DBG_871X("wmm_para_seq(%d): %d\n", i, pxmitpriv->wmm_para_seq[i]);
|
||||
DBG_88E("wmm_para_seq(%d): %d\n", i, pxmitpriv->wmm_para_seq[i]);
|
||||
}
|
||||
|
||||
return;
|
||||
|
@ -1056,7 +1056,7 @@ void HTOnAssocRsp(struct adapter *padapter)
|
|||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
DBG_88E("%s\n", __FUNCTION__);
|
||||
|
||||
if ((pmlmeinfo->HT_info_enable) && (pmlmeinfo->HT_caps_enable))
|
||||
{
|
||||
|
@ -1173,12 +1173,12 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
|
|||
len = packet_len - sizeof(struct rtw_ieee80211_hdr_3addr);
|
||||
|
||||
if (len > MAX_IE_SZ) {
|
||||
DBG_871X("%s IE too long for survey event\n", __func__);
|
||||
DBG_88E("%s IE too long for survey event\n", __func__);
|
||||
return _FAIL;
|
||||
}
|
||||
|
||||
if (_rtw_memcmp(cur_network->network.MacAddress, pbssid, 6) == false) {
|
||||
DBG_871X("Oops: rtw_check_network_encrypt linked but recv other bssid bcn\n" MAC_FMT MAC_FMT,
|
||||
DBG_88E("Oops: rtw_check_network_encrypt linked but recv other bssid bcn\n" MAC_FMT MAC_FMT,
|
||||
MAC_ARG(pbssid), MAC_ARG(cur_network->network.MacAddress));
|
||||
return true;
|
||||
}
|
||||
|
@ -1217,11 +1217,11 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
|
|||
}
|
||||
if (ht_cap_info != cur_network->BcnInfo.ht_cap_info ||
|
||||
((ht_info_infos_0&0x03) != (cur_network->BcnInfo.ht_info_infos_0&0x03))) {
|
||||
DBG_871X("%s bcn now: ht_cap_info:%x ht_info_infos_0:%x\n", __func__,
|
||||
DBG_88E("%s bcn now: ht_cap_info:%x ht_info_infos_0:%x\n", __func__,
|
||||
ht_cap_info, ht_info_infos_0);
|
||||
DBG_871X("%s bcn link: ht_cap_info:%x ht_info_infos_0:%x\n", __func__,
|
||||
DBG_88E("%s bcn link: ht_cap_info:%x ht_info_infos_0:%x\n", __func__,
|
||||
cur_network->BcnInfo.ht_cap_info, cur_network->BcnInfo.ht_info_infos_0);
|
||||
DBG_871X("%s bw mode change, disconnect\n", __func__);
|
||||
DBG_88E("%s bw mode change, disconnect\n", __func__);
|
||||
{
|
||||
/* bcn_info_update */
|
||||
cur_network->BcnInfo.ht_cap_info = ht_cap_info;
|
||||
|
@ -1240,19 +1240,19 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
|
|||
if (pht_info) {
|
||||
bcn_channel = pht_info->primary_channel;
|
||||
} else { /* we don't find channel IE, so don't check it */
|
||||
DBG_871X("Oops: %s we don't find channel IE, so don't check it\n", __func__);
|
||||
DBG_88E("Oops: %s we don't find channel IE, so don't check it\n", __func__);
|
||||
bcn_channel = Adapter->mlmeextpriv.cur_channel;
|
||||
}
|
||||
}
|
||||
if (bcn_channel != Adapter->mlmeextpriv.cur_channel) {
|
||||
DBG_871X("%s beacon channel:%d cur channel:%d disconnect\n", __func__,
|
||||
DBG_88E("%s beacon channel:%d cur channel:%d disconnect\n", __func__,
|
||||
bcn_channel, Adapter->mlmeextpriv.cur_channel);
|
||||
goto _mismatch;
|
||||
}
|
||||
|
||||
/* checking SSID */
|
||||
if ((p = rtw_get_ie(bssid->IEs + _FIXED_IE_LENGTH_, _SSID_IE_, &len, bssid->IELength - _FIXED_IE_LENGTH_)) == NULL) {
|
||||
DBG_871X("%s marc: cannot find SSID for survey event\n", __func__);
|
||||
DBG_88E("%s marc: cannot find SSID for survey event\n", __func__);
|
||||
hidden_ssid = true;
|
||||
} else {
|
||||
hidden_ssid = false;
|
||||
|
@ -1274,7 +1274,7 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
|
|||
if (_rtw_memcmp(bssid->Ssid.Ssid, cur_network->network.Ssid.Ssid, 32) == false ||
|
||||
bssid->Ssid.SsidLength != cur_network->network.Ssid.SsidLength) {
|
||||
if (bssid->Ssid.Ssid[0] != '\0' && bssid->Ssid.SsidLength != 0) { /* not hidden ssid */
|
||||
DBG_871X("%s(), SSID is not match return FAIL\n", __func__);
|
||||
DBG_88E("%s(), SSID is not match return FAIL\n", __func__);
|
||||
goto _mismatch;
|
||||
}
|
||||
}
|
||||
|
@ -1291,7 +1291,7 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
|
|||
("%s(): cur_network->network.Privacy is %d, bssid.Privacy is %d\n",
|
||||
__func__, cur_network->network.Privacy, bssid->Privacy));
|
||||
if (cur_network->network.Privacy != bssid->Privacy) {
|
||||
DBG_871X("%s(), privacy is not match return FAIL\n", __func__);
|
||||
DBG_88E("%s(), privacy is not match return FAIL\n", __func__);
|
||||
goto _mismatch;
|
||||
}
|
||||
|
||||
|
@ -1307,7 +1307,7 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
|
|||
}
|
||||
|
||||
if (cur_network->BcnInfo.encryp_protocol != encryp_protocol) {
|
||||
DBG_871X("%s(): enctyp is not match , return FAIL\n", __func__);
|
||||
DBG_88E("%s(): enctyp is not match , return FAIL\n", __func__);
|
||||
goto _mismatch;
|
||||
}
|
||||
|
||||
|
@ -1334,14 +1334,14 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
|
|||
RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_,
|
||||
("%s cur_network->group_cipher is %d: %d\n", __func__, cur_network->BcnInfo.group_cipher, group_cipher));
|
||||
if (pairwise_cipher != cur_network->BcnInfo.pairwise_cipher || group_cipher != cur_network->BcnInfo.group_cipher) {
|
||||
DBG_871X("%s pairwise_cipher(%x:%x) or group_cipher(%x:%x) is not match , return FAIL\n", __func__,
|
||||
DBG_88E("%s pairwise_cipher(%x:%x) or group_cipher(%x:%x) is not match , return FAIL\n", __func__,
|
||||
pairwise_cipher, cur_network->BcnInfo.pairwise_cipher,
|
||||
group_cipher, cur_network->BcnInfo.group_cipher);
|
||||
goto _mismatch;
|
||||
}
|
||||
|
||||
if (is_8021x != cur_network->BcnInfo.is_8021x) {
|
||||
DBG_871X("%s authentication is not match , return FAIL\n", __func__);
|
||||
DBG_88E("%s authentication is not match , return FAIL\n", __func__);
|
||||
goto _mismatch;
|
||||
}
|
||||
}
|
||||
|
@ -1758,19 +1758,19 @@ unsigned char check_assoc_AP(u8 *pframe, uint len)
|
|||
case _VENDOR_SPECIFIC_IE_:
|
||||
if ((_rtw_memcmp(pIE->data, ARTHEROS_OUI1, 3)) || (_rtw_memcmp(pIE->data, ARTHEROS_OUI2, 3)))
|
||||
{
|
||||
DBG_871X("link to Artheros AP\n");
|
||||
DBG_88E("link to Artheros AP\n");
|
||||
return HT_IOT_PEER_ATHEROS;
|
||||
}
|
||||
else if ((_rtw_memcmp(pIE->data, BROADCOM_OUI1, 3))
|
||||
|| (_rtw_memcmp(pIE->data, BROADCOM_OUI2, 3))
|
||||
|| (_rtw_memcmp(pIE->data, BROADCOM_OUI2, 3)))
|
||||
{
|
||||
DBG_871X("link to Broadcom AP\n");
|
||||
DBG_88E("link to Broadcom AP\n");
|
||||
return HT_IOT_PEER_BROADCOM;
|
||||
}
|
||||
else if (_rtw_memcmp(pIE->data, MARVELL_OUI, 3))
|
||||
{
|
||||
DBG_871X("link to Marvell AP\n");
|
||||
DBG_88E("link to Marvell AP\n");
|
||||
return HT_IOT_PEER_MARVELL;
|
||||
}
|
||||
else if (_rtw_memcmp(pIE->data, RALINK_OUI, 3))
|
||||
|
@ -1778,33 +1778,33 @@ unsigned char check_assoc_AP(u8 *pframe, uint len)
|
|||
if (!ralink_vendor_flag) {
|
||||
ralink_vendor_flag = 1;
|
||||
} else {
|
||||
DBG_871X("link to Ralink AP\n");
|
||||
DBG_88E("link to Ralink AP\n");
|
||||
return HT_IOT_PEER_RALINK;
|
||||
}
|
||||
}
|
||||
else if (_rtw_memcmp(pIE->data, CISCO_OUI, 3))
|
||||
{
|
||||
DBG_871X("link to Cisco AP\n");
|
||||
DBG_88E("link to Cisco AP\n");
|
||||
return HT_IOT_PEER_CISCO;
|
||||
}
|
||||
else if (_rtw_memcmp(pIE->data, REALTEK_OUI, 3))
|
||||
{
|
||||
DBG_871X("link to Realtek 96B\n");
|
||||
DBG_88E("link to Realtek 96B\n");
|
||||
return HT_IOT_PEER_REALTEK;
|
||||
}
|
||||
else if (_rtw_memcmp(pIE->data, AIRGOCAP_OUI, 3))
|
||||
{
|
||||
DBG_871X("link to Airgo Cap\n");
|
||||
DBG_88E("link to Airgo Cap\n");
|
||||
return HT_IOT_PEER_AIRGO;
|
||||
}
|
||||
else if (_rtw_memcmp(pIE->data, EPIGRAM_OUI, 3))
|
||||
{
|
||||
epigram_vendor_flag = 1;
|
||||
if (ralink_vendor_flag) {
|
||||
DBG_871X("link to Tenda W311R AP\n");
|
||||
DBG_88E("link to Tenda W311R AP\n");
|
||||
return HT_IOT_PEER_TENDA;
|
||||
} else {
|
||||
DBG_871X("Capture EPIGRAM_OUI\n");
|
||||
DBG_88E("Capture EPIGRAM_OUI\n");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -1820,13 +1820,13 @@ unsigned char check_assoc_AP(u8 *pframe, uint len)
|
|||
}
|
||||
|
||||
if (ralink_vendor_flag && !epigram_vendor_flag) {
|
||||
DBG_871X("link to Ralink AP\n");
|
||||
DBG_88E("link to Ralink AP\n");
|
||||
return HT_IOT_PEER_RALINK;
|
||||
} else if (ralink_vendor_flag && epigram_vendor_flag) {
|
||||
DBG_871X("link to Tenda W311R AP\n");
|
||||
DBG_88E("link to Tenda W311R AP\n");
|
||||
return HT_IOT_PEER_TENDA;
|
||||
} else {
|
||||
DBG_871X("link to new AP\n");
|
||||
DBG_88E("link to new AP\n");
|
||||
return HT_IOT_PEER_UNKNOWN;
|
||||
}
|
||||
}
|
||||
|
@ -2091,13 +2091,13 @@ int rtw_handle_dualmac(struct adapter *adapter, bool init)
|
|||
if (init) {
|
||||
if (pbuddy_padapter == NULL) {
|
||||
pbuddy_padapter = adapter;
|
||||
DBG_871X("%s(): pbuddy_padapter == NULL, Set pbuddy_padapter\n", __FUNCTION__);
|
||||
DBG_88E("%s(): pbuddy_padapter == NULL, Set pbuddy_padapter\n", __FUNCTION__);
|
||||
} else {
|
||||
adapter->pbuddy_adapter = pbuddy_padapter;
|
||||
pbuddy_padapter->pbuddy_adapter = adapter;
|
||||
/* clear global value */
|
||||
pbuddy_padapter = NULL;
|
||||
DBG_871X("%s(): pbuddy_padapter exist, Exchange Information\n", __FUNCTION__);
|
||||
DBG_88E("%s(): pbuddy_padapter exist, Exchange Information\n", __FUNCTION__);
|
||||
}
|
||||
} else {
|
||||
pbuddy_padapter = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue