about mac80211 architeture
hi ,
I read the code all along today. I just know hostAP control nl80211
which is upper the cfg80211 and mac80211.
And then I read mac80211, but all functions are provided to be used by
upper layer. There is something confusing me.
Like that ieee80211_beacon_get_tim(), it is a generating beacon
function. But it only responses for generating a template of Beacon frame, where its beacon timer to be set?
I found it is called in ath9k/beacon.c , it surprise me a lot,
because i always believe mac80211 is the upper layer than those drivers like ath9k.
What I believe,
|-----------------------------------------------| | hostAP | |-----------------------------------------------| | nl80211 | |-----------------------------------------------| | cfg80211 or wext | |-----------------------------------------------| | mac80211 | |---------------|------------------|------------| | ath9k driver | ath5k driver | others | |---------------|------------------|------------|
But why ath9k/beacon.c will call these interface provided by mac80211? is this architecture right?
Yunong Pang
Regards,
Quoted 8 lines · pangyunong
hi ,
?I read the code all along today. I just know hostAP control nl80211 which is upper the cfg80211 and mac80211.
?And then I read mac80211, but all functions are provided to be used by upper layer. There is something confusing me.
?Like thatieee80211_beacon_get_tim(), it is a generating beacon function. But it only responses for generating a template of Beacon frame, where its beacon timer to be set?
based on SWBA Software Beacon Alert Interrupt. please grep for ATH9K_INT_SWBA, it provides more idea.
Quoted 3 lines
?But why
ath9k/beacon.cwill call these interface provided by mac80211? ?is this architecture right?
some more functions that were called are
{ 0x5d8b5707, "ieee80211_queue_work" },
{ 0x9c64fbd, "ieee80211_frequency_to_channel" },
{ 0x7514a8c3, "ieee80211_beacon_get_tim" },
{ 0x76bedf4e, "ieee80211_unregister_hw" },
{ 0xb45657d2, "ieee80211_iterate_active_interfaces_atomic" },
{ 0x52621d21, "ieee80211_stop_queues" },
{ 0xebf90528, "ieee80211_stop_queue" },
{ 0x17e071d0, "ieee80211_tx_status" },
{ 0x7e86ca89, "ieee80211_rate_control_register" },
{ 0xc8319d94, "ieee80211_wake_queues" },
{ 0x766fbc0e, "ieee80211_rx" },
{ 0x745211f8, "ieee80211_find_sta_by_ifaddr" },
{ 0x3cc930bc, "ieee80211_queue_delayed_work" },
{ 0xf36854a6, "wiphy_to_ieee80211_hw" },
{ 0x9b6d091e, "ieee80211_stop_tx_ba_cb_irqsafe" },
{ 0x80b77801, "ieee80211_get_buffered_bc" },
{ 0x3bd3c60e, "ieee80211_wake_queue" },
{ 0xb695fd7b, "__ieee80211_get_radio_led_name" },
{ 0x348bcbb, "ieee80211_get_hdrlen_from_skb" },
{ 0xefac7fe4, "ieee80211_rate_control_unregister" },
{ 0xab37adee, "__ieee80211_create_tpt_led_trigger" },
{ 0x23849a62, "ieee80211_register_hw" },
{ 0x386a2172, "ieee80211_sta_set_tim" },
{ 0xac653cb0, "ieee80211_start_tx_ba_session" },
{ 0x805d7dd7, "ieee80211_alloc_hw" },
{ 0x5c1501cd, "ieee80211_free_hw" },
{ 0xdb101d74, "ieee80211_start_tx_ba_cb_irqsafe" },Quoted 10 lines
?Yunong Pang
?Regards,_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Signature · 1 line
shafi