Fix CONFIG_AP=y build without CONFIG_P2P=y
Commit ca9bc5b566
used P2P functionality
from ap.c without proper ifdef CONFIG_P2P.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
f05cee9714
commit
f8b10c1770
1 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,7 @@ static void wpas_conf_ap_vht(struct wpa_supplicant *wpa_s,
|
||||||
struct hostapd_config *conf,
|
struct hostapd_config *conf,
|
||||||
struct hostapd_hw_modes *mode)
|
struct hostapd_hw_modes *mode)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_P2P
|
||||||
u8 center_chan = 0;
|
u8 center_chan = 0;
|
||||||
u8 channel = conf->channel;
|
u8 channel = conf->channel;
|
||||||
|
|
||||||
|
@ -66,6 +67,10 @@ static void wpas_conf_ap_vht(struct wpa_supplicant *wpa_s,
|
||||||
no_vht:
|
no_vht:
|
||||||
conf->vht_oper_centr_freq_seg0_idx =
|
conf->vht_oper_centr_freq_seg0_idx =
|
||||||
channel + conf->secondary_channel * 2;
|
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 */
|
#endif /* CONFIG_IEEE80211N */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue