mac80211: clean up sta_info_destroy() users wrt. RCU/locking
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 31 Mar 2008 17:23:02 +0000 (19:23 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 1 Apr 2008 21:14:10 +0000 (17:14 -0400)
commit4f6fab472c4c7c21d577f85fabec7628d4a05637
tree0949dffadb0b715053e4d7148ebcabe930b39361
parent93e5deb1ae39b56f4743955e76c72251256f23c1
mac80211: clean up sta_info_destroy() users wrt. RCU/locking

Calling sta_info_destroy() doesn't require RCU-synchronisation
before-hand because it does that internally. However, it does
require rtnl-locking so insert that where necessary.

Also clean up the code doing it internally to be a bit clearer and
not synchronize twice if keys are configured.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/mac80211/ieee80211_sta.c
net/mac80211/sta_info.c