]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: use csa counter offsets instead of csa_active
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 5 Jun 2014 12:21:37 +0000 (14:21 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Jun 2014 12:22:16 +0000 (14:22 +0200)
commitbd59f53cbe6786d06f8888dcacc7c6c1c9e1ad5f
tree71c4a711f9cfe08f68c0e3ac3a454287577c5278
parent13f9c88c0f36481d2f2c0e5b1c593c277fa3ebaf
mac80211: use csa counter offsets instead of csa_active

vif->csa_active is protected by mutexes only. This
means it is unreliable to depend on it on codeflow
in non-sleepable beacon and CSA code. There was no
guarantee to have vif->csa_active update be
visible before beacons are updated on SMP systems.

Using csa counter offsets which are embedded in
beacon struct (and thus are protected with single
RCU assignment) is much safer.

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