All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luciano Coelho <coelho@ti.com>
To: Shahar Levi <shahar_levi@ti.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] wl12xx: Add support for HW channel switch
Date: Fri, 23 Sep 2011 13:59:43 +0300	[thread overview]
Message-ID: <1316775583.2157.728.camel@cumari> (raw)
In-Reply-To: <1316698619.2157.628.camel@cumari>

On Thu, 2011-09-22 at 16:36 +0300, Luciano Coelho wrote: 
> On Thu, 2011-09-08 at 13:01 +0300, Shahar Levi wrote: 
> > WL12xx FW supports HW channel switch mechanism.
> > Add HW channel switch support via channel_switch ops.
> > 
> > Signed-off-by: Shahar Levi <shahar_levi@ti.com>
> > ---
> 
> [...]
> 
> > +static void wl12xx_op_channel_switch(struct ieee80211_hw *hw,
> > +				     struct ieee80211_channel_switch *ch_switch)
> > +{
> > +	struct wl1271 *wl = hw->priv;
> > +	int ret;
> > +
> > +	wl1271_debug(DEBUG_MAC80211, "mac80211 channel switch");
> > +
> > +	mutex_lock(&wl->mutex);
> > +
> > +	if (unlikely(wl->state == WL1271_STATE_OFF)) {
> > +		mutex_unlock(&wl->mutex);
> > +		ieee80211_chswitch_done(wl->vif, false);
> > +		return;
> > +	}
> > +
> > +	ret = wl1271_ps_elp_wakeup(wl);
> > +	if (ret < 0)
> > +		goto out;
> > +
> > +	/* send all pending packets */
> > +	wl1271_tx_work_locked(wl);
> 
> Is this really needed? Can anyone tell why?

I checked this a bit further and I don't see the point in sending all
packets here.  In fact, if block_tx is set, we can't even send any more
frames until the switch happens (or fails).  So we should at least check
this here.

I'm leaving this patch out for now until I understand this better.

-- 
Cheers,
Luca.


  reply	other threads:[~2011-09-23 10:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-08 10:01 [PATCH] wl12xx: Add support for HW channel switch Shahar Levi
2011-09-22 13:36 ` Luciano Coelho
2011-09-23 10:59   ` Luciano Coelho [this message]
2011-09-25 16:08     ` Levi, Shahar
2011-09-26  6:25       ` Luciano Coelho
2011-09-26  7:23         ` Victor Goldenshtein
2011-09-27  5:28           ` Luciano Coelho
2011-09-26 10:29         ` Levi, Shahar
2011-09-27  5:33           ` Luciano Coelho
2011-10-06 13:17 ` Luciano Coelho

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=1316775583.2157.728.camel@cumari \
    --to=coelho@ti.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=shahar_levi@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.