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)
commitc0166da9fee2aa8de9d1f9460f62d02176c22350
tree1c69b543bd332271501967f9913e0d65d92b6583
parent2b32713d72c093889fe20642f6a8bc42083267d2
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