mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-09 23:03:05 +00:00
rtl8188eu: Remove dead code inside #if 0 ... #endif
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
3ad757d04a
commit
77e736c66a
64 changed files with 98 additions and 7692 deletions
|
@ -367,37 +367,19 @@ static void issue_p2p_provision_resp(struct wifidirect_info *pwdinfo, u8* raddr,
|
|||
|
||||
wpsielen = 0;
|
||||
// WPS OUI
|
||||
//*(u32*) ( wpsie ) = cpu_to_be32( WPSOUI );
|
||||
RTW_PUT_BE32(wpsie, WPSOUI);
|
||||
wpsielen += 4;
|
||||
|
||||
#if 0
|
||||
// WPS version
|
||||
// Type:
|
||||
*(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_ATTR_VER1 );
|
||||
wpsielen += 2;
|
||||
|
||||
// Length:
|
||||
*(u16*) ( wpsie + wpsielen ) = cpu_to_be16( 0x0001 );
|
||||
wpsielen += 2;
|
||||
|
||||
// Value:
|
||||
wpsie[wpsielen++] = WPS_VERSION_1; // Version 1.0
|
||||
#endif
|
||||
|
||||
// Config Method
|
||||
// Type:
|
||||
//*(u16*) ( wpsie + wpsielen ) = cpu_to_be16( WPS_ATTR_CONF_METHOD );
|
||||
RTW_PUT_BE16(wpsie + wpsielen, WPS_ATTR_CONF_METHOD);
|
||||
wpsielen += 2;
|
||||
|
||||
// Length:
|
||||
//*(u16*) ( wpsie + wpsielen ) = cpu_to_be16( 0x0002 );
|
||||
RTW_PUT_BE16(wpsie + wpsielen, 0x0002);
|
||||
wpsielen += 2;
|
||||
|
||||
// Value:
|
||||
//*(u16*) ( wpsie + wpsielen ) = cpu_to_be16( config_method );
|
||||
RTW_PUT_BE16(wpsie + wpsielen, config_method);
|
||||
wpsielen += 2;
|
||||
|
||||
|
@ -4706,21 +4688,7 @@ void dbg_rtw_p2p_set_pre_state(struct wifidirect_info *wdinfo, enum P2P_STATE st
|
|||
);
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
void dbg_rtw_p2p_restore_state(struct wifidirect_info *wdinfo, const char *caller, int line)
|
||||
{
|
||||
if (wdinfo->pre_p2p_state != -1) {
|
||||
DBG_871X("[CONFIG_DBG_P2P]%s:%d restore from %s to %s\n", caller, line
|
||||
, p2p_state_str[wdinfo->p2p_state], p2p_state_str[wdinfo->pre_p2p_state]
|
||||
);
|
||||
_rtw_p2p_restore_state(wdinfo);
|
||||
} else {
|
||||
DBG_871X("[CONFIG_DBG_P2P]%s:%d restore no pre state, cur state %s\n", caller, line
|
||||
, p2p_state_str[wdinfo->p2p_state]
|
||||
);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void dbg_rtw_p2p_set_role(struct wifidirect_info *wdinfo, enum P2P_ROLE role, const char *caller, int line)
|
||||
{
|
||||
if (wdinfo->role != role) {
|
||||
|
@ -4737,7 +4705,6 @@ void dbg_rtw_p2p_set_role(struct wifidirect_info *wdinfo, enum P2P_ROLE role, co
|
|||
}
|
||||
#endif //CONFIG_DBG_P2P
|
||||
|
||||
|
||||
int rtw_p2p_enable(_adapter *padapter, enum P2P_ROLE role)
|
||||
{
|
||||
int ret = _SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue