]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: compute chanctx refcount on-the-fly
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 9 Apr 2014 13:29:33 +0000 (15:29 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 25 Apr 2014 15:08:30 +0000 (17:08 +0200)
commitc39fbe4748a8e7504aa2801d8e7ab8d6e6a93b32
tree1c69b543bd332271501967f9913e0d65d92b6583
parentac4bd5c61327100579961eb5c31b536afaa1ca17
mac80211: compute chanctx refcount on-the-fly

It doesn't make much sense to store refcount in
the chanctx structure. One still needs to hold
chanctx_mtx to get the value safely. Besides,
refcount isn't on performance critical paths.

This will make implementing chanctx reservation
refcounting a little easier.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/chan.c
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c