P2P: Fix channel preference use for MCC p2p_connect
Only force_freq was used in the wpas_p2p_set_own_freq_preference() call which allowed the P2P module channel re-selection to ignore the preference for using a channel we are already using. Fix this by setting either force_freq or pref_freq as the preference based on which one is set. This allows p2p_ignore_shared_freq parameter to be used whether to prefer the shared frequency in this case. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
5624ccfe93
commit
1b665cbf51
1 changed files with 2 additions and 1 deletions
|
@ -4313,7 +4313,8 @@ int wpas_p2p_connect(struct wpa_supplicant *wpa_s, const u8 *peer_addr,
|
||||||
go_intent == 15);
|
go_intent == 15);
|
||||||
if (res)
|
if (res)
|
||||||
return res;
|
return res;
|
||||||
wpas_p2p_set_own_freq_preference(wpa_s, force_freq);
|
wpas_p2p_set_own_freq_preference(wpa_s,
|
||||||
|
force_freq ? force_freq : pref_freq);
|
||||||
|
|
||||||
wpa_s->create_p2p_iface = wpas_p2p_create_iface(wpa_s);
|
wpa_s->create_p2p_iface = wpas_p2p_create_iface(wpa_s);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue