I’ve not done this procedure before but I believe those are the correct options. I’m not sure if you can change those options on the defconfig directly, I believe you have to do it using the menuconfig option. Regarding the package, any changes made to these files has to be done at a kernel level and will not affect the package itself.
latest Edison beta image just released seems to support WiFi direct. Maybe give it a try?
Flashed the new image and going through the steps. Hopefully I'll have a detailed breakdown on getting Edison to handshake with the Wifi p2p android sdk application posted back to the forum soon.
There's still problems. Has anyone been able to get wifi p2p to work with Edison? With the new image flashed this is what I get
# Turn off wpa_supplicant that comes up on boot to connect to my AP
> killall wpa_supplicant
> wpa_supplicant -I wlan0 -c /etc/wpa_supplicant/p2p_supplicant.conf -Dnl80211 &
now in wpa_cli
(Search for devices on Android > Settings > Wifi > Wifi Direct)
<3>P2P-DEVICE-FOUND XX:XX:XX:XX:XX:XX p2p_dev_addr=XX:XX:XX:XX:XX:XX pri_dev_type=10-0050F204-5 name='Trellabs3' config_methods=0x188 dev_capab=0x24 group_capab=0x0
> p2p_connect XX:XX:XX:XX:XX:XX pbc go_intent=0
(Android comes up with a connect to DeviceName prompt and Peer Devices > DeviceName switches to Invited)
(The about 30 seconds later)
> > P2P-GO-NEG-FAILURE status=-1
connecting through pin, go_intent=7 or go_intent=15 still doesn't change the GO-NEG failure. Using p2p_group_add before hand does not change this behaviour either. I seem to remember on TI's CC3200 there was a way to force the Group Owner Negotiation, they're different beasts of course, is there a way to skip this step?
Hi MPayne, yes the document is correct for setting up a connection with Android's OS. I'll be checking the SDK example too shortly. Here's the short walkthrough (while in depth is provided by Intel: Intel® Edison Wi-Fi User Guide)
All these commands will be from Edison
> systemctl status wpa_supplicant
● wpa_supplicant.service - WPA supplicant service
Loaded: loaded (/lib/systemd/system/wpa_supplicant.service; enabled)
Active: active (running) since Mon 2015-02-09 18:09:19 UTC; 7min ago
Process: 276 ExecStartPost=/bin/systemctl start wpa_supplicant_p2p_event (code=exited, status=0/SUCCESS)
Process: 210 ExecStartPost=/bin/systemctl start wpa_supplicant_wlan0_event (code=exited, status=0/SUCCESS)
Main PID: 209 (wpa_supplicant)
└─209 /usr/sbin/wpa_supplicant -u -c/etc/wpa_supplicant/wpa_suppli...
Feb 09 18:09:19 Vitaliti002 systemd: Started WPA supplicant service.
> wpa_cli -iwlan0 interface
# click search for devices on Wi-Fi Direct tab on Phone
> wpa_cli -ip2p-dev-wlan0 p2p_find
> wpa_cli -ip2p-dev-wlan0 p2p_peers
> wpa_cli -ip2p-dev-wlan0 p2p_peer a2:0b:ba:c6:ba:a9
> wpa_cli -ip2p-dev-wlan0 p2p_connect a2:0b:ba:c6:ba:a9 pbc persistent go_intent=15
# Click pop up on phone to get to Connected
> wpa_cli -ip2p-dev-wlan0 interface
# It doesn't automatically reconnect on login, on start-up in the future I'll use
> wpa_cli -ip2p-dev-wlan0 p2p_listen
So just to be sure - you've moved past the initial blocking issue you had? Do you need additional clarification?
Yep, the document and the new release got me up and connecting.