wpa_supplicant 2.2 and P2P group negociation
Jouni Malinen
j
Sat Sep 27 11:54:39 PDT 2014
On Fri, Sep 26, 2014 at 05:40:46PM +0000, Fleter, Franck wrote:
> When the P2P virtual group interface is created and first action frame sent,
> I have the event RTM_NEWLINKwith the interface state not yet UP since the group negociation
> is not yet completed. See trace below :
>
> .....
> nl80211: Frame TX command accepted; cookie 0x6
> RTM_NEWLINK: ifi_index=17 ifname=p2p-wlan0-0 operstate=2 linkmode=0 ifi_flags=0x1002 ()
> Could not read interface p2p-dev-wlan0 flags : No such device
>
> The problem is that the rest of processing in this situation shuts down the interface
> and group negociation fails.
> By looking at the diff between the 2 supplicants, I can see one diff related to the above
> traces. The function have_ifidx() always returns 0 on Android and the codes is only built under flag HOSTAPD.
> Now, when I apply this small patch to the Linux wpa_supplicant 2.2, the group negociation works fine
> Is there a bug in wpa_supplicant 2.2 regarding have_ifidx() vs P2P sequence or
> there would be an issue in the driver regarding the state of P2P virtual group interface ?
Yes, there were some regressions in this area. I'd assume this commit
fixes the issue you see:
http://w1.fi/cgit/hostap/commit/?id=d1bb7aeda4c374a856cf4b1b0564ba7d249a7401
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list