I have to write p2p_find output into the file.
root@var-som-mx6:~/wl18xx-target-scripts/p2p# wpa_cli p2p_find > allout.txt 2>&1 root@var-som-mx6:~/w