dynamic vlan with ath10k not working - regression

Guenther Kelleter Guenther.Kelleter at devolo.de
Wed May 25 05:35:17 PDT 2016


Hi


> -----Original Message-----
> From: Michal Kazior [mailto:michal.kazior at tieto.com]
> Sent: Monday, May 23, 2016 7:31 AM
> To: Guenther Kelleter
> Cc: hostap at lists.infradead.org
> Subject: Re: dynamic vlan with ath10k not working - regression
> 
> On 20 May 2016 at 15:16, Guenther Kelleter <Guenther.Kelleter at devolo.de>
> wrote:
> >
> >> -----Original Message-----
> >> From: Michal Kazior [mailto:michal.kazior at tieto.com]
> >> Sent: Friday, May 20, 2016 8:27 AM
> >> To: Guenther Kelleter
> >> Cc: hostap at lists.infradead.org
> >> Subject: Re: dynamic vlan with ath10k not working - regression
> >>
> >> On 19 May 2016 at 13:45, Guenther Kelleter <Guenther.Kelleter at devolo.de>
> >> wrote:
> >> > Hi
> >> >
> >> >
> >> >> -----Original Message-----
> >> >> From: Hostap [mailto:hostap-bounces at lists.infradead.org] On Behalf Of M.
> >> Braun
> >> >> Sent: Sunday, May 15, 2016 4:45 PM
> >> >> To: hostap at lists.infradead.org
> >> >> Subject: Re: dynamic vlan with ath10k not working - regression
> >> >>
> >> >> Am 13.05.2016 um 13:46 schrieb Guenther Kelleter:
> >> >> > Let me sum up what I did understand so far:
> >> >> > ...
> >> >> > Is this correct?
> >> >>
> >> >> Yes.
> >> >>
> >> >> To be more precise, that "base" interface is per BSS and has type "AP",
> >> >> but that does not really make a difference here.
> >> >
> >> > Ah, but isn't this exactly the difference that matters here?
> >> > According to a comment in mac80211 an AP_VLAN interface is not
> represented
> >> by a vdev of the driver. And a key cannot be installed for a VLAN. Does
> >> AP_VLAN encryption have to be handled in software? But the
> SW_CRYPTO_CONTROL
> >> flag somehow prevents SW-crypto for ath10k.
> >> > How is this VLAN encryption gonna work at all when for an AP_VLAN neither
> HW
> >> nor SW- crypto are supported?
> >> > I don't get it.
> >>
> >> Some drivers (i.e. ath10k in this case) don't use real 802.11 frames
> >> when talking to device firmware hence it is impossible to pass through
> >> things like IV and MIC unless both FW and HW fully support given
> >> crypto mode.
> >>
> >> See:
> >>
> https://git.kernel.org/cgit/linux/kernel/git/kvalo/ath.git/commit/?id=fa7e1fbc
> >> b52cc9efab394526a566d80fb31529bb
> >>
> >> What you can do is to try using raw mode in ath10k (I think recent
> >> 10.2.4.x should do fine) by playing around with "cryptmode" and
> >> "rawmode" ath10k_core module parameters.
> >
> >
> > I tried that already, but neither 10.2.4.70.xx nor 10.2.4.97 support raw
> mode which the driver requires for cryptmode=1.
> >
> > [   13.570000] ath10k_pci 0000:00:00.0: firmware ver 10.2.4.70.42-2 api 5
> features no-p2p,raw-mode,mfp crc32 44f66eae
> 
> 10.2.4.70.42-2 does advertise raw-mode.
> 
> 
> > [   13.620000] ath10k_pci 0000:00:00.0: Direct firmware load for
> ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
> > [   13.630000] ath10k_pci 0000:00:00.0: Falling back to user helper
> > [   13.700000] firmware ath10k!QCA988X!hw2.0!board-2.bin:
> firmware_loading_store: map pages failed
> > [   13.720000] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32
> bebc7c08
> > [   14.860000] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal
> file max-sta 128 raw 0 hwcrypto 1
> 
> But you didn't enable sw crypto in this case (see "raw 0 hwcrypto 1").


My bad. I overlooked the features list and interpreted "raw 0" to mean unsupported.
Now I tried rawmode or hwcrypto, but both turn out to be completely broken since I can't associate even with the crude workaround from further above this thread (disabling GTK installation for the dynamic VLAN). Can't figure out what's happening though.

Now I'm desperately searching for some docs on AP_VLAN and key handling of mac80211. But the kernel-docbooks are empty w.r.t. this subject. Looking at the code to find out how this works seems really useless.
And docs about ath10k FW would be fine too, this must be top secret matter. Not even changelogs seem to exist.


Günther

> 
> 
> >
> >
> > [   14.366027] ath10k_pci 0000:00:00.0: firmware ver 10.2.4.97 api 5
> features no-p2p crc32 f91e34f2
> 
> 10.2.4.97 does not support raw-mode.
> 
> > [   14.415333] ath10k_pci 0000:00:00.0: Direct firmware load for
> ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
> > [   14.425989] ath10k_pci 0000:00:00.0: Falling back to user helper
> > [   14.703039] firmware ath10k!QCA988X!hw2.0!board-2.bin:
> firmware_loading_store: map pages failed
> > [   14.732334] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32
> bebc7c08
> > [   14.739841] ath10k_pci 0000:00:00.0: cryptmode > 0 requires raw mode
> support from firmware
> > [   14.748279] ath10k_pci 0000:00:00.0: fatal problem with firmware
> features: -22
> > [   14.755852] ath10k_pci 0000:00:00.0: could not probe fw (-22)
> 
> And you can see driver telling you it doesn't support sw crypto
> without raw mode support.
> 
> 
> Michał


More information about the Hostap mailing list