mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-09 14:53:05 +00:00
rtl8188eu: Remove dead code associated with CONFIG_INTEL_XXX
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
4c57c6047a
commit
6583d55cd1
16 changed files with 29 additions and 405 deletions
|
@ -4083,16 +4083,9 @@ void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
|
|||
struct ieee80211_channel *ieee_ch = &pcfg80211_wdinfo->remain_on_ch_channel;
|
||||
u8 listen_channel = (u8) ieee80211_frequency_to_channel(ieee_ch->center_freq);
|
||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||
#ifdef CONFIG_INTEL_WIDI
|
||||
u8 zero_array_check[L2SDTA_SERVICE_VE_LEN] = { 0x00 };
|
||||
#endif /* CONFIG_INTEL_WIDI */
|
||||
|
||||
/* DBG_88E("%s\n", __func__); */
|
||||
|
||||
if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* update attribute */
|
||||
pattrib = &pmgntframe->attrib;
|
||||
|
@ -4201,37 +4194,6 @@ void issue_probersp_p2p(_adapter *padapter, unsigned char *da)
|
|||
/* Value: */
|
||||
wpsie[wpsielen++] = WPS_VERSION_1; /* Version 1.0 */
|
||||
|
||||
#ifdef CONFIG_INTEL_WIDI
|
||||
/* Commented by Kurt */
|
||||
/* Appended WiDi info. only if we did issued_probereq_widi(), and then we saved ven. ext. in pmlmepriv->sa_ext. */
|
||||
if ( _rtw_memcmp(pmlmepriv->sa_ext, zero_array_check, L2SDTA_SERVICE_VE_LEN) == false )
|
||||
{
|
||||
/* Sec dev type */
|
||||
*(__be16 *) ( wpsie + wpsielen ) = cpu_to_be16( WPS_ATTR_SEC_DEV_TYPE_LIST );
|
||||
wpsielen += 2;
|
||||
|
||||
/* Length: */
|
||||
*(__be16 *) ( wpsie + wpsielen ) = cpu_to_be16( 0x0008 );
|
||||
wpsielen += 2;
|
||||
|
||||
/* Value: */
|
||||
/* Category ID */
|
||||
*(__be16 *) ( wpsie + wpsielen ) = cpu_to_be16( WPS_PDT_CID_DISPLAYS );
|
||||
wpsielen += 2;
|
||||
|
||||
/* OUI */
|
||||
*(__be32 *) ( wpsie + wpsielen ) = cpu_to_be32( INTEL_DEV_TYPE_OUI );
|
||||
wpsielen += 4;
|
||||
|
||||
*(_be16 *) ( wpsie + wpsielen ) = cpu_to_be16( WPS_PDT_SCID_WIDI_CONSUMER_SINK );
|
||||
wpsielen += 2;
|
||||
|
||||
/* Vendor Extension */
|
||||
_rtw_memcpy( wpsie + wpsielen, pmlmepriv->sa_ext, L2SDTA_SERVICE_VE_LEN );
|
||||
wpsielen += L2SDTA_SERVICE_VE_LEN;
|
||||
}
|
||||
#endif /* CONFIG_INTEL_WIDI */
|
||||
|
||||
/* WiFi Simple Config State */
|
||||
/* Type: */
|
||||
*(__be16 *) ( wpsie + wpsielen ) = cpu_to_be16( WPS_ATTR_SIMPLE_CONF_STATE );
|
||||
|
@ -4912,13 +4874,6 @@ static unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
|
||||
result = process_p2p_group_negotation_req( pwdinfo, frame_body, len );
|
||||
issue_p2p_GO_response( padapter, GetAddr2Ptr(pframe), frame_body, len, result );
|
||||
#ifdef CONFIG_INTEL_WIDI
|
||||
if ( (padapter->mlmepriv.widi_state == INTEL_WIDI_STATE_LISTEN) && (padapter->mlmepriv.widi_state != INTEL_WIDI_STATE_WFD_CONNECTION) )
|
||||
{
|
||||
padapter->mlmepriv.widi_state = INTEL_WIDI_STATE_WFD_CONNECTION;
|
||||
intel_widi_wk_cmd(padapter, INTEL_WIDI_LISTEN_STOP_WK, NULL);
|
||||
}
|
||||
#endif /* CONFIG_INTEL_WIDI */
|
||||
|
||||
/* Commented by Albert 20110718 */
|
||||
/* No matter negotiating or negotiation failure, the driver should set up the restore P2P state timer. */
|
||||
|
@ -5066,11 +5021,6 @@ static unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
else
|
||||
{
|
||||
rtw_p2p_set_state(pwdinfo, P2P_STATE_RECV_INVITE_REQ_DISMATCH );
|
||||
#ifdef CONFIG_INTEL_WIDI
|
||||
_rtw_memcpy( pwdinfo->p2p_peer_device_addr, group_id.go_device_addr , ETH_ALEN );
|
||||
rtw_p2p_set_role( pwdinfo, P2P_ROLE_CLIENT );
|
||||
#endif /* CONFIG_INTEL_WIDI */
|
||||
|
||||
status_code = P2P_STATUS_FAIL_UNKNOWN_P2PGROUP;
|
||||
}
|
||||
}
|
||||
|
@ -5127,13 +5077,6 @@ static unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
pwdinfo->inviteresp_info.token = frame_body[ 7 ];
|
||||
issue_p2p_invitation_response( padapter, GetAddr2Ptr(pframe), pwdinfo->inviteresp_info.token, status_code );
|
||||
}
|
||||
#ifdef CONFIG_INTEL_WIDI
|
||||
if ( (padapter->mlmepriv.widi_state == INTEL_WIDI_STATE_LISTEN) && (padapter->mlmepriv.widi_state != INTEL_WIDI_STATE_WFD_CONNECTION) )
|
||||
{
|
||||
padapter->mlmepriv.widi_state = INTEL_WIDI_STATE_WFD_CONNECTION;
|
||||
intel_widi_wk_cmd(padapter, INTEL_WIDI_LISTEN_STOP_WK, NULL);
|
||||
}
|
||||
#endif /* CONFIG_INTEL_WIDI */
|
||||
break;
|
||||
}
|
||||
case P2P_INVIT_RESP:
|
||||
|
@ -5212,13 +5155,6 @@ static unsigned int on_action_public_p2p(union recv_frame *precv_frame)
|
|||
|
||||
rtw_p2p_set_state(pwdinfo, P2P_STATE_RX_PROVISION_DIS_REQ);
|
||||
_set_timer( &pwdinfo->restore_p2p_state_timer, P2P_PROVISION_TIMEOUT );
|
||||
#ifdef CONFIG_INTEL_WIDI
|
||||
if ( (padapter->mlmepriv.widi_state == INTEL_WIDI_STATE_LISTEN) && (padapter->mlmepriv.widi_state != INTEL_WIDI_STATE_WFD_CONNECTION) )
|
||||
{
|
||||
padapter->mlmepriv.widi_state = INTEL_WIDI_STATE_WFD_CONNECTION;
|
||||
intel_widi_wk_cmd(padapter, INTEL_WIDI_LISTEN_STOP_WK, NULL);
|
||||
}
|
||||
#endif /* CONFIG_INTEL_WIDI */
|
||||
break;
|
||||
|
||||
case P2P_PROVISION_DISC_RESP:
|
||||
|
@ -8300,14 +8236,6 @@ u8 collect_bss_info(_adapter *padapter, union recv_frame *precv_frame, WLAN_BSSI
|
|||
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INTEL_WIDI
|
||||
/* process_intel_widi_query_or_tigger(padapter, bssid); */
|
||||
if (process_intel_widi_query_or_tigger(padapter, bssid))
|
||||
{
|
||||
return _FAIL;
|
||||
}
|
||||
#endif /* CONFIG_INTEL_WIDI */
|
||||
|
||||
#if defined(DBG_RX_SIGNAL_DISPLAY_PROCESSING) & 1
|
||||
if (strcmp(bssid->Ssid.Ssid, DBG_RX_SIGNAL_DISPLAY_SSID_MONITORED) == 0) {
|
||||
DBG_88E("Receiving %s(%pM, DSConfig:%u) from ch%u with ss:%3u, sq:%3u, RawRSSI:%3ld\n"
|
||||
|
@ -8511,9 +8439,6 @@ unsigned int receive_disconnect(_adapter *padapter, unsigned char *MacAddr, unsi
|
|||
{
|
||||
pmlmeinfo->state = WIFI_FW_NULL_STATE;
|
||||
report_del_sta_event(padapter, MacAddr, reason);
|
||||
#ifdef CONFIG_INTEL_WIDI
|
||||
process_intel_widi_disconnect(padapter, 1);
|
||||
#endif /* CONFIG_INTEL_WIDI */
|
||||
}
|
||||
else if (pmlmeinfo->state & WIFI_FW_LINKING_STATE)
|
||||
{
|
||||
|
@ -9414,11 +9339,6 @@ void linked_status_chk(_adapter *padapter)
|
|||
rx_chk_limit = 8;
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_INTEL_WIDI
|
||||
if (padapter->mlmepriv.widi_state != INTEL_WIDI_STATE_NONE)
|
||||
rx_chk_limit = 1;
|
||||
#endif
|
||||
|
||||
if ((psta = rtw_get_stainfo(pstapriv, pmlmeinfo->network.MacAddress)) != NULL)
|
||||
{
|
||||
bool is_p2p_enable = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue