Switching between normal and P2P operation

Ben Hardill hardillb
Tue Dec 18 08:17:50 PST 2012


Hi,

I've been having some trouble on the Android end of this as well (random 
reboots, both with Wifi-Direct and plain normal bonjour) but I got round 
to re-running this and capturing the log. In this case the system 
managed to scan, then start a p2p_group. I then connected with my 
android device, disconnected, removed the group and started a scan.

After this it would not stop scanning when I tried to stand up a new 
p2p_group

I'm running wpa_supplicant with the following options:

wpa_supplicant -iwlan0 -c /home/hardillb/p2p_conf -Dnl80211,wext -dtt

And 2 copies of wpa_cli. 1 to set up the DHCP for the group

wpa_cli -i wlan0  -a examples/p2p-action.sh

And one to drive the discovery

wpa_cli -i wlan0

I then issue the following commands:

scan
scan_results
P2P_SERVICE_ADD bonjour 055f68747470c00c000c01 065f6479736f6ec027
P2P_SERVICE_ADD bonjour 065f6479736f6e055f68747470c00c001001 
10706174683d2f73657475702e68746d6c07706f72743d3830
p2p_set ssid_postfix -DYSON
p2p_group_add
wps_pbc (while the android device is connecting)
p2p_group_remove (once android has disconnected)
scan
p2p_group_add

(from here on the CTRL-EVENT-SCAN-RESULTS keep coming)

I'm running with the following kernel
Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 
armv6l GNU/Linux

Using a ath9k USB stick (TP-Link TL-WN821N Wireless N USB Adapter) with 
these modules:

ath ath9k_common  ath9k_htc ath9k_hw  ath9k_common ath9k_htc mac80211 
cfg80211

I tried to attach the log but it hit a post size limit for the list so 
here is a link to the log:
http://www.hardill.me.uk/wpa_supplicant.trace

Also thanks for the pointer to the Android code for the Bonjour service 
descriptor generation, I had found that a little after I posted and 
built myself a little util to generate the p2p_service_add commands.

Thanks,

Ben

-- 
http://www.hardill.me.uk/wordpress
http://about.me/hardillb
http://flickr.com/photos/hardillb/
http://last.fm/user/hardillb




More information about the Hostap mailing list