mac80211: let key iteration get keys in install order
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Jul 2011 17:50:53 +0000 (19:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Jul 2011 17:38:33 +0000 (13:38 -0400)
commitf850e00fcd7767d01101e2f0a6d464bee8e48b47
treec90d77261e09a6304e1b507c363e4ff66bc61b8d
parent8bca5d815311f53ada13b62f5e590df40fef317e
mac80211: let key iteration get keys in install order

ieee80211_iter_keys() currently returns keys in
the backward order they were installed in, which
is a bit confusing. Add them to the tail of the
key list to make sure iterations go in the same
order that keys were originally installed in.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/key.c