]> 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)
commit0b4855b06b63a62f832b8fb30684c67aa92c95c0
tree71c4a711f9cfe08f68c0e3ac3a454287577c5278
parent7f44fca2bbc4cb5bbd9ef66c1eb239dd064d1bfa
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