P2P: Fix ACS offloading behavior with p2p_no_group_iface=1
wpa_s->p2p_go_do_acs was not cleared during P2P group deletion and that
resulted in the case of no separate group interface continuing to assume
ACS was to be used for consecutive GO starts even if they tried to
specify a frequency. Fix this by explicitly clearing
wpa_s->p2p_go_do_acs during P2P group deletion and also clear this when
processing the P2P_GROUP_ADD if the parameters do not request ACS to be
used.
Fixes: 37ed3254de
("P2P: ACS offload for the autonomous GO")
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
c6ec9759c5
commit
2b7fa03559
2 changed files with 3 additions and 0 deletions
|
@ -6418,6 +6418,8 @@ static int p2p_ctrl_group_add(struct wpa_supplicant *wpa_s, char *cmd)
|
|||
wpa_s->p2p_go_acs_band = HOSTAPD_MODE_IEEE80211ANY;
|
||||
wpa_s->p2p_go_do_acs = 1;
|
||||
}
|
||||
} else {
|
||||
wpa_s->p2p_go_do_acs = 0;
|
||||
}
|
||||
#endif /* CONFIG_ACS */
|
||||
|
||||
|
|
|
@ -980,6 +980,7 @@ static int wpas_p2p_group_delete(struct wpa_supplicant *wpa_s,
|
|||
os_free(wpa_s->p2p_group_common_freqs);
|
||||
wpa_s->p2p_group_common_freqs = NULL;
|
||||
wpa_s->p2p_group_common_freqs_num = 0;
|
||||
wpa_s->p2p_go_do_acs = 0;
|
||||
|
||||
wpa_s->waiting_presence_resp = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue