Skip to contentSkip to conversation

Newbie: Where/How does ath9k registers cfg80211_ops callbacks?

ath9k-devel Rakesh Kumar 2 participants 2 messages Jul 16, 2009

lore
Share & tools
lore
#0 lore raw

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.

--
Rakesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090716/15816ad1/attachment.htm

#1 lore raw
Quoted 9 lines · Rakesh Kumar

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.

Quoted 5 lines

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