Skip to content
Snippets Groups Projects
Commit af296bdb authored by Michal Kazior's avatar Michal Kazior Committed by Johannes Berg
Browse files

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: default avatarMichal Kazior <michal.kazior@tieto.com>
[remove pointless array check]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent b4932836
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment