Linux wireless drivers development
 help / color / mirror / Atom feed
From: Sujith Manoharan <sujith@msujith.org>
To: Emmanuel Grumbach <egrumbach@gmail.com>
Cc: "Grumbach\, Emmanuel" <emmanuel.grumbach@intel.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	"linux-wireless\@vger.kernel.org"
	<linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] mac80211: Call mgd_prepare_tx before deauthentication
Date: Thu, 18 Sep 2014 11:19:08 +0530	[thread overview]
Message-ID: <21530.29268.867868.46188@gargle.gargle.HOWL> (raw)
In-Reply-To: <CANUX_P3o6=sdjHPp2L7tGAeXRW0v4xqSV-2q27Neetu75bDc1A@mail.gmail.com>

Emmanuel Grumbach wrote:
> I still think it does not match the original intent of mgd_prepare_tx().
> The way I see it, mgd_prepare_tx() ensures that the Tx *will* happen
> in cases the driver has no specific reason to be on channel, mainly
> because the context is not associated yet. Note that after association
> mac80211 does not interfere with the context switches. The driver is in
> charge of all this - why would it be different in this case?
> flush() makes sure that the Tx *has* happened before destroying things.
> The context switches from association until destruction are under the driver's
> responsibility.
> 
> At least this is the way I see it.
> We (Intel) will not break if you add this call, but in my eyes this does not
> comply with the design. I guess you can always send a patch to add it and
> see what others will say, but Johannes is away right now.
> If you choose to do that, please add a reason as a parameter to mgd_prepare_tx()
> so that we can ignore it when it is called before sending a frame that
> is flush()'ed.
> I still prefer to rely on flush(). And I agree that flush() isn't a
> trivial implementation.

I can see your point and agree that the original intention of the mgd_prepare_tx()
callback is as described in the documentation. But with multiple active
contexts, flush() becomes a big hammer rather than a simple emptying of
the queues. :-)

I think we can extend the intention of the API and use mgd_prepare_tx()
for deauth/disassoc too. And this was done in the original patch, anyway.
This would greatly reduce driver complexity.

I'll send a patch including your suggestion about adding a parameter
to mgd_prepare_tx() which iwlwifi can use.

Sujith

  reply	other threads:[~2014-09-18  5:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-17  4:33 [PATCH] mac80211: Call mgd_prepare_tx before deauthentication Sujith Manoharan
2014-09-17  4:54 ` Sujith Manoharan
2014-09-17  5:01   ` Grumbach, Emmanuel
2014-09-17  5:44     ` Sujith Manoharan
2014-09-17  5:50       ` Grumbach, Emmanuel
2014-09-17  6:01         ` Sujith Manoharan
2014-09-17  6:04           ` Grumbach, Emmanuel
2014-09-17  6:17             ` Sujith Manoharan
2014-09-17 19:01               ` Emmanuel Grumbach
2014-09-18  3:05                 ` Sujith Manoharan
2014-09-18  4:13                   ` Sujith Manoharan
2014-09-18  5:08                     ` Emmanuel Grumbach
2014-09-18  5:49                       ` Sujith Manoharan [this message]
2014-10-09  9:40                         ` Johannes Berg
2014-10-09 10:22                           ` Sujith Manoharan

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=21530.29268.867868.46188@gargle.gargle.HOWL \
    --to=sujith@msujith.org \
    --cc=egrumbach@gmail.com \
    --cc=emmanuel.grumbach@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /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