[RFC] ath10k: use raw tx

Yeoh Chun-Yeow yeohchunyeow at gmail.com
Fri Sep 12 03:41:25 PDT 2014


Hi, all

Did anyone try the raw tx on adhoc mode? I have tested this patch with
firmware 999.999.0.636.

The unicast frame is not transmitted using raw tx, only broadcast.

After adjust the cmd_tx.len as follow, I have managed to make the
adhoc STA to ping each others.

skb_cb->htt.txbuf->cmd_tx.len = __cpu_to_le16(msdu->len -
sizeof(struct ieee80211_hdr_3addr) + sizeof(struct ethhdr));

Can someone comment on this?

----
Chun-Yeow


On Thu, Sep 11, 2014 at 10:19 PM, Ben Greear <greearb at candelatech.com> wrote:
> On 09/11/2014 03:35 AM, Michal Kazior wrote:
>>
>> On 29 August 2014 23:45, Ben Greear <greearb at candelatech.com> wrote:
>>>
>>> On 08/22/2014 12:52 AM, Michal Kazior wrote:
>>>>
>>>> This is just a reference for anyone interested in
>>>> getting injection working with ath10k.
>>>
>>>
>>> Did you try this with encryption?  I can reproduce the crash
>>> in open mode on my CT firmware, but I couldn't even get
>>> DHCP to complete with wpa2 enabled.
>>
>>
>> Hi,
>>
>> Late reply, sorry.
>>
>> I've just did a quick test on 10.2 (both AP and STA) with WPA2.
>> Apparently the raw tx mode requires IV to be set up on host and packet
>> length (reported in HTT Tx command header) must be re-adjusted
>> differently, otherwise frames are broken (incorrect FCS, too long,
>> somewhat encrypted except LLC/SNAP). The best I could get were
>> FCS-correct undecryptable frames on air. Perhaps someone will figure
>> that out..
>>
>> Another way around this would be to perform software crypto for tx
>> entirely on host.
>
>
> That did not fix the problem for me.  The firmware/hardware could not be
> convinced (by me, at least) to leave the encrypted packet alone and insisted
> on
> doing at least partial re-crypt, or something like that.
>
> Thanks,
> Ben
>
>>
>>
>> Michał
>>
>
>
> --
> Ben Greear <greearb at candelatech.com>
> Candela Technologies Inc  http://www.candelatech.com
>
>
> _______________________________________________
> ath10k mailing list
> ath10k at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/ath10k



More information about the ath10k mailing list