]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/mac80211/ieee80211_i.h
mac80211: move csa counters from sdata to beacon/presp
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 5 Jun 2014 12:21:36 +0000 (14:21 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Jun 2014 12:22:06 +0000 (14:22 +0200)
commitaf296bdb8da4d0a4284de10fc4a61497272ddf11
tree5387b60fbc8d858402068f2ee69d57104f961e5f
parentb49328361bab10d786e321aeae79b4429fdff38c
mac80211: move csa counters from sdata to beacon/presp

Having csa counters part of beacon and probe_resp
structures makes it easier to get rid of possible
races between setting a beacon and updating
counters on SMP systems by guaranteeing counters
are always consistent against given beacon struct.

While at it relax WARN_ON into WARN_ON_ONCE to
prevent spamming logs and racing.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
[remove pointless array check]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/ibss.c
net/mac80211/ieee80211_i.h
net/mac80211/mesh.c
net/mac80211/tx.c