From: Stanislaw Gruszka <sgruszka@redhat.com>
To: 李朝明 <chaoming_li@realsil.com.cn>
Cc: "'Larry Finger'" <Larry.Finger@lwfinger.net>,
"'John W Linville'" <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org,
'冯春燕' <amyfcy_feng@realsil.com.cn>,
'熊光安' <guangan_xiong@realsil.com.cn>
Subject: Re: 答复: about Mac80211 scan issue
Date: Thu, 10 Feb 2011 08:41:40 +0100 [thread overview]
Message-ID: <20110210074140.GA2228@redhat.com> (raw)
In-Reply-To: <B8DE8263FD784AC082CFDB7E9269BAEA@realsil.com.cn>
On Thu, Feb 10, 2011 at 03:03:57PM +0800, 李朝明 wrote:
> > I'm not sure if I understand problem you described. Anyway,
> > maybe is enaugh to implement ->flush() in rtlwifi to solve
> > the problem?
>
> I don't think drv_flush in ieee80211_start_sw_scan is needed, because
> there's no netif_tx_stop_all_queues before it.
> And on my test, all queues still send skb to driver in this drv_flush.
Hmm, there must be something wrong ... there is netif_tx_stop_all_queues
when interface is not MONITOR. Below are corresponding code snippets:
static void ieee80211_scan_state_leave_oper_channel(struct ieee80211_local *local,
unsigned long *next_delay)
{
/* PS will already be in off-channel mode,
* we do that once at the beginning of scanning.
*/
ieee80211_offchannel_stop_vifs(local, false);
/*
* What if the nullfunc frames didn't arrive?
*/
drv_flush(local, false);
....
void ieee80211_offchannel_stop_vifs(struct ieee80211_local *local,
bool offchannel_ps_enable)
{
struct ieee80211_sub_if_data *sdata;
/*
* notify the AP about us leaving the channel and stop all
* STA interfaces.
*/
mutex_lock(&local->iflist_mtx);
list_for_each_entry(sdata, &local->interfaces, list) {
if (!ieee80211_sdata_running(sdata))
continue;
if (sdata->vif.type != NL80211_IFTYPE_MONITOR)
set_bit(SDATA_STATE_OFFCHANNEL, &sdata->state);
...
if (sdata->vif.type != NL80211_IFTYPE_MONITOR) {
netif_tx_stop_all_queues(sdata->dev);
next prev parent reply other threads:[~2011-02-10 7:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-06 18:44 [PATCH 2/6] rtlwifi: Add usb driver Larry Finger
2011-02-07 15:07 ` Stanislaw Gruszka
2011-02-07 15:12 ` Stanislaw Gruszka
2011-02-09 1:58 ` about Mac80211 scan issue 李朝明
2011-02-09 10:54 ` Stanislaw Gruszka
[not found] ` <B8DE8263FD784AC082CFDB7E9269BAEA@realsil.com.cn>
2011-02-10 7:41 ` Stanislaw Gruszka [this message]
[not found] ` <39A39FA0AD1A481480DE0BD469AAA79E@realsil.com.cn>
2011-02-10 9:50 ` 答复: 答复: " Stanislaw Gruszka
[not found] ` <86D43C3FD69641C38E7144E721BCC5A6@realsil.com.cn>
2011-02-10 11:37 ` 答复: 答复: 答复: about Mac80211scan issue Stanislaw Gruszka
2011-02-11 2:26 ` [RFC] mac80211: cisco 1252 HT bw20, sta->ht_cap.cap bw is wrong 李朝明
2011-02-11 10:22 ` Stanislaw Gruszka
2011-02-12 3:32 ` [RFC] mac80211: mac80211's null packet issue 李朝明
2011-02-14 10:16 ` 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=20110210074140.GA2228@redhat.com \
--to=sgruszka@redhat.com \
--cc=Larry.Finger@lwfinger.net \
--cc=amyfcy_feng@realsil.com.cn \
--cc=chaoming_li@realsil.com.cn \
--cc=guangan_xiong@realsil.com.cn \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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;
as well as URLs for NNTP newsgroup(s).