Search Linux Wireless

RE: [PATCH 6/7] wifi: cfg80211: Add support for interface usage notification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> >
> > As depicted above, the need to inform the driver about the intended
> > usage of the interface is real.
> 
> Sure, I can understand the need is real. This just feels like an ugly workaround,
> not a proper solution.
> 

If you have a different solution in mind, please share.

> And the documentation for this is quite vague, I'm worried how do we get
> similarly working drivers? Let's say if I were to implement a user space
> application for this, or a driver implementation for that matter, it would be a
> guessing game for me. For example, what's "soon" in this context? 5 mins, 50
> secs or 5 secs? Can the mac80211 operation sleep?
> 

I understand this is not clear. The intention was to say that by the time the interface is enabled,
the interface type might change, and that the driver should be aware of that. I can try to better express
this in the command and documentation.

> So user space is now always supposed to always call this nl80211 command
> and at what stage exactly? Or is it optional? But if it's optional what's the point
> of adding it?
> 

It is optional. User space should use it when it expects the interface type to
change before the interface is activated.

> > We encountered several P2P cases in which an interface was added and
> > P2P Group Ownership Negotiation and P2P Invitation signalling were
> > completed successfully, but the P2P Group Session establishment failed
> > since the interface type changed from P2P Client to P2P GO and the
> > local device was no longer able to accommodate the P2P GO operation
> > due to resource constraints.
> >
> > With this new API, user space can now inform the driver about the
> > intended usage of the interface so the driver will make the resources
> > available for all possible interface types. With this the information
> > exchanged during the P2P signalling would correctly reflect state and
> > the P2P group session would be able to be established.
> 
> Why not allocate the resources during driver initialisation? Or when changing
> the interface? Why need this weird interface?
> 

Allocating resources to all possible interface combinations etc. is waste as
not all allocations would eventually be used. 

Regards,

Ilan.

p.s.: sorry for the late response (was OOO).







[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux