From: Johannes Berg Date: Sat, 22 Jun 2013 10:12:56 +0200 Subject: [ath9k-devel] Dropped frames (unauthorized port) in AP mode In-Reply-To: <51C3C4B7.9040300@ionic.de> References: <51C0D052.2000206@ionic.de> <51C3C4B7.9040300@ionic.de> Message-ID: <1371888776.8143.0.camel@jlt4.sipsolutions.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Fri, 2013-06-21 at 05:12 +0200, Mihai Moldovan wrote: > * On 18.06.2013 11:25 PM, Mihai Moldovan wrote: > > [...] > > Looking at the kernel source (net/mac80211/tx.c), this condition is being triggered: > > > > if (unlikely(!ieee80211_vif_is_mesh(&sdata->vif) && > > !is_multicast_ether_addr(hdr.addr1) && !authorized && > > (cpu_to_be16(ethertype) != sdata->control_port_protocol || > > !ether_addr_equal(sdata->vif.addr, skb->data + ETH_ALEN)))) > > Fugly print-debugged this statement, and I'm heavily confused. > > The subcondition "cpu_to_be16(ethertype) != sdata->control_port_protocol" is > true for me! > > Thus, I checked "sdata->control_port_protocol", which is ETH_P_PAE (0x888E)... > i.e., 802.1X. Great for WiFi authentication. > > "ethertype", on the other hand, is ETH_P_DDCMP (0x0006) which left me totally > confused! How is this possible? ethertype should ideally also be ETH_P_PAE, > definitely not some only internally used DECnet port protocol. http://en.wikipedia.org/wiki/EtherType Anyway, this might just be some random bridging frames. johannes