]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Remove compiler warning without CONFIG_IEEE80211N
authorJouni Malinen <j@w1.fi>
Sun, 27 Oct 2013 18:46:19 +0000 (20:46 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 27 Oct 2013 18:46:19 +0000 (20:46 +0200)
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>

wpa_supplicant/ap.c

index b55c068b71e6cc4acea0888f405af472ba06a750..b7b58cdb34bae460df4a0582340105d97384f3d2 100644 (file)
@@ -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,