P2P: Remove compiler warning without CONFIG_IEEE80211N
Commit ca9bc5b566
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>
This commit is contained in:
parent
ca9bc5b566
commit
c20bc9d464
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue