]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: provide interface iterator for drivers
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 9 Nov 2007 00:57:29 +0000 (01:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:54:37 +0000 (14:54 -0800)
commit4e9a33624892f1273299ae5d665391fed899f8c4
treeb93be2a461b00882491bc8b7d3780476ca71bf7e
parent4ca904030d1a5abb71e44dc7e316ab9579cdf0bf
mac80211: provide interface iterator for drivers

Sometimes drivers need to know which interfaces are associated with
their hardware. Rather than forcing those drivers to keep track of
the interfaces that were added, this adds an iteration function to
mac80211.

As it is intended to be used from the interface add/remove callbacks,
the iteration function may currently only be called under RTNL.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/mac80211.h
net/mac80211/util.c