mirror of
https://gitee.com/openharmony/third_party_wpa_supplicant
synced 2024-11-23 07:40:06 +00:00
!499 [release-5.0]: p2p永久组问题修改
Merge pull request !499 from zhangqin88/OpenHarmony-5.0-Release
This commit is contained in:
commit
21757654e3
@ -6386,13 +6386,15 @@ int p2p_ctrl_connect(struct wpa_supplicant *wpa_s, char *cmd,
|
||||
if (pos2) {
|
||||
struct wpa_ssid *ssid;
|
||||
persistent_id = atoi(pos2 + 12);
|
||||
ssid = wpa_config_get_network(wpa_s->conf, persistent_id);
|
||||
if (ssid == NULL || ssid->disabled != 2 ||
|
||||
ssid->mode != WPAS_MODE_P2P_GO) {
|
||||
wpa_printf(MSG_DEBUG, "CTRL_IFACE: Could not find "
|
||||
"SSID id=%d for persistent P2P group (GO)",
|
||||
persistent_id);
|
||||
return -1;
|
||||
if (persistent_id >= 0) {
|
||||
ssid = wpa_config_get_network(wpa_s->conf, persistent_id);
|
||||
if (ssid == NULL || ssid->disabled != 2 ||
|
||||
ssid->mode != WPAS_MODE_P2P_GO) {
|
||||
wpa_printf(MSG_DEBUG, "CTRL_IFACE: Could not find "
|
||||
"SSID id=%d for persistent P2P group (GO)",
|
||||
persistent_id);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
join = os_strstr(pos, " join") != NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user