P2P: Consider ht/vht on P2P_GROUP_ADD command (with no params)
p2p_ctrl_group_add() takes care of various configuration options (such as ht/vht) before calling wpas_p2p_group_add(), so use it (just like when P2P_GROUP_ADD is called with additional params). Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
This commit is contained in:
parent
29292d53ee
commit
38dcc86cb7
1 changed files with 1 additions and 1 deletions
|
@ -8199,7 +8199,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
|
|||
if (wpas_p2p_group_remove(wpa_s, buf + 17))
|
||||
reply_len = -1;
|
||||
} else if (os_strcmp(buf, "P2P_GROUP_ADD") == 0) {
|
||||
if (wpas_p2p_group_add(wpa_s, 0, 0, 0, 0))
|
||||
if (p2p_ctrl_group_add(wpa_s, ""))
|
||||
reply_len = -1;
|
||||
} else if (os_strncmp(buf, "P2P_GROUP_ADD ", 14) == 0) {
|
||||
if (p2p_ctrl_group_add(wpa_s, buf + 14))
|
||||
|
|
Loading…
Reference in a new issue