aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-10-27 18:46:19 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-27 18:46:19 (GMT)
commitc20bc9d4640f07770e74a72be3a0b2176d89a90e (patch)
treea05c5032e2d86c924e352ffc270ac9bbf88783be /wpa_supplicant/ap.c
parentca9bc5b5666a08c741ddd21c451ecb92aa33a11a (diff)
downloadhostap-c20bc9d4640f07770e74a72be3a0b2176d89a90e.zip
hostap-c20bc9d4640f07770e74a72be3a0b2176d89a90e.tar.gz
hostap-c20bc9d4640f07770e74a72be3a0b2176d89a90e.tar.bz2
P2P: Remove compiler warning without CONFIG_IEEE80211N
Commit ca9bc5b5666a08c741ddd21c451ecb92aa33a11a added wpas_conf_ap_vht() as a static function with the caller within CONFIG_IEEE80211N, but the function outside. This resulted in a compiler warning for wpa_supplicant AP/P2P builds when CONFIG_IEEE80211N=y was not used. Fix that by using matching conditional block around the function. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index b55c068..b7b58cd 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -42,6 +42,7 @@ static void wpas_wps_ap_pin_timeout(void *eloop_data, void *user_ctx);
#endif /* CONFIG_WPS */
+#ifdef CONFIG_IEEE80211N
static void wpas_conf_ap_vht(struct wpa_supplicant *wpa_s,
struct hostapd_config *conf,
struct hostapd_hw_modes *mode)
@@ -65,6 +66,7 @@ no_vht:
conf->vht_oper_centr_freq_seg0_idx =
channel + conf->secondary_channel * 2;
}
+#endif /* CONFIG_IEEE80211N */
static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,