ATH10K and VLAN : Frame with VLAN tag are not sent

voncken cedric.voncken at acksys.fr
Fri Jun 5 02:23:27 PDT 2015


> >         The WDS client mode seems to work with ATH10k, and I have the
> same problem without it.
> >         My problem is not in the AP-VLAN feature. I didn't use the
> encryption in my test. The frames with vlan tag are not sent by ath10k
> wireless card, in Sta mode, AP mode, Sta + wds mode.
> >
> >         My PC1 sends a frame to PC2 with or without VLAN tag.
> >                 If the tag is present the frame is not sent.
> >                 If the tag is not present the frame is sent.
> >
> >         In my test, the frame with VLAN tag should be sent through
> ATH10K.
> >
> >         I enable the debug in ATH10k driver. The frame with the vlan
> tag is sent to the wireless radio card.
> >         I check the frame dump from ath10k_htt_tx function but I didn't
> see any error in frame format.
> >
> >         I paste the dump below (the frame it is an arp frame in the
> vlan 6).
> > ath10k_pci 0000:01:00.0: htt tx flags0 37 flags1 3072 len 70 id 0
> > frags_paddr 06a54000, msdu_paddr 0c158c66 vdev 0 tid 16 freq 0
> > ath10k_pci 0000:01:00.0: htt tx msdu: 00000000: 88 03 00 00 04 f0 21
> > 0e 38 e1 04 f0 21 18 03 a0 ath10k_pci 0000:01:00.0: htt tx msdu:
> > 00000010: ff ff ff ff ff ff a 00 09 90 00 4a 97 aa aa ath10k_pci
> > 0000:01:00.0: htt tx msdu: 00000020: 03 00 00 00 81 00 00 06 08 06 00
> > 01 08 00 06 04 ath10k_pci 0000:01:00.0: htt tx msdu: 00000030: 00 01
> > 00 09 90 00 4a 97 c0 a8 06 fd 00 00 00 00 ath10k_pci 0000:01:00.0: htt
> > tx msdu: 00000040: 00 00 c0 a8 06 01
> 
> Oh. So you actually refer to the dot1q VLAN tagging. I haven't tested
> this but I would expect this to work.
I'm agree with you it should work, but not :-(
> 
> 
> >         Moreover, for each frame sent the Tx status from the cards will
> increment the failed_count counter, but I didn't know what went wrong.
> 
> Perhaps htt tx msdu was completed with failure status code. You didn't
> provide enough logs so I'm just guessing.
I didn't have more log on this point, I'm trying the ath10k debug, the ath10 ftrace. If you know how I can have more log on the failure, I will send these logs.

> 
> 
> >         Any idea ?
> 
> I see no reason why this should fail. The dot1q encapsulation shouldn't
> influence how firmware behaves.. but maybe I'm wrong.
> 
> It's still unclear to me what your topology looks like. Perhaps you're
> having problem with environmental configuration itself? Did you try other
> Wi-Fi device (e.g. ath9k) instead of ath10k?
Yes I tested with ath9k wireless card, the same configuration works.

I did an interesting test. With ostinato software I generate an ICMP frame without vlan tag. I changed the ethertype in the frame.
I tried with the ethertype 0x800 (IP), 0x801, 0x8892 (PROFINET), 0x8100 (dot1q), 0x0600. All frames are sent except when the ethertype is set to 0x8100. It seems the firmware do not accept the ethertype 0x8100.  

> 
> 
> Michał




More information about the ath10k mailing list