Search Linux Wireless

Re: [PATCH] mac80211: Add vif debugfs driver callbacks

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

 



On Thu, 2013-01-24 at 18:51 +0100, Johannes Berg wrote:

> > > Add debugfs driver callbacks to be called upon interface addition,
> > > removal and type change.
> > 
> > Never mind, apparently this doesn't work. I haven't tried myself yet.
> 
> The issue is that the driver might rely on mac80211 removing the dir
> (recursively), but that only happens when the interface is destroyed.
> However, add/remove here happens when the interface is added to/removed
> from the driver, which is up/down not create/destroy.

So the issue is that mac80211 cannot remove the debugfs entries the
driver creates here, because it only removes the interface debugfs when
the interface is destroyed, not when it is taken down.

The driver, OTOH, gets add/remove when the interface goes up/down.

Would anyone complain if we just document that and require that the
driver actually remove its entries when the new remove_interface_debugfs
callback is called? That'd be a bit unlike other debugfs dirs where
everything just gets cleaned up in mac80211.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

  Powered by Linux