Linux wireless drivers development
 help / color / mirror / Atom feed
From: Roberto Riggio <roberto.riggio@create-net.org>
To: "Gábor Stefanik" <netrolller.3d@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Packet injection with ath9k
Date: Fri, 07 May 2010 21:09:56 +0200	[thread overview]
Message-ID: <4BE46584.5060304@create-net.org> (raw)
In-Reply-To: <j2v69e28c911005070935wb720d757labf3a0484aedefb8@mail.gmail.com>

Hi,

well, that is what i wanted to understand. These are the struct
that I'm using to compose the rediotap header:

struct ieee80211_radiotap_header {
     u_int8_t    it_version;
     u_int8_t    it_pad;
     u_int16_t       it_len;
     u_int32_t       it_present;
} __attribute__((__packed__));

struct click_radiotap_header {
     struct ieee80211_radiotap_header wt_ihdr;
     u_int8_t    wt_rate;
     u_int8_t    wt_txpower;
     u_int8_t        wt_rts_retries;
     u_int8_t        wt_data_retries;
};

The flags are set in order to take into account the fields that I
specify. But i do not know at which point the frame are
dropped.

R.

On 05/07/2010 06:35 PM, Gábor Stefanik wrote:
> Hi!
> Are you sure it is not your injector that is having alignment issues?
> AFAIK the radiotap parser explicitly uses endianness-aware function
> everywhere.
>
> On Fri, May 7, 2010 at 6:13 PM, Roberto Riggio
> <roberto.riggio@create-net.org>  wrote:
>    
>> Hi,
>>
>> I'm writing an application to inject traffic over a wireless interface. This
>> app
>> is working fine on an x86 machine. However if i compile the same app for
>> an arm platform, no frame are sent over the wireless interface (ath9k).
>>
>> I'm guessing that this is because of some alignment issues but i cannot
>> track
>> the piece of code that is actually parsing the frame. I've found the
>> __ieee80211_parse_tx_radiotap in net/mac80211/tx.c function, but it is
>> not called when i try to inject some traffic, so the frame are dropped
>> before that.
>>
>> Any hints?
>>
>> Thanks
>> R.
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>>      
>
>
>    


  reply	other threads:[~2010-05-07 19:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-07 16:13 Packet injection with ath9k Roberto Riggio
2010-05-07 16:35 ` Gábor Stefanik
2010-05-07 19:09   ` Roberto Riggio [this message]
2010-05-09 20:24     ` Gábor Stefanik
2010-05-12 16:42       ` Roberto Riggio
2010-05-12 16:46         ` Johannes Berg

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=4BE46584.5060304@create-net.org \
    --to=roberto.riggio@create-net.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=netrolller.3d@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