P2P: Show "FAIL" for failed p2p_find operation
I tried these commands: ./wpa_cli -i wlan0 p2p_group_add ./wpa_cli -i wlan0 p2p_find The second one results in following messages because it is invalid operation. ------- nl80211: Scan trigger failed: ret=-95 (Operation not supported) P2P: Failed to start p2p_scan ------- But the second one shows "OK" on control console. This patch makes it to show "FAIL".
This commit is contained in:
parent
9669794dc4
commit
6c714cd7d4
1 changed files with 1 additions and 2 deletions
|
@ -1989,8 +1989,7 @@ static int p2p_ctrl_find(struct wpa_supplicant *wpa_s, char *cmd)
|
||||||
else if (os_strstr(cmd, "type=progressive"))
|
else if (os_strstr(cmd, "type=progressive"))
|
||||||
type = P2P_FIND_PROGRESSIVE;
|
type = P2P_FIND_PROGRESSIVE;
|
||||||
|
|
||||||
wpas_p2p_find(wpa_s, timeout, type);
|
return wpas_p2p_find(wpa_s, timeout, type);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue