[PATCH] interface name size limit for Monitor interface

Johannes Berg johannes
Thu Oct 13 00:38:38 PDT 2011


On Wed, 2011-10-12 at 23:40 +0300, Jouni Malinen wrote:
> On Mon, Oct 10, 2011 at 10:29:53AM +0530, JJ wrote:
> > Currently the P2P Interface name[p2p-%s-%d] is reset when the P2P Interface
> > name reaches the "IFNAMSIZ" limit. Monitor interface name is derived from
> > p2p interface name with the addition of few characters [mon.p2p-%s-%d] and
> > hence Monitor interface name hits IFNAMSIZ limit before P2P Interface name.
> > So we need to reset p2p interface name early enough to take care of extra
> > characters in monitor interface name. This will make sure that "%d"
> > enumeration is in sync for p2p and monitor interface. This patch also
> > reduces the monitor interface name length to increase the reset window
> > ["mon." to "m."].

I think changing to m is ok -- hopefully I'll have patches to get rid of
it entirely in the next couple of days :-)

johannes




More information about the Hostap mailing list