mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 14:33:05 +00:00
rtl8188eu: Remove CONFIG_IOCTL_CFG80211
This one is always selected. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
34c3293686
commit
5470a10d13
18 changed files with 29 additions and 344 deletions
|
@ -2192,7 +2192,6 @@ u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta, bool active, u16
|
|||
psta->state &= ~_FW_LINKED;
|
||||
_exit_critical_bh(&psta->lock, &irqL);
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if (1) {
|
||||
#ifdef COMPAT_KERNEL_RELEASE
|
||||
rtw_cfg80211_indicate_sta_disassoc(padapter, psta->hwaddr, reason);
|
||||
|
@ -2201,9 +2200,7 @@ u8 ap_free_sta(struct adapter *padapter, struct sta_info *psta, bool active, u16
|
|||
#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER) */
|
||||
/* will call rtw_cfg80211_indicate_sta_disassoc() in cmd_thread for old API context */
|
||||
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) && !defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER) */
|
||||
} else
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
{
|
||||
} else {
|
||||
rtw_indicate_sta_disassoc_event(padapter, psta);
|
||||
}
|
||||
|
||||
|
|
|
@ -143,7 +143,7 @@ void rtw_free_mlme_priv_ie_data(struct mlme_priv *pmlmepriv)
|
|||
rtw_free_mlme_ie_data(&pmlmepriv->p2p_assoc_req_ie, &pmlmepriv->p2p_assoc_req_ie_len);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_WFD) && defined(CONFIG_IOCTL_CFG80211)
|
||||
#if defined(CONFIG_WFD)
|
||||
rtw_free_mlme_ie_data(&pmlmepriv->wfd_beacon_ie, &pmlmepriv->wfd_beacon_ie_len);
|
||||
rtw_free_mlme_ie_data(&pmlmepriv->wfd_probe_req_ie, &pmlmepriv->wfd_probe_req_ie_len);
|
||||
rtw_free_mlme_ie_data(&pmlmepriv->wfd_probe_resp_ie, &pmlmepriv->wfd_probe_resp_ie_len);
|
||||
|
@ -1226,12 +1226,7 @@ void rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
rtw_cfg80211_surveydone_event_callback(adapter);
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
|
||||
;
|
||||
|
||||
}
|
||||
|
||||
void rtw_dummy_event_callback(struct adapter *adapter , u8 *pbuf)
|
||||
|
@ -1963,7 +1958,6 @@ void rtw_stassoc_event_callback(struct adapter *adapter, u8 *pbuf)
|
|||
|
||||
/* report to upper layer */
|
||||
DBG_871X("indicate_sta_assoc_event to upper layer - hostapd\n");
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
_enter_critical_bh(&psta->lock, &irqL);
|
||||
if(psta->passoc_req && psta->assoc_req_len>0)
|
||||
{
|
||||
|
@ -1986,9 +1980,6 @@ void rtw_stassoc_event_callback(struct adapter *adapter, u8 *pbuf)
|
|||
|
||||
rtw_mfree(passoc_req, assoc_req_len);
|
||||
}
|
||||
#else /* CONFIG_IOCTL_CFG80211 */
|
||||
rtw_indicate_sta_assoc_event(adapter, psta);
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
#endif /* CONFIG_AUTO_AP_MODE */
|
||||
}
|
||||
goto exit;
|
||||
|
@ -2087,14 +2078,11 @@ void rtw_stadel_event_callback(struct adapter *adapter, u8 *pbuf)
|
|||
|
||||
if(check_fwstate(pmlmepriv, WIFI_AP_STATE))
|
||||
{
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
#ifdef COMPAT_KERNEL_RELEASE
|
||||
|
||||
#elif (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) || defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER)
|
||||
rtw_cfg80211_indicate_sta_disassoc(adapter, pstadel->macaddr, *(u16*)pstadel->rsvd);
|
||||
#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)) || defined(CONFIG_CFG80211_FORCE_COMPATIBLE_2_6_37_UNDER) */
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2271,11 +2259,8 @@ void _rtw_join_timeout_handler (struct adapter *adapter)
|
|||
rtw_indicate_disconnect(adapter);
|
||||
free_scanqueue(pmlmepriv);/* */
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
/* indicate disconnect for the case that join_timeout and check_fwstate != FW_LINKED */
|
||||
rtw_cfg80211_indicate_disconnect(adapter);
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
|
||||
}
|
||||
|
||||
_exit_critical_bh(&pmlmepriv->lock, &irqL);
|
||||
|
|
|
@ -735,7 +735,6 @@ static u32 p2p_listen_state_process(struct adapter *padapter, unsigned char *da)
|
|||
{
|
||||
bool response = true;
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if( padapter->wdinfo.driver_interface == DRIVER_CFG80211 )
|
||||
{
|
||||
if(padapter->cfg80211_wdinfo.is_ro_ch == false
|
||||
|
@ -759,7 +758,6 @@ static u32 p2p_listen_state_process(struct adapter *padapter, unsigned char *da)
|
|||
}
|
||||
}
|
||||
else
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
if( padapter->wdinfo.driver_interface == DRIVER_WEXT )
|
||||
{
|
||||
/* do nothing if the device name is empty */
|
||||
|
@ -838,10 +836,6 @@ unsigned int OnProbeReq(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
{
|
||||
if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_DEVICE))
|
||||
{
|
||||
#ifndef CONFIG_IOCTL_CFG80211
|
||||
/* FIXME */
|
||||
report_survey_event(padapter, precv_frame);
|
||||
#endif
|
||||
p2p_listen_state_process( padapter, get_sa(pframe));
|
||||
|
||||
return _SUCCESS;
|
||||
|
@ -1976,7 +1970,6 @@ unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
else
|
||||
issue_asocrsp(padapter, status, pstat, WIFI_REASSOCRSP);
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
_enter_critical_bh(&pstat->lock, &irqL);
|
||||
if(pstat->passoc_req)
|
||||
{
|
||||
|
@ -1992,7 +1985,6 @@ unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame)
|
|||
pstat->assoc_req_len = pkt_len;
|
||||
}
|
||||
_exit_critical_bh(&pstat->lock, &irqL);
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
|
||||
/* 3-(1) report sta add event */
|
||||
report_add_sta_event(padapter, pstat->hwaddr, pstat->aid);
|
||||
|
@ -4364,7 +4356,6 @@ void issue_probersp_p2p(struct adapter *padapter, unsigned char *da)
|
|||
/* DS parameter set */
|
||||
pframe = rtw_set_ie(pframe, _DSSET_IE_, 1, (unsigned char *)&pwdinfo->listen_channel, &pattrib->pktlen);
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
|
||||
{
|
||||
if( pmlmepriv->wps_probe_resp_ie != NULL && pmlmepriv->p2p_probe_resp_ie != NULL )
|
||||
|
@ -4379,10 +4370,7 @@ void issue_probersp_p2p(struct adapter *padapter, unsigned char *da)
|
|||
pattrib->pktlen += pmlmepriv->p2p_probe_resp_ie_len;
|
||||
pframe += pmlmepriv->p2p_probe_resp_ie_len;
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
{
|
||||
} else {
|
||||
|
||||
/* Todo: WPS IE */
|
||||
/* Noted by Albert 20100907 */
|
||||
|
@ -4594,15 +4582,11 @@ void issue_probersp_p2p(struct adapter *padapter, unsigned char *da)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_WFD
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if ( true == pwdinfo->wfd_info->wfd_enable )
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
{
|
||||
if ( true == pwdinfo->wfd_info->wfd_enable ) {
|
||||
wfdielen = build_probe_resp_wfd_ie(pwdinfo, pframe, 0);
|
||||
pframe += wfdielen;
|
||||
pattrib->pktlen += wfdielen;
|
||||
}
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
else if (pmlmepriv->wfd_probe_resp_ie != NULL && pmlmepriv->wfd_probe_resp_ie_len>0)
|
||||
{
|
||||
/* WFD IE */
|
||||
|
@ -4610,7 +4594,6 @@ void issue_probersp_p2p(struct adapter *padapter, unsigned char *da)
|
|||
pattrib->pktlen += pmlmepriv->wfd_probe_resp_ie_len;
|
||||
pframe += pmlmepriv->wfd_probe_resp_ie_len;
|
||||
}
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
#endif /* CONFIG_WFD */
|
||||
|
||||
pattrib->last_txcmdsz = pattrib->pktlen;
|
||||
|
@ -4704,7 +4687,6 @@ static int _issue_probereq_p2p(struct adapter *padapter, u8 *da, int wait_ack)
|
|||
/* Use the OFDM rate in the P2P probe request frame. ( 6(B), 9(B), 12(B), 24(B), 36, 48, 54 ) */
|
||||
pframe = rtw_set_ie(pframe, _SUPPORTEDRATES_IE_, 8, pwdinfo->support_rate, &pattrib->pktlen);
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
|
||||
{
|
||||
if( pmlmepriv->wps_probe_req_ie != NULL && pmlmepriv->p2p_probe_req_ie != NULL )
|
||||
|
@ -4719,10 +4701,7 @@ static int _issue_probereq_p2p(struct adapter *padapter, u8 *da, int wait_ack)
|
|||
pattrib->pktlen += pmlmepriv->p2p_probe_req_ie_len;
|
||||
pframe += pmlmepriv->p2p_probe_req_ie_len;
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
{
|
||||
} else {
|
||||
|
||||
/* WPS IE */
|
||||
/* Noted by Albert 20110221 */
|
||||
|
@ -4942,15 +4921,12 @@ static int _issue_probereq_p2p(struct adapter *padapter, u8 *da, int wait_ack)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_WFD
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if ( true == pwdinfo->wfd_info->wfd_enable )
|
||||
#endif
|
||||
{
|
||||
wfdielen = build_probe_req_wfd_ie(pwdinfo, pframe);
|
||||
pframe += wfdielen;
|
||||
pattrib->pktlen += wfdielen;
|
||||
}
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
else if (pmlmepriv->wfd_probe_req_ie != NULL && pmlmepriv->wfd_probe_req_ie_len>0)
|
||||
{
|
||||
/* WFD IE */
|
||||
|
@ -4958,7 +4934,6 @@ static int _issue_probereq_p2p(struct adapter *padapter, u8 *da, int wait_ack)
|
|||
pattrib->pktlen += pmlmepriv->wfd_probe_req_ie_len;
|
||||
pframe += pmlmepriv->wfd_probe_req_ie_len;
|
||||
}
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
#endif /* CONFIG_WFD */
|
||||
|
||||
pattrib->last_txcmdsz = pattrib->pktlen;
|
||||
|
@ -5084,14 +5059,10 @@ static unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
|
||||
#ifdef CONFIG_P2P
|
||||
_cancel_timer_ex( &pwdinfo->reset_ch_sitesurvey );
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211)
|
||||
{
|
||||
rtw_cfg80211_rx_p2p_action_public(padapter, pframe, len);
|
||||
}
|
||||
else
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
{
|
||||
} else {
|
||||
/* Do nothing if the driver doesn't enable the P2P function. */
|
||||
if(rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE) || rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE))
|
||||
return _SUCCESS;
|
||||
|
@ -5529,10 +5500,8 @@ static unsigned int on_action_public_default(union recv_frame *precv_frame, u8 a
|
|||
if (rtw_action_public_decache(precv_frame, token) == _FAIL)
|
||||
goto exit;
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
cnt += sprintf((msg+cnt), "%s(token:%u)", action_public_str(action), token);
|
||||
rtw_cfg80211_rx_action(adapter, pframe, frame_len, msg);
|
||||
#endif
|
||||
|
||||
ret = _SUCCESS;
|
||||
|
||||
|
@ -5644,15 +5613,11 @@ unsigned int OnAction_p2p(struct adapter *padapter, union recv_frame *precv_fram
|
|||
if (be32_to_cpu(*((__be32*)(frame_body + 1))) != P2POUI)
|
||||
return _SUCCESS;
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
|
||||
{
|
||||
rtw_cfg80211_rx_action_p2p(padapter, pframe, len);
|
||||
return _SUCCESS;
|
||||
}
|
||||
else
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
{
|
||||
} else {
|
||||
len -= sizeof(struct rtw_ieee80211_hdr_3addr);
|
||||
OUI_Subtype = frame_body[5];
|
||||
dialogToken = frame_body[6];
|
||||
|
@ -6005,7 +5970,6 @@ void issue_beacon(struct adapter *padapter, int timeout_ms)
|
|||
|
||||
remainder_ielen = cur_network->IELength - wps_offset - wpsielen;
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
|
||||
{
|
||||
if(pmlmepriv->wps_beacon_ie && pmlmepriv->wps_beacon_ie_len>0)
|
||||
|
@ -6029,10 +5993,7 @@ void issue_beacon(struct adapter *padapter, int timeout_ms)
|
|||
pframe += cur_network->IELength;
|
||||
pattrib->pktlen += cur_network->IELength;
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
{
|
||||
} else {
|
||||
pframe_wscie = pframe + wps_offset;
|
||||
memcpy(pframe, cur_network->IEs, wps_offset+wpsielen);
|
||||
pframe += (wps_offset + wpsielen);
|
||||
|
@ -6122,31 +6083,21 @@ void issue_beacon(struct adapter *padapter, int timeout_ms)
|
|||
if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO))
|
||||
{
|
||||
u32 len;
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
|
||||
{
|
||||
len = pmlmepriv->p2p_beacon_ie_len;
|
||||
if(pmlmepriv->p2p_beacon_ie && len>0)
|
||||
memcpy(pframe, pmlmepriv->p2p_beacon_ie, len);
|
||||
}
|
||||
else
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
{
|
||||
} else {
|
||||
len = build_beacon_p2p_ie(pwdinfo, pframe);
|
||||
}
|
||||
|
||||
pframe += len;
|
||||
pattrib->pktlen += len;
|
||||
#ifdef CONFIG_WFD
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if(true == pwdinfo->wfd_info->wfd_enable)
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
{
|
||||
if(pwdinfo->wfd_info->wfd_enable) {
|
||||
len = build_beacon_wfd_ie( pwdinfo, pframe );
|
||||
}
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
else
|
||||
{
|
||||
} else {
|
||||
len = 0;
|
||||
if(pmlmepriv->wfd_beacon_ie && pmlmepriv->wfd_beacon_ie_len>0)
|
||||
{
|
||||
|
@ -6154,7 +6105,6 @@ void issue_beacon(struct adapter *padapter, int timeout_ms)
|
|||
memcpy(pframe, pmlmepriv->wfd_beacon_ie, len);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
pframe += len;
|
||||
pattrib->pktlen += len;
|
||||
#endif /* CONFIG_WFD */
|
||||
|
@ -6446,17 +6396,13 @@ void issue_probersp(struct adapter *padapter, unsigned char *da, u8 is_valid_p2p
|
|||
if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO) /*&& is_valid_p2p_probereq*/)
|
||||
{
|
||||
u32 len;
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
|
||||
{
|
||||
/* if pwdinfo->role == P2P_ROLE_DEVICE will call issue_probersp_p2p() */
|
||||
len = pmlmepriv->p2p_go_probe_resp_ie_len;
|
||||
if(pmlmepriv->p2p_go_probe_resp_ie && len>0)
|
||||
memcpy(pframe, pmlmepriv->p2p_go_probe_resp_ie, len);
|
||||
}
|
||||
else
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
{
|
||||
} else {
|
||||
len = build_probe_resp_p2p_ie(pwdinfo, pframe);
|
||||
}
|
||||
|
||||
|
@ -6464,13 +6410,10 @@ void issue_probersp(struct adapter *padapter, unsigned char *da, u8 is_valid_p2p
|
|||
pattrib->pktlen += len;
|
||||
|
||||
#ifdef CONFIG_WFD
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if(true == pwdinfo->wfd_info->wfd_enable)
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
{
|
||||
len = build_probe_resp_wfd_ie(pwdinfo, pframe, 0);
|
||||
}
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
else
|
||||
{
|
||||
len = 0;
|
||||
|
@ -6480,7 +6423,6 @@ void issue_probersp(struct adapter *padapter, unsigned char *da, u8 is_valid_p2p
|
|||
memcpy(pframe, pmlmepriv->wfd_probe_resp_ie, len);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
pframe += len;
|
||||
pattrib->pktlen += len;
|
||||
#endif /* CONFIG_WFD */
|
||||
|
@ -6924,9 +6866,7 @@ void issue_asocrsp(struct adapter *padapter, unsigned short status, struct sta_i
|
|||
}
|
||||
#ifdef CONFIG_WFD
|
||||
if(rtw_p2p_chk_role(pwdinfo, P2P_ROLE_GO)
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
&& (true == pwdinfo->wfd_info->wfd_enable)
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
)
|
||||
{
|
||||
wfdielen = build_assoc_resp_wfd_ie(pwdinfo, pframe);
|
||||
|
@ -7205,7 +7145,6 @@ void issue_assocreq(struct adapter *padapter)
|
|||
|
||||
#ifdef CONFIG_P2P
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if(wdev_to_priv(padapter->rtw_wdev)->p2p_enabled && pwdinfo->driver_interface == DRIVER_CFG80211 )
|
||||
{
|
||||
if(pmlmepriv->p2p_assoc_req_ie && pmlmepriv->p2p_assoc_req_ie_len>0)
|
||||
|
@ -7214,10 +7153,7 @@ void issue_assocreq(struct adapter *padapter)
|
|||
pframe += pmlmepriv->p2p_assoc_req_ie_len;
|
||||
pattrib->pktlen += pmlmepriv->p2p_assoc_req_ie_len;
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
{
|
||||
} else {
|
||||
if(!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE) && !rtw_p2p_chk_state(pwdinfo, P2P_STATE_IDLE))
|
||||
{
|
||||
/* Should add the P2P IE in the association request frame. */
|
||||
|
@ -7360,15 +7296,12 @@ void issue_assocreq(struct adapter *padapter)
|
|||
#endif /* CONFIG_P2P */
|
||||
|
||||
#ifdef CONFIG_WFD
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if ( true == pwdinfo->wfd_info->wfd_enable )
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
{
|
||||
wfdielen = build_assoc_req_wfd_ie(pwdinfo, pframe);
|
||||
pframe += wfdielen;
|
||||
pattrib->pktlen += wfdielen;
|
||||
}
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
else if (pmlmepriv->wfd_assoc_req_ie != NULL && pmlmepriv->wfd_assoc_req_ie_len>0)
|
||||
{
|
||||
/* WFD IE */
|
||||
|
@ -7376,7 +7309,6 @@ void issue_assocreq(struct adapter *padapter)
|
|||
pattrib->pktlen += pmlmepriv->wfd_assoc_req_ie_len;
|
||||
pframe += pmlmepriv->wfd_assoc_req_ie_len;
|
||||
}
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
#endif /* CONFIG_WFD */
|
||||
|
||||
pattrib->last_txcmdsz = pattrib->pktlen;
|
||||
|
@ -10755,11 +10687,9 @@ u8 sitesurvey_cmd_hdl(struct adapter *padapter, u8 *pbuf)
|
|||
|
||||
/* config the initial gain under scaning, need to write the BB registers */
|
||||
#ifdef CONFIG_P2P
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if((wdev_to_priv(padapter->rtw_wdev))->p2p_enabled == true && pwdinfo->driver_interface == DRIVER_CFG80211 )
|
||||
initialgain = 0x30;
|
||||
else
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
if ( !rtw_p2p_chk_state( pwdinfo, P2P_STATE_NONE ) )
|
||||
initialgain = 0x28;
|
||||
else
|
||||
|
|
|
@ -3311,7 +3311,6 @@ static void pre_tx_negoreq_handler( struct adapter* padapter )
|
|||
_set_timer( &pwdinfo->pre_tx_scan_timer, P2P_TX_PRESCAN_TIMEOUT );
|
||||
}
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
static void ro_ch_handler(struct adapter *padapter)
|
||||
{
|
||||
struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &padapter->cfg80211_wdinfo;
|
||||
|
@ -3929,7 +3928,6 @@ void rtw_init_cfg80211_wifidirect_info( struct adapter* padapter)
|
|||
|
||||
_init_timer( &pcfg80211_wdinfo->remain_on_ch_timer, padapter->pnetdev, ro_ch_timer_process, padapter );
|
||||
}
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
|
||||
void p2p_protocol_wk_hdl(struct adapter *padapter, int intCmdType)
|
||||
{
|
||||
|
@ -3957,14 +3955,11 @@ void p2p_protocol_wk_hdl(struct adapter *padapter, int intCmdType)
|
|||
case P2P_PRE_TX_NEGOREQ_PROCESS_WK:
|
||||
pre_tx_negoreq_handler( padapter );
|
||||
break;
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
case P2P_RO_CH_WK:
|
||||
{
|
||||
ro_ch_handler( padapter );
|
||||
break;
|
||||
}
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -4441,12 +4436,7 @@ void init_wifidirect_info( struct adapter* padapter, enum P2P_ROLE role)
|
|||
|
||||
/* Commented by Kurt 20130319 */
|
||||
/* For WiDi purpose: Use CFG80211 interface but controled WFD/RDS frame by driver itself. */
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
pwdinfo->driver_interface = DRIVER_CFG80211;
|
||||
#else
|
||||
pwdinfo->driver_interface = DRIVER_WEXT;
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
|
||||
pwdinfo->wfd_tdls_enable = 0;
|
||||
memset( pwdinfo->p2p_peer_interface_addr, 0x00, ETH_ALEN );
|
||||
memset( pwdinfo->p2p_peer_device_addr, 0x00, ETH_ALEN );
|
||||
|
@ -4634,10 +4624,8 @@ int rtw_p2p_enable(struct adapter *padapter, enum P2P_ROLE role)
|
|||
return ret;
|
||||
#endif /* CONFIG_INTEL_WIDI */
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if( padapter->wdinfo.driver_interface == DRIVER_CFG80211 )
|
||||
wdev_to_priv(padapter->rtw_wdev)->p2p_enabled = false;
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
|
||||
if (_FAIL == rtw_pwr_wakeup(padapter)) {
|
||||
ret = _FAIL;
|
||||
|
@ -4673,14 +4661,8 @@ int rtw_p2p_enable(struct adapter *padapter, enum P2P_ROLE role)
|
|||
#endif /* CONFIG_INTEL_WIDI */
|
||||
|
||||
/* For WiDi purpose. */
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
pwdinfo->driver_interface = DRIVER_CFG80211;
|
||||
#else
|
||||
pwdinfo->driver_interface = DRIVER_WEXT;
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
|
||||
}
|
||||
|
||||
exit:
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -126,9 +126,7 @@ static bool rtw_pwr_unassociated_idle(struct adapter *adapter)
|
|||
struct xmit_priv *pxmit_priv = &adapter->xmitpriv;
|
||||
#ifdef CONFIG_P2P
|
||||
struct wifidirect_info *pwdinfo = &(adapter->wdinfo);
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &adapter->cfg80211_wdinfo;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
bool ret = false;
|
||||
|
@ -142,7 +140,7 @@ static bool rtw_pwr_unassociated_idle(struct adapter *adapter)
|
|||
|| check_fwstate(pmlmepriv, WIFI_UNDER_LINKING|WIFI_UNDER_WPS)
|
||||
|| check_fwstate(pmlmepriv, WIFI_AP_STATE)
|
||||
|| check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE|WIFI_ADHOC_STATE)
|
||||
#if defined(CONFIG_P2P) && defined(CONFIG_IOCTL_CFG80211) && defined(CONFIG_P2P_IPS)
|
||||
#if defined(CONFIG_P2P) && defined(CONFIG_P2P_IPS)
|
||||
|| pcfg80211_wdinfo->is_ro_ch
|
||||
#elif defined(CONFIG_P2P)
|
||||
|| !rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE)
|
||||
|
@ -156,16 +154,14 @@ static bool rtw_pwr_unassociated_idle(struct adapter *adapter)
|
|||
struct mlme_priv *b_pmlmepriv = &(buddy->mlmepriv);
|
||||
#ifdef CONFIG_P2P
|
||||
struct wifidirect_info *b_pwdinfo = &(buddy->wdinfo);
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
struct cfg80211_wifidirect_info *b_pcfg80211_wdinfo = &buddy->cfg80211_wdinfo;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (check_fwstate(b_pmlmepriv, WIFI_ASOC_STATE|WIFI_SITE_MONITOR)
|
||||
|| check_fwstate(b_pmlmepriv, WIFI_UNDER_LINKING|WIFI_UNDER_WPS)
|
||||
|| check_fwstate(b_pmlmepriv, WIFI_AP_STATE)
|
||||
|| check_fwstate(b_pmlmepriv, WIFI_ADHOC_MASTER_STATE|WIFI_ADHOC_STATE)
|
||||
#if defined(CONFIG_P2P) && defined(CONFIG_IOCTL_CFG80211) && defined(CONFIG_P2P_IPS)
|
||||
#if defined(CONFIG_P2P) && defined(CONFIG_P2P_IPS)
|
||||
|| b_pcfg80211_wdinfo->is_ro_ch
|
||||
#elif defined(CONFIG_P2P)
|
||||
|| !rtw_p2p_chk_state(b_pwdinfo, P2P_STATE_NONE)
|
||||
|
@ -512,11 +508,8 @@ u8 PS_RDY_CHECK(struct adapter * padapter)
|
|||
return false;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_IOCTL_CFG80211
|
||||
if (!rtw_cfg80211_pwr_mgmt(padapter))
|
||||
return false;
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue