P2P GO MODE INSTRUCTION

#wifi_p2p_go.sh

#Speed up random number generation.
rm -f /dev/random
ln -s /dev/urandom /dev/random 
cd /config/wifi
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/lib:/config/wifi
#./ssw01bInit.sh

#Load wifi driver
insmod ssw101b_wifi_usb.ko
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`
export PATH=$PATH:`pwd`

#p2p can only use p2p0, enable WPA server, dhcp server

ifconfig p2p0 up
./wpa_supplicant -i p2p0 -Dnl80211 -c ./p2p_supplicant.conf &
ifconfig p2p0 192.168.100.1
./dnsmasq -i p2p0 --no-daemon --no-resolv --leasefile-ro --no-poll --dhcp-range=192.168.100.2,192.168.100.254,12h &

#Set to visible and monitor mode
./wpa_cli -p /tmp/p2p_supplicant SET wifi_display 1
./wpa_cli -p /tmp/p2p_supplicant WFD_SUBELEM_SET 0 000600111c440032
./wpa_cli -p /tmp/p2p_supplicant P2P_FLUSH
./wpa_cli -p /tmp/p2p_supplicant P2P_SET listen_channel 6
./wpa_cli -p /tmp/p2p_supplicant p2p_LISTEN
#sleep 10
#./wpa_cli -p /tmp/p2p_supplicant p2p_find 10
#./wpa_cli -p /tmp/p2p_supplicant p2p_stop_find
#./wpa_cli -p /tmp/p2p_supplicant p2p_peers

#After connecting, the other side mac is visible
0c:7a:15:f9:69:6b. p2p_connect
#./wpa_cli -p /tmp/p2p_supplicant p2p_connect 0c:7a:15:f9:69:6b pbc go_intent=15

Update: wpa_cli, wpa_supplicant (P2p use tool requires additional build)

p2p command download