* wireless driver ath9k and module 80211 interaction
@ 2015-04-17 16:01 Roshanak Rasoli
2015-04-17 16:24 ` Dan Williams
0 siblings, 1 reply; 2+ messages in thread
From: Roshanak Rasoli @ 2015-04-17 16:01 UTC (permalink / raw)
To: linux-wireless
Hi experts,
I have a question about the code that you wrote;
1- How does the ath9k announce itself to the mac80211?
2- How can the mac80211 know how to configure the ath9k.
Could you please point out to the code.
Thanks in advance.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: wireless driver ath9k and module 80211 interaction
2015-04-17 16:01 wireless driver ath9k and module 80211 interaction Roshanak Rasoli
@ 2015-04-17 16:24 ` Dan Williams
0 siblings, 0 replies; 2+ messages in thread
From: Dan Williams @ 2015-04-17 16:24 UTC (permalink / raw)
To: Roshanak Rasoli; +Cc: linux-wireless
On Fri, 2015-04-17 at 18:01 +0200, Roshanak Rasoli wrote:
> Hi experts,
>
> I have a question about the code that you wrote;
>
> 1- How does the ath9k announce itself to the mac80211?
The ath9k driver handles its own hardware detection via normal kernel
probing and matching mechanisms, and you end up in
drivers/net/wireless/ath/ath9k/pci.c::ath_pci_probe() or ath_ahb_probe()
depending on the bus the device uses. From there ath9k calls
ieee80211_alloc_hw() which is how ath9k "announces" itself to mac80211.
> 2- How can the mac80211 know how to configure the ath9k.
The hardware module (ath9k) sends a set of "ops" (struct ieee80211_ops)
to mac80211 in the ieee80211_alloc_hw() call that contains callbacks
that mac80211 will run when it needs to configure the device. See
drivers/net/wireless/ath/ath9k/main.c for the ath9k_ops structure.
Dan
> Could you please point out to the code.
>
> Thanks in advance.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-17 16:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-17 16:01 wireless driver ath9k and module 80211 interaction Roshanak Rasoli
2015-04-17 16:24 ` Dan Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).