From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?gb2312?B?wO641Q==?= Date: Fri, 30 Dec 2011 19:13:15 +0800 Subject: [ath9k-devel] =?gb2312?b?tPC4tDogUXVlc3Rpb246IGllZWU4MDIxMV9yeCBj?= =?gb2312?b?YWxsZWQgdHdpY2UgYWZ0ZXIgb25lIGllZWU4MDIxMV9zdWJpZl9z?= =?gb2312?b?dGFydF94bWl0IGNhbGw=?= In-Reply-To: Message-ID: <20111230110404.07EBA2008C@mail.watchdata.com.cn> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org > -----????----- > ???: adrian.chadd at gmail.com [mailto:adrian.chadd at gmail.com] ?? Adrian > Chadd > ????: 2011?12?30? 17:31 > ???: ?? > ??: linux-wireless at vger.kernel.org; Ath9k Devel List > ??: Re: Question: ieee80211_rx called twice after one > ieee80211_subif_start_xmit call > > 2011/12/30 ?? : > > 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? Thank you very much. You reminded me that the RX filter is not correct, Yes, I almost forget that I have changed the RX filter in ieee80211_configure_filter : new_flags |= FIF_PROMISC_IN_BSS; and the mode is STATION. What I want is to make two devices communicate directly without creating an BSS or IBSS in advance, just using a wildcard BSSID instead. But if setting the RX flag as normal case 0 in STATION mode, the hardware can receive noting. I don't know what's the matter. May be an BSSID must be set to the hardware? > > > Adrian