Switching between normal and P2P operation
Jouni Malinen
j
Tue Dec 18 09:10:25 PST 2012
On Tue, Dec 18, 2012 at 04:17:50PM +0000, Ben Hardill wrote:
> 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 was unable to reproduce this.
> 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
It looks like something sets the wlan0 interface down after the second
p2p_group_add command and then sets the interface up couple of seconds
later. It doesn't look like wpa_supplicant exactly likes this in the GO
case which results in the scan operating getting started when the
interface is re-enabled. For now, I can only say that you should not
set a P2P GO (or AP mode in general) interface down while it is
supposed to continue operating. It should be possible to make
wpa_supplicant notice this special case and try to re-initialize the GO
after the interface is set up again, but I'm not sure it would really be
worth the effort since that ifconfig down/up is not really expected to
be done here.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list