P2P: Show "FAIL" for failed p2p_find operation
authorMasashi Honma <honma@ictec.co.jp>
Mon, 31 Jan 2011 15:29:31 +0000 (17:29 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 31 Jan 2011 15:29:31 +0000 (17:29 +0200)
commit6c714cd7d4cac5d84f36270badfff82938ba46df
tree2da5f078ed001a2ee9e760ee2ac4e22f949e4665
parent9669794dc45127e02aa2ab2e4448159387f171a2
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".
wpa_supplicant/ctrl_iface.c