|
@@ -301,13 +301,17 @@ static int wpa_supplicant_conf_ap(struct wpa_supplicant *wpa_s,
|
|
|
conf->beacon_int = wpa_s->conf->beacon_int;
|
|
|
|
|
|
#ifdef CONFIG_P2P
|
|
|
- if (wpa_s->conf->p2p_go_ctwindow > conf->beacon_int) {
|
|
|
- wpa_printf(MSG_INFO,
|
|
|
- "CTWindow (%d) is bigger than beacon interval (%d) - avoid configuring it",
|
|
|
- wpa_s->conf->p2p_go_ctwindow, conf->beacon_int);
|
|
|
- conf->p2p_go_ctwindow = 0;
|
|
|
- } else {
|
|
|
- conf->p2p_go_ctwindow = wpa_s->conf->p2p_go_ctwindow;
|
|
|
+ if (ssid->mode == WPAS_MODE_P2P_GO ||
|
|
|
+ ssid->mode == WPAS_MODE_P2P_GROUP_FORMATION) {
|
|
|
+ if (wpa_s->conf->p2p_go_ctwindow > conf->beacon_int) {
|
|
|
+ wpa_printf(MSG_INFO,
|
|
|
+ "CTWindow (%d) is bigger than beacon interval (%d) - avoid configuring it",
|
|
|
+ wpa_s->conf->p2p_go_ctwindow,
|
|
|
+ conf->beacon_int);
|
|
|
+ conf->p2p_go_ctwindow = 0;
|
|
|
+ } else {
|
|
|
+ conf->p2p_go_ctwindow = wpa_s->conf->p2p_go_ctwindow;
|
|
|
+ }
|
|
|
}
|
|
|
#endif /* CONFIG_P2P */
|
|
|
|