P2P: Use specified frequency for group client in P2P_GROUP_ADD command
In P2P_GROUP_ADD command and GroupAdd dbus method, frequency is passed in as a parameter when restarting a persistent group. This is the group operating frequency determined out of band. Use this pre-determined frequency in P2P client as well to expedite the P2P scan. Signed-off-by: Jintao Lin <jintaolin@chromium.org>
This commit is contained in:
parent
9c0a6d64d0
commit
d40788a5cb
2 changed files with 2 additions and 2 deletions
|
@ -7172,7 +7172,7 @@ static int p2p_ctrl_group_add_persistent(struct wpa_supplicant *wpa_s,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return wpas_p2p_group_add_persistent(wpa_s, ssid, 0, freq, 0,
|
return wpas_p2p_group_add_persistent(wpa_s, ssid, 0, freq, freq,
|
||||||
vht_center_freq2, ht40, vht,
|
vht_center_freq2, ht40, vht,
|
||||||
vht_chwidth, he, edmg,
|
vht_chwidth, he, edmg,
|
||||||
NULL, 0, 0, allow_6ghz, 0,
|
NULL, 0, 0, allow_6ghz, 0,
|
||||||
|
|
|
@ -473,7 +473,7 @@ DBusMessage * wpas_dbus_handler_p2p_group_add(DBusMessage *message,
|
||||||
if (ssid == NULL || ssid->disabled != 2)
|
if (ssid == NULL || ssid->disabled != 2)
|
||||||
goto inv_args;
|
goto inv_args;
|
||||||
|
|
||||||
if (wpas_p2p_group_add_persistent(wpa_s, ssid, 0, freq, 0,
|
if (wpas_p2p_group_add_persistent(wpa_s, ssid, 0, freq, freq,
|
||||||
freq2, ht40, vht,
|
freq2, ht40, vht,
|
||||||
max_oper_chwidth, he, edmg,
|
max_oper_chwidth, he, edmg,
|
||||||
NULL, 0, 0, allow_6ghz,
|
NULL, 0, 0, allow_6ghz,
|
||||||
|
|
Loading…
Add table
Reference in a new issue