public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: linux-wireless@vger.kernel.org,
	Roberto Riggio <roberto.riggio@gmail.com>
Subject: Re: Frame injection on ath9k
Date: Fri, 10 Dec 2021 09:27:34 +0100	[thread overview]
Message-ID: <4481549.kEIK8Ajiyv@ripper> (raw)
In-Reply-To: <CAKkT90b_C+B-2RY2BDO9tiQJh_Vv8y95JuVGADhc+ML-bSqxmQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 622 bytes --]

On Thursday, 9 December 2021 15:41:03 CET Roberto Riggio wrote:
> Could somebody be so kind to provide me with some pointers about
> where the frame injection at arbitrary rates from a radiotap header is
> implemented now?

Not in ath9k - it is in net/mac80211/tx.c. The function 
ieee80211_parse_tx_radiotap will inspect the radiotap header and set the flag 
IEEE80211_TX_CTRL_RATE_INJECT if it was able to retrieve some rates from it.

And ieee80211_tx_h_rate_ctrl will just not try to calculate new rates when 
they were already injected by the radiotap header (see 
IEEE80211_TX_CTRL_RATE_INJECT).

Kind regards,
	Sven

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2021-12-10  8:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-09 14:41 Frame injection on ath9k Roberto Riggio
2021-12-10  8:27 ` Sven Eckelmann [this message]
2021-12-13 16:49   ` Roberto Riggio
2021-12-13 17:05     ` Sven Eckelmann
2021-12-13 17:25       ` Ben Greear

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4481549.kEIK8Ajiyv@ripper \
    --to=sven@narfation.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=roberto.riggio@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox