Skip to content

Commit

Permalink
staging: rtl8188eu: don't define OnAuth() in non-AP mode
Browse files Browse the repository at this point in the history
If CONFIG_88EU_AP_MODE is undefined, OnAuth() is never referenced.

Fixes warning:
  drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:2725:21: warning: ‘OnAuth’ defined but not used [-Wunused-function]

Signed-off-by: Luca Ceresoli <[email protected]>
Fixes: 68345dd ("staging: rtl8188eu: rtw_mlme_ext.c: unexport message callbacks")
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Larry Finger <[email protected]>
Cc: kbuild test robot <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
lucaceresoli authored and gregkh committed Jun 14, 2015
1 parent 2b49e0f commit f996bd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f996bd1

Please sign in to comment.