diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-07-13 13:50:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-15 13:38:33 -0400 |
commit | f850e00fcd7767d01101e2f0a6d464bee8e48b47 (patch) | |
tree | c90d77261e09a6304e1b507c363e4ff66bc61b8d /include/net | |
parent | 8bca5d815311f53ada13b62f5e590df40fef317e (diff) |
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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/mac80211.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 9e91b4f47843..972109f06a70 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -2987,6 +2987,10 @@ void ieee80211_sta_block_awake(struct ieee80211_hw *hw, | |||
2987 | * needs reprogramming of the keys during suspend. Note that due | 2987 | * needs reprogramming of the keys during suspend. Note that due |
2988 | * to locking reasons, it is also only safe to call this at few | 2988 | * to locking reasons, it is also only safe to call this at few |
2989 | * spots since it must hold the RTNL and be able to sleep. | 2989 | * spots since it must hold the RTNL and be able to sleep. |
2990 | * | ||
2991 | * The order in which the keys are iterated matches the order | ||
2992 | * in which they were originally installed and handed to the | ||
2993 | * set_key callback. | ||
2990 | */ | 2994 | */ |
2991 | void ieee80211_iter_keys(struct ieee80211_hw *hw, | 2995 | void ieee80211_iter_keys(struct ieee80211_hw *hw, |
2992 | struct ieee80211_vif *vif, | 2996 | struct ieee80211_vif *vif, |