From 3ca96df596e8e53b6bce6da15cc3376398aa6eae Mon Sep 17 00:00:00 2001 From: Kyeyoon Park Date: Thu, 29 Aug 2013 16:02:16 -0700 Subject: [PATCH] atheros: Compile fix for driver code not defining IEEE80211_APPIE_FRAME_WNM Signed-hostap: Jouni Malinen --- src/drivers/driver_atheros.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c index c2f59344a..b7e92dd0f 100644 --- a/src/drivers/driver_atheros.c +++ b/src/drivers/driver_atheros.c @@ -1963,7 +1963,7 @@ static int atheros_send_action(void *priv, unsigned int freq, } -#ifdef CONFIG_WNM +#if defined(CONFIG_WNM) && defined(IEEE80211_APPIE_FRAME_WNM) static int athr_wnm_tfs(struct atheros_driver_data *drv, const u8* peer, u8 *ie, u16 *len, enum wnm_oper oper) { @@ -2116,7 +2116,7 @@ static int atheros_wnm_oper(void *priv, enum wnm_oper oper, const u8 *peer, return -1; } } -#endif /* CONFIG_WNM */ +#endif /* CONFIG_WNM && IEEE80211_APPIE_FRAME_WNM */ const struct wpa_driver_ops wpa_driver_atheros_ops = { @@ -2150,7 +2150,7 @@ const struct wpa_driver_ops wpa_driver_atheros_ops = { .add_sta_node = atheros_add_sta_node, #endif /* CONFIG_IEEE80211R */ .send_action = atheros_send_action, -#ifdef CONFIG_WNM +#if defined(CONFIG_WNM) && defined(IEEE80211_APPIE_FRAME_WNM) .wnm_oper = atheros_wnm_oper, -#endif /* CONFIG_WNM */ +#endif /* CONFIG_WNM && IEEE80211_APPIE_FRAME_WNM */ };