diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index 11cb0fac5da0..a0b8f665fa2f 100644 --- a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c @@ -2722,10 +2722,10 @@ static unsigned int OnBeacon(struct adapter *padapter, return _SUCCESS; } +#ifdef CONFIG_88EU_AP_MODE static unsigned int OnAuth(struct adapter *padapter, struct recv_frame *precv_frame) { -#ifdef CONFIG_88EU_AP_MODE unsigned int auth_mode, ie_len; u16 seq; unsigned char *sa, *p; @@ -2888,9 +2888,9 @@ static unsigned int OnAuth(struct adapter *padapter, issue_auth(padapter, pstat, (unsigned short)status); -#endif /* CONFIG_88EU_AP_MODE */ return _FAIL; } +#endif /* CONFIG_88EU_AP_MODE */ static unsigned int OnAuthClient(struct adapter *padapter, struct recv_frame *precv_frame)