Newbie: Where/How does ath9k registers cfg80211_ops callbacks?
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
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_channelwhich performs the operations that theset_channelcallback 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