aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2014-04-07 09:32:58 (GMT)
committerJouni Malinen <j@w1.fi>2014-04-07 10:40:58 (GMT)
commitf8b10c17706c90131617eafe6f0617556e813356 (patch)
treeb662c09f492638f2c2bda9502bc3c1977faabcda /wpa_supplicant/ap.c
parentf05cee9714ae87d315d893699a536b60a5aa73a9 (diff)
downloadhostap-f8b10c17706c90131617eafe6f0617556e813356.zip
hostap-f8b10c17706c90131617eafe6f0617556e813356.tar.gz
hostap-f8b10c17706c90131617eafe6f0617556e813356.tar.bz2
Fix CONFIG_AP=y build without CONFIG_P2P=y
Commit ca9bc5b5666a08c741ddd21c451ecb92aa33a11a used P2P functionality from ap.c without proper ifdef CONFIG_P2P. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index e7d59de..b02c424 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -48,6 +48,7 @@ static void wpas_conf_ap_vht(struct wpa_supplicant *wpa_s,
struct hostapd_config *conf,
struct hostapd_hw_modes *mode)
{
+#ifdef CONFIG_P2P
u8 center_chan = 0;
u8 channel = conf->channel;
@@ -66,6 +67,10 @@ static void wpas_conf_ap_vht(struct wpa_supplicant *wpa_s,
no_vht:
conf->vht_oper_centr_freq_seg0_idx =
channel + conf->secondary_channel * 2;
+#else /* CONFIG_P2P */
+ conf->vht_oper_centr_freq_seg0_idx =
+ conf->channel + conf->secondary_channel * 2;
+#endif /* CONFIG_P2P */
}
#endif /* CONFIG_IEEE80211N */