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>
#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)
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,