P2P GO Instruction
#wifi_p2p_go.sh Use ssw101b/ssw102b wifi module to test #Speed up random number generation. rm -f /dev/random ln -s /dev/urandom /dev/random cd /config/wifi #Add libraries about wifi export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/config/wifi #Add wifi driver #./ssw01bInit.sh #Execute script in ssd20x platform # ./sigma_wifi_init.sh #Execute script in ssd21x platform 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_GROUP_ADD persistent=0 ./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)