mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-09 14:53:05 +00:00
Replace __FUNCTION__ with __func__
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
4620c2a956
commit
d4fa4d178f
56 changed files with 865 additions and 865 deletions
|
@ -517,7 +517,7 @@ static u8 init_channel_set(_adapter* padapter, u8 ChannelPlan, RT_CHANNEL_INFO *
|
|||
channel_set[chanset_size].ScanType = SCAN_PASSIVE;
|
||||
else
|
||||
channel_set[chanset_size].ScanType = SCAN_ACTIVE;
|
||||
DBG_871X("%s(): channel_set[%d].ChannelNum = %d\n", __FUNCTION__, chanset_size, channel_set[chanset_size].ChannelNum);
|
||||
DBG_871X("%s(): channel_set[%d].ChannelNum = %d\n", __func__, chanset_size, channel_set[chanset_size].ChannelNum);
|
||||
chanset_size++;
|
||||
}
|
||||
#endif /* CONFIG_DFS */
|
||||
|
@ -964,7 +964,7 @@ unsigned int OnProbeRsp(_adapter *padapter, union recv_frame *precv_frame)
|
|||
{
|
||||
if ( _TRUE == pwdinfo->nego_req_info.benable )
|
||||
{
|
||||
DBG_871X( "[%s] P2P State is GONEGO ING!\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] P2P State is GONEGO ING!\n", __func__ );
|
||||
if ( _rtw_memcmp( pwdinfo->nego_req_info.peerDevAddr, GetAddr2Ptr(pframe), ETH_ALEN ) )
|
||||
{
|
||||
pwdinfo->nego_req_info.benable = _FALSE;
|
||||
|
@ -976,7 +976,7 @@ unsigned int OnProbeRsp(_adapter *padapter, union recv_frame *precv_frame)
|
|||
{
|
||||
if ( _TRUE == pwdinfo->invitereq_info.benable )
|
||||
{
|
||||
DBG_871X( "[%s] P2P_STATE_TX_INVITE_REQ!\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] P2P_STATE_TX_INVITE_REQ!\n", __func__ );
|
||||
if ( _rtw_memcmp( pwdinfo->invitereq_info.peer_macaddr, GetAddr2Ptr(pframe), ETH_ALEN ) )
|
||||
{
|
||||
pwdinfo->invitereq_info.benable = _FALSE;
|
||||
|
@ -1441,7 +1441,7 @@ unsigned int OnAuthClient(_adapter *padapter, union recv_frame *precv_frame)
|
|||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
uint pkt_len = precv_frame->u.hdr.len;
|
||||
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
DBG_871X("%s\n", __func__);
|
||||
|
||||
//check A1 matches or not
|
||||
if (!_rtw_memcmp(myid(&(padapter->eeprompriv)), get_da(pframe), ETH_ALEN))
|
||||
|
@ -1612,7 +1612,7 @@ unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
|
|||
pos = pframe + (IEEE80211_3ADDR_LEN + ie_offset);
|
||||
|
||||
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
DBG_871X("%s\n", __func__);
|
||||
|
||||
// check if this stat has been successfully authenticated/assocated
|
||||
if (!((pstat->state) & WIFI_FW_AUTH_SUCCESS))
|
||||
|
@ -2011,12 +2011,12 @@ unsigned int OnAssocReq(_adapter *padapter, union recv_frame *precv_frame)
|
|||
u8 attr_content[ 10 ] = { 0x00 };
|
||||
u32 attr_contentlen = 0;
|
||||
|
||||
DBG_8192C( "[%s] WFD IE Found!!\n", __FUNCTION__ );
|
||||
DBG_8192C( "[%s] WFD IE Found!!\n", __func__ );
|
||||
rtw_get_wfd_attr_content( wfd_ie, wfd_ielen, WFD_ATTR_DEVICE_INFO, attr_content, &attr_contentlen);
|
||||
if ( attr_contentlen )
|
||||
{
|
||||
pwdinfo->wfd_info->peer_rtsp_ctrlport = RTW_GET_BE16( attr_content + 2 );
|
||||
DBG_8192C( "[%s] Peer PORT NUM = %d\n", __FUNCTION__, pwdinfo->wfd_info->peer_rtsp_ctrlport );
|
||||
DBG_8192C( "[%s] Peer PORT NUM = %d\n", __func__, pwdinfo->wfd_info->peer_rtsp_ctrlport );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -2181,7 +2181,7 @@ unsigned int OnAssocRsp(_adapter *padapter, union recv_frame *precv_frame)
|
|||
uint pkt_len = precv_frame->u.hdr.len;
|
||||
PNDIS_802_11_VARIABLE_IEs pWapiIE = NULL;
|
||||
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
DBG_871X("%s\n", __func__);
|
||||
|
||||
//check A1 matches or not
|
||||
if (!_rtw_memcmp(myid(&(padapter->eeprompriv)), get_da(pframe), ETH_ALEN))
|
||||
|
@ -2230,7 +2230,7 @@ unsigned int OnAssocRsp(_adapter *padapter, union recv_frame *precv_frame)
|
|||
#if defined(CONFIG_P2P) && defined(CONFIG_WFD)
|
||||
else if ( _rtw_memcmp(pIE->data, WFD_OUI, 4)) //WFD
|
||||
{
|
||||
DBG_871X( "[%s] Found WFD IE\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] Found WFD IE\n", __func__ );
|
||||
WFD_info_handler( padapter, pIE );
|
||||
}
|
||||
#endif
|
||||
|
@ -2307,7 +2307,7 @@ unsigned int OnDeAuth(_adapter *padapter, union recv_frame *precv_frame)
|
|||
|
||||
reason = le16_to_cpu(*(unsigned short *)(pframe + WLAN_HDR_A3_LEN));
|
||||
|
||||
DBG_871X("%s Reason code(%d)\n", __FUNCTION__,reason);
|
||||
DBG_871X("%s Reason code(%d)\n", __func__,reason);
|
||||
|
||||
#ifdef CONFIG_AP_MODE
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
|
@ -2382,7 +2382,7 @@ unsigned int OnDisassoc(_adapter *padapter, union recv_frame *precv_frame)
|
|||
|
||||
reason = le16_to_cpu(*(unsigned short *)(pframe + WLAN_HDR_A3_LEN));
|
||||
|
||||
DBG_871X("%s Reason code(%d)\n", __FUNCTION__,reason);
|
||||
DBG_871X("%s Reason code(%d)\n", __func__,reason);
|
||||
|
||||
#ifdef CONFIG_AP_MODE
|
||||
if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
|
||||
|
@ -2433,7 +2433,7 @@ unsigned int OnDisassoc(_adapter *padapter, union recv_frame *precv_frame)
|
|||
|
||||
unsigned int OnAtim(_adapter *padapter, union recv_frame *precv_frame)
|
||||
{
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
DBG_871X("%s\n", __func__);
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -2570,7 +2570,7 @@ unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame)
|
|||
if (!_rtw_memcmp(myid(&(padapter->eeprompriv)), get_da(pframe), ETH_ALEN))
|
||||
return _SUCCESS;
|
||||
*/
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
DBG_871X("%s\n", __func__);
|
||||
|
||||
if ((pmlmeinfo->state&0x03) != WIFI_FW_AP_STATE)
|
||||
if (!(pmlmeinfo->state & WIFI_FW_ASSOC_SUCCESS))
|
||||
|
@ -2602,7 +2602,7 @@ unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame)
|
|||
}
|
||||
|
||||
action = frame_body[1];
|
||||
DBG_871X("%s, action=%d\n", __FUNCTION__, action);
|
||||
DBG_871X("%s, action=%d\n", __func__, action);
|
||||
switch (action)
|
||||
{
|
||||
case RTW_WLAN_ACTION_ADDBA_REQ: //ADDBA request
|
||||
|
@ -2659,12 +2659,12 @@ unsigned int OnAction_back(_adapter *padapter, union recv_frame *precv_frame)
|
|||
preorder_ctrl->enable = _FALSE;
|
||||
preorder_ctrl->indicate_seq = 0xffff;
|
||||
#ifdef DBG_RX_SEQ
|
||||
DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __FUNCTION__, __LINE__,
|
||||
DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __func__, __LINE__,
|
||||
preorder_ctrl->indicate_seq);
|
||||
#endif
|
||||
}
|
||||
|
||||
DBG_871X("%s(): DELBA: %x(%x)\n", __FUNCTION__,pmlmeinfo->agg_enable_bitmap, reason_code);
|
||||
DBG_871X("%s(): DELBA: %x(%x)\n", __func__,pmlmeinfo->agg_enable_bitmap, reason_code);
|
||||
//todo: how to notify the host while receiving DELETE BA
|
||||
break;
|
||||
|
||||
|
@ -2747,7 +2747,7 @@ void issue_p2p_GO_request(_adapter *padapter, u8* raddr)
|
|||
return;
|
||||
}
|
||||
|
||||
DBG_871X( "[%s] In\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] In\n", __func__ );
|
||||
//update attribute
|
||||
pattrib = &pmgntframe->attrib;
|
||||
update_mgntframe_attrib(padapter, pattrib);
|
||||
|
@ -3195,7 +3195,7 @@ void issue_p2p_GO_response(_adapter *padapter, u8* raddr, u8* frame_body,uint le
|
|||
return;
|
||||
}
|
||||
|
||||
DBG_871X( "[%s] In, result = %d\n", __FUNCTION__, result );
|
||||
DBG_871X( "[%s] In, result = %d\n", __func__, result );
|
||||
//update attribute
|
||||
pattrib = &pmgntframe->attrib;
|
||||
update_mgntframe_attrib(padapter, pattrib);
|
||||
|
@ -3670,7 +3670,7 @@ void issue_p2p_GO_confirm(_adapter *padapter, u8* raddr, u8 result)
|
|||
return;
|
||||
}
|
||||
|
||||
DBG_871X( "[%s] In\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] In\n", __func__ );
|
||||
//update attribute
|
||||
pattrib = &pmgntframe->attrib;
|
||||
update_mgntframe_attrib(padapter, pattrib);
|
||||
|
@ -4512,7 +4512,7 @@ void issue_p2p_provision_request(_adapter *padapter, u8* pssid, u8 ussidlen, u8*
|
|||
return;
|
||||
}
|
||||
|
||||
DBG_871X( "[%s] In\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] In\n", __func__ );
|
||||
//update attribute
|
||||
pattrib = &pmgntframe->attrib;
|
||||
update_mgntframe_attrib(padapter, pattrib);
|
||||
|
@ -4599,17 +4599,17 @@ u8 is_matched_in_profilelist( u8* peermacaddr, struct profile_info* profileinfo
|
|||
{
|
||||
u8 i, match_result = 0;
|
||||
|
||||
DBG_871X( "[%s] peermac = %.2X %.2X %.2X %.2X %.2X %.2X\n", __FUNCTION__,
|
||||
DBG_871X( "[%s] peermac = %.2X %.2X %.2X %.2X %.2X %.2X\n", __func__,
|
||||
peermacaddr[0], peermacaddr[1],peermacaddr[2],peermacaddr[3],peermacaddr[4],peermacaddr[5]);
|
||||
|
||||
for ( i = 0; i < P2P_MAX_PERSISTENT_GROUP_NUM; i++, profileinfo++ )
|
||||
{
|
||||
DBG_871X( "[%s] profileinfo_mac = %.2X %.2X %.2X %.2X %.2X %.2X\n", __FUNCTION__,
|
||||
DBG_871X( "[%s] profileinfo_mac = %.2X %.2X %.2X %.2X %.2X %.2X\n", __func__,
|
||||
profileinfo->peermac[0], profileinfo->peermac[1],profileinfo->peermac[2],profileinfo->peermac[3],profileinfo->peermac[4],profileinfo->peermac[5]);
|
||||
if ( _rtw_memcmp( peermacaddr, profileinfo->peermac, ETH_ALEN ) )
|
||||
{
|
||||
match_result = 1;
|
||||
DBG_871X( "[%s] Match!\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] Match!\n", __func__ );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -4647,7 +4647,7 @@ void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
|
|||
u8 zero_array_check[L2SDTA_SERVICE_VE_LEN] = { 0x00 };
|
||||
#endif //CONFIG_INTEL_WIDI
|
||||
|
||||
//DBG_871X("%s\n", __FUNCTION__);
|
||||
//DBG_871X("%s\n", __func__);
|
||||
|
||||
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
|
||||
{
|
||||
|
@ -5442,7 +5442,7 @@ unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
{
|
||||
case P2P_GO_NEGO_REQ:
|
||||
{
|
||||
DBG_871X( "[%s] Got GO Nego Req Frame\n", __FUNCTION__);
|
||||
DBG_871X( "[%s] Got GO Nego Req Frame\n", __func__);
|
||||
_rtw_memset( &pwdinfo->groupid_info, 0x00, sizeof( struct group_id_info ) );
|
||||
|
||||
if (rtw_p2p_chk_state(pwdinfo, P2P_STATE_RX_PROVISION_DIS_REQ))
|
||||
|
@ -5457,7 +5457,7 @@ unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
_cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
|
||||
// Restore the previous p2p state
|
||||
rtw_p2p_set_state(pwdinfo, rtw_p2p_pre_state(pwdinfo));
|
||||
DBG_871X( "[%s] Restore the previous p2p state to %d\n", __FUNCTION__, rtw_p2p_state(pwdinfo) );
|
||||
DBG_871X( "[%s] Restore the previous p2p state to %d\n", __func__, rtw_p2p_state(pwdinfo) );
|
||||
}
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
if ( check_buddy_fwstate(padapter, _FW_LINKED ) )
|
||||
|
@ -5498,7 +5498,7 @@ unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
}
|
||||
case P2P_GO_NEGO_RESP:
|
||||
{
|
||||
DBG_871X( "[%s] Got GO Nego Resp Frame\n", __FUNCTION__);
|
||||
DBG_871X( "[%s] Got GO Nego Resp Frame\n", __func__);
|
||||
|
||||
if (rtw_p2p_chk_state(pwdinfo, P2P_STATE_GONEGO_ING))
|
||||
{
|
||||
|
@ -5528,14 +5528,14 @@ unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
}
|
||||
else
|
||||
{
|
||||
DBG_871X( "[%s] Skipped GO Nego Resp Frame (p2p_state != P2P_STATE_GONEGO_ING)\n", __FUNCTION__);
|
||||
DBG_871X( "[%s] Skipped GO Nego Resp Frame (p2p_state != P2P_STATE_GONEGO_ING)\n", __func__);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case P2P_GO_NEGO_CONF:
|
||||
{
|
||||
DBG_871X( "[%s] Got GO Nego Confirm Frame\n", __FUNCTION__);
|
||||
DBG_871X( "[%s] Got GO Nego Confirm Frame\n", __func__);
|
||||
result = process_p2p_group_negotation_confirm( pwdinfo, frame_body, len);
|
||||
if ( P2P_STATUS_SUCCESS == result )
|
||||
{
|
||||
|
@ -5553,7 +5553,7 @@ unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
// Added by Albert 2010/10/05
|
||||
// Received the P2P Invite Request frame.
|
||||
|
||||
DBG_871X( "[%s] Got invite request frame!\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] Got invite request frame!\n", __func__ );
|
||||
if ( (p2p_ie=rtw_get_p2p_ie( frame_body + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &p2p_ielen)) )
|
||||
{
|
||||
// Parse the necessary information from the P2P Invitation Request frame.
|
||||
|
@ -5576,7 +5576,7 @@ unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
|
||||
if ( attr_contentlen )
|
||||
{
|
||||
DBG_871X( "[%s] GO's BSSID = %.2X %.2X %.2X %.2X %.2X %.2X\n", __FUNCTION__,
|
||||
DBG_871X( "[%s] GO's BSSID = %.2X %.2X %.2X %.2X %.2X %.2X\n", __func__,
|
||||
pwdinfo->p2p_peer_interface_addr[0], pwdinfo->p2p_peer_interface_addr[1],
|
||||
pwdinfo->p2p_peer_interface_addr[2], pwdinfo->p2p_peer_interface_addr[3],
|
||||
pwdinfo->p2p_peer_interface_addr[4], pwdinfo->p2p_peer_interface_addr[5] );
|
||||
|
@ -5648,7 +5648,7 @@ unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
}
|
||||
else
|
||||
{
|
||||
DBG_871X( "[%s] P2P Group ID Attribute NOT FOUND!\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] P2P Group ID Attribute NOT FOUND!\n", __func__ );
|
||||
status_code = P2P_STATUS_FAIL_INFO_UNAVAILABLE;
|
||||
}
|
||||
}
|
||||
|
@ -5682,18 +5682,18 @@ unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
}
|
||||
else
|
||||
{
|
||||
DBG_871X( "[%s] P2P Group ID Attribute NOT FOUND!\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] P2P Group ID Attribute NOT FOUND!\n", __func__ );
|
||||
status_code = P2P_STATUS_FAIL_INFO_UNAVAILABLE;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DBG_871X( "[%s] P2P Invitation Flags Attribute NOT FOUND!\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] P2P Invitation Flags Attribute NOT FOUND!\n", __func__ );
|
||||
status_code = P2P_STATUS_FAIL_INFO_UNAVAILABLE;
|
||||
}
|
||||
|
||||
DBG_871X( "[%s] status_code = %d\n", __FUNCTION__, status_code );
|
||||
DBG_871X( "[%s] status_code = %d\n", __func__, status_code );
|
||||
|
||||
pwdinfo->inviteresp_info.token = frame_body[ 7 ];
|
||||
issue_p2p_invitation_response( padapter, GetAddr2Ptr(pframe), pwdinfo->inviteresp_info.token, status_code );
|
||||
|
@ -5712,7 +5712,7 @@ unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
u8 attr_content = 0x00;
|
||||
u32 attr_contentlen = 0;
|
||||
|
||||
DBG_871X( "[%s] Got invite response frame!\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] Got invite response frame!\n", __func__ );
|
||||
_cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
|
||||
if ( (p2p_ie=rtw_get_p2p_ie( frame_body + _PUBLIC_ACTION_IE_OFFSET_, len - _PUBLIC_ACTION_IE_OFFSET_, NULL, &p2p_ielen)) )
|
||||
{
|
||||
|
@ -5720,7 +5720,7 @@ unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
|
||||
if ( attr_contentlen == 1 )
|
||||
{
|
||||
DBG_871X( "[%s] Status = %d\n", __FUNCTION__, attr_content );
|
||||
DBG_871X( "[%s] Status = %d\n", __func__, attr_content );
|
||||
pwdinfo->invitereq_info.benable = _FALSE;
|
||||
|
||||
if ( attr_content == P2P_STATUS_SUCCESS )
|
||||
|
@ -5772,7 +5772,7 @@ unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
break;
|
||||
|
||||
case P2P_PROVISION_DISC_REQ:
|
||||
DBG_871X( "[%s] Got Provisioning Discovery Request Frame\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] Got Provisioning Discovery Request Frame\n", __func__ );
|
||||
process_p2p_provdisc_req(pwdinfo, pframe, len);
|
||||
_rtw_memcpy(pwdinfo->rx_prov_disc_info.peerDevAddr, GetAddr2Ptr(pframe), ETH_ALEN);
|
||||
|
||||
|
@ -5795,7 +5795,7 @@ unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
case P2P_PROVISION_DISC_RESP:
|
||||
// Commented by Albert 20110707
|
||||
// Should we check the pwdinfo->tx_prov_disc_info.bsent flag here??
|
||||
DBG_871X( "[%s] Got Provisioning Discovery Response Frame\n", __FUNCTION__ );
|
||||
DBG_871X( "[%s] Got Provisioning Discovery Response Frame\n", __func__ );
|
||||
// Commented by Albert 20110426
|
||||
// The restore timer is enabled when issuing the provisioing request frame in rtw_p2p_prov_disc function.
|
||||
_cancel_timer_ex( &pwdinfo->restore_p2p_state_timer );
|
||||
|
@ -5902,7 +5902,7 @@ unsigned int OnAction_p2p(_adapter *padapter, union recv_frame *precv_frame)
|
|||
struct wifidirect_info *pwdinfo = &( padapter->wdinfo );
|
||||
|
||||
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
DBG_871X("%s\n", __func__);
|
||||
|
||||
//check RA matches or not
|
||||
if (!_rtw_memcmp(myid(&(padapter->eeprompriv)), GetAddr1Ptr(pframe), ETH_ALEN))//for if1, sta/ap mode
|
||||
|
@ -6000,13 +6000,13 @@ struct xmit_frame *alloc_mgtxmitframe(struct xmit_priv *pxmitpriv)
|
|||
|
||||
if ((pmgntframe = rtw_alloc_xmitframe(pxmitpriv)) == NULL)
|
||||
{
|
||||
DBG_871X("%s, alloc xmitframe fail\n", __FUNCTION__);
|
||||
DBG_871X("%s, alloc xmitframe fail\n", __func__);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if ((pxmitbuf = rtw_alloc_xmitbuf_ext(pxmitpriv)) == NULL)
|
||||
{
|
||||
DBG_871X("%s, alloc xmitbuf fail\n", __FUNCTION__);
|
||||
DBG_871X("%s, alloc xmitbuf fail\n", __func__);
|
||||
rtw_free_xmitframe(pxmitpriv, pmgntframe);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -6035,7 +6035,7 @@ void update_mgnt_tx_rate(_adapter *padapter, u8 rate)
|
|||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||
|
||||
pmlmeext->tx_rate = rate;
|
||||
DBG_871X("%s(): rate = %x\n",__FUNCTION__, rate);
|
||||
DBG_871X("%s(): rate = %x\n",__func__, rate);
|
||||
}
|
||||
|
||||
void update_mgntframe_attrib(_adapter *padapter, struct pkt_attrib *pattrib)
|
||||
|
@ -6144,7 +6144,7 @@ int update_hidden_ssid(u8 *ies, u32 ies_len, u8 hidden_ssid_mode)
|
|||
|
||||
ssid_ie = rtw_get_ie(ies, WLAN_EID_SSID, &ssid_len_ori, ies_len);
|
||||
|
||||
//DBG_871X("%s hidden_ssid_mode:%u, ssid_ie:%p, ssid_len_ori:%d\n", __FUNCTION__, hidden_ssid_mode, ssid_ie, ssid_len_ori);
|
||||
//DBG_871X("%s hidden_ssid_mode:%u, ssid_ie:%p, ssid_len_ori:%d\n", __func__, hidden_ssid_mode, ssid_ie, ssid_len_ori);
|
||||
|
||||
if (ssid_ie && ssid_len_ori>0)
|
||||
{
|
||||
|
@ -6196,11 +6196,11 @@ void issue_beacon(_adapter *padapter, int timeout_ms)
|
|||
#endif //CONFIG_P2P
|
||||
|
||||
|
||||
//DBG_871X("%s\n", __FUNCTION__);
|
||||
//DBG_871X("%s\n", __func__);
|
||||
|
||||
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
|
||||
{
|
||||
DBG_871X("%s, alloc mgnt frame fail\n", __FUNCTION__);
|
||||
DBG_871X("%s, alloc mgnt frame fail\n", __func__);
|
||||
return;
|
||||
}
|
||||
#if defined (CONFIG_AP_MODE) && defined (CONFIG_NATIVEAP_MLME)
|
||||
|
@ -6514,11 +6514,11 @@ void issue_probersp(_adapter *padapter, unsigned char *da, u8 is_valid_p2p_probe
|
|||
#endif //CONFIG_WFD
|
||||
#endif //CONFIG_P2P
|
||||
|
||||
//DBG_871X("%s\n", __FUNCTION__);
|
||||
//DBG_871X("%s\n", __func__);
|
||||
|
||||
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
|
||||
{
|
||||
DBG_871X("%s, alloc mgnt frame fail\n", __FUNCTION__);
|
||||
DBG_871X("%s, alloc mgnt frame fail\n", __func__);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -6963,7 +6963,7 @@ void issue_auth(_adapter *padapter, struct sta_info *psta, unsigned short status
|
|||
val16 = cpu_to_le16(val16);
|
||||
use_shared_key = 1;
|
||||
}
|
||||
//DBG_871X("%s auth_algo= %s auth_seq=%d\n",__FUNCTION__,(pmlmeinfo->auth_algo==0)?"OPEN":"SHARED",pmlmeinfo->auth_seq);
|
||||
//DBG_871X("%s auth_algo= %s auth_seq=%d\n",__func__,(pmlmeinfo->auth_algo==0)?"OPEN":"SHARED",pmlmeinfo->auth_seq);
|
||||
|
||||
//setting IV for auth seq #3
|
||||
if ((pmlmeinfo->auth_seq == 3) && (pmlmeinfo->state & WIFI_FW_AUTH_STATE) && (use_shared_key==1))
|
||||
|
@ -7011,7 +7011,7 @@ void issue_auth(_adapter *padapter, struct sta_info *psta, unsigned short status
|
|||
pattrib->last_txcmdsz = pattrib->pktlen;
|
||||
|
||||
rtw_wep_encrypt(padapter, (u8 *)pmgntframe);
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
DBG_871X("%s\n", __func__);
|
||||
dump_mgntframe(padapter, pmgntframe);
|
||||
|
||||
return;
|
||||
|
@ -7041,7 +7041,7 @@ void issue_asocrsp(_adapter *padapter, unsigned short status, struct sta_info *p
|
|||
|
||||
#endif //CONFIG_P2P
|
||||
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
DBG_871X("%s\n", __func__);
|
||||
|
||||
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
|
||||
{
|
||||
|
@ -7320,7 +7320,7 @@ void issue_assocreq(_adapter *padapter)
|
|||
|
||||
if (j == sta_bssrate_len) {
|
||||
// the rate is not supported by STA
|
||||
DBG_871X("%s(): the rate[%d]=%02X is not supported by STA!\n",__FUNCTION__, i, pmlmeinfo->network.SupportedRates[i]);
|
||||
DBG_871X("%s(): the rate[%d]=%02X is not supported by STA!\n",__func__, i, pmlmeinfo->network.SupportedRates[i]);
|
||||
} else {
|
||||
// the rate is supported by STA
|
||||
bssrate[index++] = pmlmeinfo->network.SupportedRates[i];
|
||||
|
@ -7696,7 +7696,7 @@ static int _issue_nulldata(_adapter *padapter, unsigned char *da, unsigned int p
|
|||
struct mlme_ext_priv *pmlmeext;
|
||||
struct mlme_ext_info *pmlmeinfo;
|
||||
|
||||
//DBG_871X("%s:%d\n", __FUNCTION__, power_mode);
|
||||
//DBG_871X("%s:%d\n", __func__, power_mode);
|
||||
|
||||
if (!padapter)
|
||||
goto exit;
|
||||
|
@ -7827,7 +7827,7 @@ static int _issue_qos_nulldata(_adapter *padapter, unsigned char *da, u16 tid, i
|
|||
struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
DBG_871X("%s\n", __func__);
|
||||
|
||||
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
|
||||
{
|
||||
|
@ -8159,7 +8159,7 @@ void issue_action_BA(_adapter *padapter, unsigned char *raddr, unsigned char act
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_80211N_HT
|
||||
DBG_871X("%s, category=%d, action=%d, status=%d\n", __FUNCTION__, category, action, status);
|
||||
DBG_871X("%s, category=%d, action=%d, status=%d\n", __func__, category, action, status);
|
||||
|
||||
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
|
||||
{
|
||||
|
@ -8344,7 +8344,7 @@ static void issue_action_BSSCoexistPacket(_adapter *padapter)
|
|||
return;
|
||||
|
||||
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
DBG_871X("%s\n", __func__);
|
||||
|
||||
|
||||
category = RTW_WLAN_CATEGORY_PUBLIC;
|
||||
|
@ -8493,7 +8493,7 @@ unsigned int send_delba(_adapter *padapter, u8 initiator, u8 *addr)
|
|||
if (psta==NULL)
|
||||
return _SUCCESS;
|
||||
|
||||
//DBG_871X("%s:%s\n", __FUNCTION__, (initiator==0)?"RX_DIR":"TX_DIR");
|
||||
//DBG_871X("%s:%s\n", __func__, (initiator==0)?"RX_DIR":"TX_DIR");
|
||||
|
||||
if (initiator==0) // recipient
|
||||
{
|
||||
|
@ -8506,7 +8506,7 @@ unsigned int send_delba(_adapter *padapter, u8 initiator, u8 *addr)
|
|||
psta->recvreorder_ctrl[tid].enable = _FALSE;
|
||||
psta->recvreorder_ctrl[tid].indicate_seq = 0xffff;
|
||||
#ifdef DBG_RX_SEQ
|
||||
DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __FUNCTION__, __LINE__,
|
||||
DBG_871X("DBG_RX_SEQ %s:%d indicate_seq:%u\n", __func__, __LINE__,
|
||||
psta->recvreorder_ctrl[tid].indicate_seq);
|
||||
#endif
|
||||
}
|
||||
|
@ -8548,7 +8548,7 @@ unsigned int send_beacon(_adapter *padapter)
|
|||
|
||||
#ifdef CONFIG_PCI_HCI
|
||||
|
||||
//DBG_871X("%s\n", __FUNCTION__);
|
||||
//DBG_871X("%s\n", __func__);
|
||||
|
||||
issue_beacon(padapter, 0);
|
||||
|
||||
|
@ -8577,7 +8577,7 @@ unsigned int send_beacon(_adapter *padapter)
|
|||
}
|
||||
if (_FALSE == bxmitok)
|
||||
{
|
||||
DBG_871X("%s fail! %u ms\n", __FUNCTION__, rtw_get_passing_time_ms(start));
|
||||
DBG_871X("%s fail! %u ms\n", __func__, rtw_get_passing_time_ms(start));
|
||||
return _FAIL;
|
||||
}
|
||||
else
|
||||
|
@ -8585,9 +8585,9 @@ unsigned int send_beacon(_adapter *padapter)
|
|||
u32 passing_time = rtw_get_passing_time_ms(start);
|
||||
|
||||
if (passing_time > 100 || issue > 3)
|
||||
DBG_871X("%s success, issue:%d, poll:%d, %u ms\n", __FUNCTION__, issue, poll, rtw_get_passing_time_ms(start));
|
||||
DBG_871X("%s success, issue:%d, poll:%d, %u ms\n", __func__, issue, poll, rtw_get_passing_time_ms(start));
|
||||
//else
|
||||
// DBG_871X("%s success, issue:%d, poll:%d, %u ms\n", __FUNCTION__, issue, poll, rtw_get_passing_time_ms(start));
|
||||
// DBG_871X("%s success, issue:%d, poll:%d, %u ms\n", __func__, issue, poll, rtw_get_passing_time_ms(start));
|
||||
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
@ -8825,7 +8825,7 @@ void site_survey(_adapter *padapter)
|
|||
rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_MAX);
|
||||
}
|
||||
#ifdef CONFIG_DBG_P2P
|
||||
DBG_871X( "[%s] find phase exchange cnt = %d\n", __FUNCTION__, pwdinfo->find_phase_state_exchange_cnt );
|
||||
DBG_871X( "[%s] find phase exchange cnt = %d\n", __func__, pwdinfo->find_phase_state_exchange_cnt );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -9044,7 +9044,7 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
|
|||
{
|
||||
if (len > NDIS_802_11_LENGTH_SSID)
|
||||
{
|
||||
DBG_871X("%s()-%d: IE too long (%d) for survey event\n", __FUNCTION__, __LINE__, len);
|
||||
DBG_871X("%s()-%d: IE too long (%d) for survey event\n", __func__, __LINE__, len);
|
||||
return _FAIL;
|
||||
}
|
||||
_rtw_memcpy(bssid->Ssid.Ssid, (p + 2), *(p + 1));
|
||||
|
@ -9064,7 +9064,7 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
|
|||
{
|
||||
if (len > NDIS_802_11_LENGTH_RATES_EX)
|
||||
{
|
||||
DBG_871X("%s()-%d: IE too long (%d) for survey event\n", __FUNCTION__, __LINE__, len);
|
||||
DBG_871X("%s()-%d: IE too long (%d) for survey event\n", __func__, __LINE__, len);
|
||||
return _FAIL;
|
||||
}
|
||||
_rtw_memcpy(bssid->SupportedRates, (p + 2), len);
|
||||
|
@ -9076,7 +9076,7 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
|
|||
{
|
||||
if (len > (NDIS_802_11_LENGTH_RATES_EX-i))
|
||||
{
|
||||
DBG_871X("%s()-%d: IE too long (%d) for survey event\n", __FUNCTION__, __LINE__, len);
|
||||
DBG_871X("%s()-%d: IE too long (%d) for survey event\n", __func__, __LINE__, len);
|
||||
return _FAIL;
|
||||
}
|
||||
_rtw_memcpy(bssid->SupportedRates + i, (p + 2), len);
|
||||
|
@ -9417,7 +9417,7 @@ unsigned int receive_disconnect(_adapter *padapter, unsigned char *MacAddr, unsi
|
|||
if (!(_rtw_memcmp(MacAddr, get_my_bssid(&pmlmeinfo->network), ETH_ALEN)))
|
||||
return _SUCCESS;
|
||||
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
DBG_871X("%s\n", __func__);
|
||||
|
||||
if ((pmlmeinfo->state&0x03) == WIFI_FW_STATION_STATE)
|
||||
{
|
||||
|
@ -9477,7 +9477,7 @@ static void process_80211d(PADAPTER padapter, WLAN_BSSID_EX *bssid)
|
|||
_rtw_memcpy(country, p, 3);
|
||||
p += 3;
|
||||
RT_TRACE(_module_rtl871x_mlme_c_, _drv_notice_,
|
||||
("%s: 802.11d country=%s\n", __FUNCTION__, country));
|
||||
("%s: 802.11d country=%s\n", __func__, country));
|
||||
|
||||
i = 0;
|
||||
while ((ie - p) >= 3)
|
||||
|
@ -9694,7 +9694,7 @@ static void process_80211d(PADAPTER padapter, WLAN_BSSID_EX *bssid)
|
|||
if (chplan_new[k].ChannelNum == channel) {
|
||||
RT_TRACE(_module_rtl871x_mlme_c_, _drv_notice_,
|
||||
("%s: change mlme_ext sitesurvey channel index from %d to %d\n",
|
||||
__FUNCTION__, pmlmeext->sitesurvey_res.channel_idx, k));
|
||||
__func__, pmlmeext->sitesurvey_res.channel_idx, k));
|
||||
pmlmeext->sitesurvey_res.channel_idx = k;
|
||||
break;
|
||||
}
|
||||
|
@ -9720,7 +9720,7 @@ static void process_80211d(PADAPTER padapter, WLAN_BSSID_EX *bssid)
|
|||
chplan_new[i].ScanType = SCAN_ACTIVE;
|
||||
RT_TRACE(_module_rtl871x_mlme_c_, _drv_notice_,
|
||||
("%s: change channel %d scan type from passive to active\n",
|
||||
__FUNCTION__, channel));
|
||||
__func__, channel));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -10171,7 +10171,7 @@ exit_mlmeext_joinbss_event_callback:
|
|||
concurrent_chk_joinbss_done(padapter, join_res);
|
||||
#endif
|
||||
|
||||
DBG_871X("=>%s\n", __FUNCTION__);
|
||||
DBG_871X("=>%s\n", __func__);
|
||||
|
||||
}
|
||||
|
||||
|
@ -10181,7 +10181,7 @@ void mlmeext_sta_add_event_callback(_adapter *padapter, struct sta_info *psta)
|
|||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
u8 join_type;
|
||||
|
||||
DBG_871X("%s\n", __FUNCTION__);
|
||||
DBG_871X("%s\n", __func__);
|
||||
|
||||
if ((pmlmeinfo->state&0x03) == WIFI_FW_ADHOC_STATE)
|
||||
{
|
||||
|
@ -10460,7 +10460,7 @@ void linked_status_chk(_adapter *padapter)
|
|||
|
||||
if (tx_chk != _SUCCESS && pmlmeinfo->link_count++ == 0xf) {
|
||||
#ifdef DBG_EXPIRATION_CHK
|
||||
DBG_871X("%s issue_nulldata 0\n", __FUNCTION__);
|
||||
DBG_871X("%s issue_nulldata 0\n", __func__);
|
||||
#endif
|
||||
tx_chk = issue_nulldata(padapter, NULL, 0, 1, 0);
|
||||
}
|
||||
|
@ -10578,7 +10578,7 @@ void survey_timer_hdl(_adapter *padapter)
|
|||
{
|
||||
rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_MAX);
|
||||
pmlmeext->sitesurvey_res.channel_idx = 3;
|
||||
DBG_871X("%s idx:%d, cnt:%u\n", __FUNCTION__
|
||||
DBG_871X("%s idx:%d, cnt:%u\n", __func__
|
||||
, pmlmeext->sitesurvey_res.channel_idx
|
||||
, pwdinfo->find_phase_state_exchange_cnt
|
||||
);
|
||||
|
@ -10587,7 +10587,7 @@ void survey_timer_hdl(_adapter *padapter)
|
|||
#endif
|
||||
{
|
||||
pmlmeext->sitesurvey_res.channel_idx = pmlmeext->sitesurvey_res.ch_num;
|
||||
DBG_871X("%s idx:%d\n", __FUNCTION__
|
||||
DBG_871X("%s idx:%d\n", __func__
|
||||
, pmlmeext->sitesurvey_res.channel_idx
|
||||
);
|
||||
}
|
||||
|
@ -11767,20 +11767,20 @@ static void dc_change_band(_adapter *padapter, WLAN_BSSID_EX *pnetwork)
|
|||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
u8 erpinfo=0x4;
|
||||
|
||||
//DBG_871X("%s\n", __FUNCTION__);
|
||||
//DBG_871X("%s\n", __func__);
|
||||
|
||||
if (pmlmeext->cur_channel >= 36)
|
||||
{
|
||||
network_type = WIRELESS_11A;
|
||||
total_rate_len = IEEE80211_NUM_OFDM_RATESLEN;
|
||||
DBG_871X("%s(): change to 5G Band\n",__FUNCTION__);
|
||||
DBG_871X("%s(): change to 5G Band\n",__func__);
|
||||
rtw_remove_bcn_ie(padapter, pnetwork, _ERPINFO_IE_);
|
||||
}
|
||||
else
|
||||
{
|
||||
network_type = WIRELESS_11BG;
|
||||
total_rate_len = IEEE80211_CCK_RATE_LEN+IEEE80211_NUM_OFDM_RATESLEN;
|
||||
DBG_871X("%s(): change to 2.4G Band\n",__FUNCTION__);
|
||||
DBG_871X("%s(): change to 2.4G Band\n",__func__);
|
||||
rtw_add_bcn_ie(padapter, pnetwork, _ERPINFO_IE_, &erpinfo, 1);
|
||||
}
|
||||
|
||||
|
@ -12762,7 +12762,7 @@ u8 tdls_hdl(_adapter *padapter, unsigned char *pbuf)
|
|||
}
|
||||
|
||||
//_enter_critical_bh(&(ptdlsinfo->hdl_lock), &irqL);
|
||||
DBG_871X("[%s] option:%d\n", __FUNCTION__, option);
|
||||
DBG_871X("[%s] option:%d\n", __func__, option);
|
||||
|
||||
switch (option){
|
||||
case TDLS_WRCR:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue