All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Smith <viscous.liquid@gmail.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] limited interface of mac80211 to drivers
Date: Wed, 22 Feb 2012 08:13:59 -0500	[thread overview]
Message-ID: <ji2pmo$3nf$1@dough.gmane.org> (raw)
In-Reply-To: <CAE+zGOhe6BSKSfhn+gC8suO0hGMDHjY-HOeVh2Xe=te96MDoqQ@mail.gmail.com>

Hi Abhiav,

On 2/21/2012 11:42 PM, abhinav narain wrote:
> hi,
> I am working on ath9k device driver.
> I want to pass some driver data to the userspace
> the most crucial point is transferring skbuff from  ath_rx_tasklet() to
> ieee80211_rx() using struct ath_hw.
>
> But there is no way to pass any extra information ... is there any void *
> variable where I can store the data of ath9k driver and receive it in
> mac80211 subsystem ?
> I can then transfer it to userspace easily.
I had a similar issue and the approach I took was to add a vendor 
radiotap header to the beginning of the skb buffer in ath9k. Then in 
mac80211 I combined the vendor radiotap header with the main radiotap 
header added by mac80211. The gotcha to watch out for is that you need 
to ensure enough space is allocated in the skb.
>
> I have another doubt with the evolving kernel subsystem,  I cannot use
> ioctl calls to set a particular channel to listen to ?
> And I am still using raw socket to read the frame in userspace ...
> any hints regarding this will be very helpful
Ath9k is a mac80211 based driver, you should be using the cfg80211 
netlink-based API to control the device. Actually you should use it for 
all wireless devices because the WEXT ioctl framework is deprecated. As 
for the raw socket, if you are looking for an API to abstract the packet 
sniffing then take a look at libpcap.

v/r,
dps

  reply	other threads:[~2012-02-22 13:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-22  4:42 [ath9k-devel] limited interface of mac80211 to drivers abhinav narain
2012-02-22 13:13 ` Daniel Smith [this message]
2012-02-22 16:39   ` abhinav narain

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='ji2pmo$3nf$1@dough.gmane.org' \
    --to=viscous.liquid@gmail.com \
    --cc=ath9k-devel@lists.ath9k.org \
    /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 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.