[PATCH 1/1] P2P: Ignore RTM_NEWLINK event for the P2P Discovery Interface

Jouni Malinen j
Mon Jun 16 15:41:53 PDT 2014

On Mon, Jun 16, 2014 at 07:56:12PM +0530, Jithu Jance wrote:
> Looks like last email got the patch as white space corrupted. So
> sending it again.

Thanks. Though, this one does not look much better in formatting. I
applied this manually and with a more accurate commit message.

The comments related to P2P Device interface (non-netdev) were a bit
confusing here. That is not really the root cause of the issue. The
commit you used as the model for this should really have included the
changes for this recently added add_ifidx() call as well. The main issue
here is in the parent interface getting additional ifindex values
registered for it even though that is not really supposed to happen with
the wpa_supplicant dynamic interface use cases. In the specific case of
the P2P Device interface, that resulted in the RTM_NEWLINK event of the
P2P group interface (which was added with that P2P Device interface as
the parent) to be processed with incorrect interface and then as a side
effect, of that, the P2P Device interface getting marked as unavailable
since it did not match the interface name.

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list