All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Chadd <adrian@freebsd.org>
To: 李刚 <gang.li@watchdata.com>
Cc: linux-wireless@vger.kernel.org,
	Ath9k Devel List <ath9k-devel@lists.ath9k.org>
Subject: Re: Question: ieee80211_rx called twice after one ieee80211_subif_start_xmit call
Date: Fri, 30 Dec 2011 01:30:58 -0800	[thread overview]
Message-ID: <CAJ-VmomR_1iN5rryyvui6iQGuN+3aWAets5NQjx+sHpZe8ck0w@mail.gmail.com> (raw)
In-Reply-To: <20111230080554.DE64420052@mail.watchdata.com.cn>

2011/12/30 李刚 <gang.li@watchdata.com>:
> Hi sirs,
>
>        Today, I noticed that when an data frame is sent by
> ieee80211_subif_start_xmit, then ieee80211_rx will be called twice , first
> is an Acknowledgement frame and second is the response data frame.  Is this
> the normal case?   It seems the RA frame is nonsense and just be freed in
> ieee80211_rx_monitor.
>
>        Is there anyway to tell the hardware not report RA frame to
> mac80211?

.. its receiving ACKs? I thought it only did that when either promisc
or control was enabled. Try fiddling around with the RX filter bitmask
and see if you can determine (for your NIC :) which filter bit is
doing it.

Maybe the interface is in promisc mode in hostap mode and this is why
you're seeing ACKs.


Adrian

WARNING: multiple messages have this Message-ID (diff)
From: Adrian Chadd <adrian@freebsd.org>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] Question: ieee80211_rx called twice after one ieee80211_subif_start_xmit call
Date: Fri, 30 Dec 2011 01:30:58 -0800	[thread overview]
Message-ID: <CAJ-VmomR_1iN5rryyvui6iQGuN+3aWAets5NQjx+sHpZe8ck0w@mail.gmail.com> (raw)
In-Reply-To: <20111230080554.DE64420052@mail.watchdata.com.cn>

2011/12/30 ?? <gang.li@watchdata.com>:
> Hi sirs,
>
>        Today, I noticed that when an data frame is sent by
> ieee80211_subif_start_xmit, then ieee80211_rx will be called twice , first
> is an Acknowledgement frame and second is the response data frame.  Is this
> the normal case?   It seems the RA frame is nonsense and just be freed in
> ieee80211_rx_monitor.
>
>        Is there anyway to tell the hardware not report RA frame to
> mac80211?

.. its receiving ACKs? I thought it only did that when either promisc
or control was enabled. Try fiddling around with the RX filter bitmask
and see if you can determine (for your NIC :) which filter bit is
doing it.

Maybe the interface is in promisc mode in hostap mode and this is why
you're seeing ACKs.


Adrian

  reply	other threads:[~2011-12-30  9:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-17 23:18 Question about TCP Checksum errors Larry Finger
2011-12-17 23:43 ` Eric Dumazet
2011-12-19 11:38 ` Question about IEEE80211_TX_CTL_NO_ACK in ath_9k 李刚
2011-12-19 12:33   ` Mohammed Shafi
2011-12-19 13:03     ` 李刚
2011-12-19 12:33   ` Daniel Smith
2011-12-19 13:00     ` 李刚
2011-12-19 13:43       ` Daniel Smith
2011-12-19 13:43         ` [ath9k-devel] " Daniel Smith
2011-12-30  8:15         ` Question: ieee80211_rx called twice after one ieee80211_subif_start_xmit call 李刚
2011-12-30  8:15           ` [ath9k-devel] " 李刚
2011-12-30  9:30           ` Adrian Chadd [this message]
2011-12-30  9:30             ` Adrian Chadd
2011-12-30 11:13             ` [ath9k-devel] 答复: " 李刚
2012-01-07  2:11         ` Question about duration of data frame in ath9k_htc 李刚
2012-01-07  2:11           ` [ath9k-devel] " 李刚
2012-01-07  5:31           ` Sujith Manoharan
2012-01-07  5:31             ` [ath9k-devel] " Sujith Manoharan
2011-12-19 13:07   ` Question about IEEE80211_TX_CTL_NO_ACK in ath_9k Helmut Schaa
2011-12-19 14:42   ` Sujith
2011-12-20  5:39     ` 李刚
2011-12-20 15:24       ` Sujith

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=CAJ-VmomR_1iN5rryyvui6iQGuN+3aWAets5NQjx+sHpZe8ck0w@mail.gmail.com \
    --to=adrian@freebsd.org \
    --cc=ath9k-devel@lists.ath9k.org \
    --cc=gang.li@watchdata.com \
    --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 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.