Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Michal Kazior <michal.kazior@tieto.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH 3/3] mac80211: make csa_currnet_counter atomic
Date: Thu, 22 May 2014 15:50:35 +0200	[thread overview]
Message-ID: <1400766635.4174.18.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <1400765294-14732-4-git-send-email-michal.kazior@tieto.com> (sfid-20140522_153531_176293_CBD1F6EB)

typo in subject.

On Thu, 2014-05-22 at 15:28 +0200, Michal Kazior wrote:
> Even it ieee80211_beacon_get() and
> ieee80211_csa_update_counter() were to be
> guaranteed to be serialized by drivers it still
> couldn't be guaranteed to be safe on SMP systems.

We had this debate internally as well, but I don't see where issues
should be. The only place updating the counter is
ieee80211_csa_update_counter(), and that should only be called either by
the driver, or by ieee80211_beacon_get[_tim]() [*]. If the driver wants
to have the counter update by ieee80211_beacon_get() then it must call
the function once every beacon interval, if it uses the _template()
version then it must call ieee80211_csa_update_counter() every beacon
interval, so no races seem possible.

johannes

[*] the driver shouldn't call ieee80211_beacon_get[_tim] and
ieee80211_csa_update_counter() in a mixed fashion anyway as that'd lead
to CSA counter bugs, and ieee80211_beacon_get_template() doesn't change
the counter


  reply	other threads:[~2014-05-22 13:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-22 13:28 [PATCH 0/3] mac80211: fix csa counters Michal Kazior
2014-05-22 13:28 ` [PATCH 1/3] mac80211: move csa counters from sdata to beacon/presp Michal Kazior
2014-05-22 13:43   ` Johannes Berg
2014-05-22 13:53     ` Michal Kazior
2014-05-22 14:37       ` Johannes Berg
2014-05-22 14:38         ` Johannes Berg
2014-05-22 13:28 ` [PATCH 2/3] mac80211: use csa counter offsets instead of csa_active Michal Kazior
2014-05-22 13:45   ` Johannes Berg
2014-05-22 13:59     ` Michal Kazior
2014-05-22 14:38       ` Johannes Berg
2014-05-22 13:28 ` [PATCH 3/3] mac80211: make csa_currnet_counter atomic Michal Kazior
2014-05-22 13:50   ` Johannes Berg [this message]
2014-05-22 14:03     ` Michal Kazior
2014-05-22 14:36       ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1400766635.4174.18.camel@jlt4.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=michal.kazior@tieto.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox