From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luis R. Rodriguez Date: Thu, 16 Jul 2009 14:16:09 -0700 Subject: [ath9k-devel] Newbie: Where/How does ath9k registers cfg80211_ops callbacks? In-Reply-To: References: Message-ID: <20090716211609.GD15423@mosca> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org 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