All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luis R. Rodriguez <lrodriguez@atheros.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] Newbie: Where/How does ath9k registers cfg80211_ops callbacks?
Date: Thu, 16 Jul 2009 14:16:09 -0700	[thread overview]
Message-ID: <20090716211609.GD15423@mosca> (raw)
In-Reply-To: <cdc21430907161356h510b5f6ap4a3b182abdfb4813@mail.gmail.com>

On Thu, Jul 16, 2009 at 01:56:31PM -0700, Rakesh Kumar wrote:
> Hello,
> 
> I was browsing through the ath9k code and was wondering where does it register the callback functions which are given in cfg80211.h, where it says:
> 
>  * struct cfg80211_ops - backend description for wireless configuration
>  *
>  * This struct is registered by fullmac card drivers and/or wireless stacks
>  * in order to handle configuration requests on their interfaces.
> 
> I see that ath9k has a function named ath_set_channel which performs the operations that the set_channel callback function should do for ath9k but don't see where the mapping is being established.
> 
> What further confuses me is the reference given in the presentation uploaded at: http://linuxwireless.org/en/developers/Documentation?action=AttachFile&do=get&target=overview.pdf  by Johannes where in the slide about Main Flows - configuration he writes "some operation passed through to driver more or less  directly (e.g. channel setting)"
> 
> I am not sure how this is being done in ath9k, any references/code snippet will be high appreciated.

ath9k is a mac80211 driver. mac80211 implements all cfg80211 callbacks for us. Therefore
we just need to implement the mac80211 callbacks and the bus specific stuff.

  Luis

      reply	other threads:[~2009-07-16 21:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-16 20:56 [ath9k-devel] Newbie: Where/How does ath9k registers cfg80211_ops callbacks? Rakesh Kumar
2009-07-16 21:16 ` Luis R. Rodriguez [this message]

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=20090716211609.GD15423@mosca \
    --to=lrodriguez@atheros.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.