]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mac80211: allow iterating inactive interfaces
authorArik Nemtsov <arik@wizery.com>
Sun, 1 Mar 2015 07:10:15 +0000 (09:10 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 4 Mar 2015 09:34:12 +0000 (10:34 +0100)
commit3384d757d41521a3dee274ed2802bcd285ed8e62
tree9993a13e3df98a06e9aabf5f4de0125478fe5e8a
parent98fc43864af9e74116eec81c290db048cded15d8
mac80211: allow iterating inactive interfaces

Sometimes the driver might want to modify private data in interfaces
that are down. One possible use-case is cleaning up interface state
after HW recovery. Some interfaces that were up before the recovery took
place might be down now, but they might still be "dirty".

Introduce a new iterate_interfaces() API and a new ACTIVE iterator flag.
This way the internal implementation of the both active and inactive
APIs remains the same.

Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/util.c