All of lore.kernel.org
 help / color / mirror / Atom feed
* ath10k: about packet injection
@ 2016-09-18 23:27 Xuebing Wang
  2016-09-19 11:13 ` Michal Kazior
  0 siblings, 1 reply; 4+ messages in thread
From: Xuebing Wang @ 2016-09-18 23:27 UTC (permalink / raw)
  To: ath10k; +Cc: David Liu, Michal Kazior

Hi Community,

ath10k wiki says packet injection isn't supported yet. Is it difficult 
to add packet injection for chip like QCA6174 hw 2.1 in Killer 1525? Thanks.

- xuebing wang


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ath10k: about packet injection
  2016-09-18 23:27 ath10k: about packet injection Xuebing Wang
@ 2016-09-19 11:13 ` Michal Kazior
  2016-10-06  2:11   ` Xuebing Wang
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Kazior @ 2016-09-19 11:13 UTC (permalink / raw)
  To: Xuebing Wang; +Cc: David Liu, ath10k

On 19 September 2016 at 01:27, Xuebing Wang <xbing6@gmail.com> wrote:
> Hi Community,
>
> ath10k wiki says packet injection isn't supported yet. Is it difficult to
> add packet injection for chip like QCA6174 hw 2.1 in Killer 1525? Thanks.

This would require some tricks:
 - monitor vdev can't tx so you'll need other vdev type allocated side-by-sdie
 - tx often may require peer entries (see offchan code in mac.c)
 - getting raw mode to work may be a problem and may require some
length-encoding hacks
 - injecting protected (software encrypted) frames might be a problem

Either way you're at the mercy of firmware blob :)


Michal

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ath10k: about packet injection
  2016-09-19 11:13 ` Michal Kazior
@ 2016-10-06  2:11   ` Xuebing Wang
  2016-10-06  6:15     ` Michal Kazior
  0 siblings, 1 reply; 4+ messages in thread
From: Xuebing Wang @ 2016-10-06  2:11 UTC (permalink / raw)
  To: Michal Kazior; +Cc: ath10k

On 2016年09月19日 19:13, Michal Kazior wrote:
> On 19 September 2016 at 01:27, Xuebing Wang <xbing6@gmail.com> wrote:
>> Hi Community,
>>
>> ath10k wiki says packet injection isn't supported yet. Is it difficult to
>> add packet injection for chip like QCA6174 hw 2.1 in Killer 1525? Thanks.
> This would require some tricks:
>   - monitor vdev can't tx so you'll need other vdev type allocated side-by-sdie
>   - tx often may require peer entries (see offchan code in mac.c)
>   - getting raw mode to work may be a problem and may require some
> length-encoding hacks
>   - injecting protected (software encrypted) frames might be a problem
>
> Either way you're at the mercy of firmware blob :)
>
>
> Michal
Hi Michal,

It seems QCA6174A hw2.1 firmware-5 does not support rawmode, dmesg shows 
firmware features "ignore-otp,no-4addr-pad". Is rawmode necessary for 
packet injection Tx? Thanks.

xuebing

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ath10k: about packet injection
  2016-10-06  2:11   ` Xuebing Wang
@ 2016-10-06  6:15     ` Michal Kazior
  0 siblings, 0 replies; 4+ messages in thread
From: Michal Kazior @ 2016-10-06  6:15 UTC (permalink / raw)
  To: Xuebing Wang; +Cc: ath10k

On 6 October 2016 at 04:11, Xuebing Wang <xbing6@gmail.com> wrote:
> On 2016年09月19日 19:13, Michal Kazior wrote:
>>
>> On 19 September 2016 at 01:27, Xuebing Wang <xbing6@gmail.com> wrote:
>>>
>>> Hi Community,
>>>
>>> ath10k wiki says packet injection isn't supported yet. Is it difficult to
>>> add packet injection for chip like QCA6174 hw 2.1 in Killer 1525? Thanks.
>>
>> This would require some tricks:
>>   - monitor vdev can't tx so you'll need other vdev type allocated
>> side-by-sdie
>>   - tx often may require peer entries (see offchan code in mac.c)
>>   - getting raw mode to work may be a problem and may require some
>> length-encoding hacks
>>   - injecting protected (software encrypted) frames might be a problem
>>
>> Either way you're at the mercy of firmware blob :)
>>
>>
>> Michal
>
> Hi Michal,
>
> It seems QCA6174A hw2.1 firmware-5 does not support rawmode, dmesg shows
> firmware features "ignore-otp,no-4addr-pad". Is rawmode necessary for packet
> injection Tx? Thanks.

It's not strictly necessary if you want to hack it up. Raw tx encap
will be very likely (at least) borked as far as offsets/lengths are
concerned and some hacks/workarounds will be necessary to make it send
out correct frames on the air.


Michal

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-06  6:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-18 23:27 ath10k: about packet injection Xuebing Wang
2016-09-19 11:13 ` Michal Kazior
2016-10-06  2:11   ` Xuebing Wang
2016-10-06  6:15     ` Michal Kazior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.