brintos

brintos / linux-shallow public Read only

0
0
Text · 3.7 KiB · e38a220 Raw
156 lines · plain
1===========================2mac80211 subsystem (basics)3===========================4 5You should read and understand the information contained within this6part of the book while implementing a mac80211 driver. In some chapters,7advanced usage is noted, those may be skipped if this isn't needed.8 9This part of the book only covers station and monitor mode10functionality, additional information required to implement the other11modes is covered in the second part of the book.12 13Basic hardware handling14=======================15 16TBD17 18This chapter shall contain information on getting a hw struct allocated19and registered with mac80211.20 21Since it is required to allocate rates/modes before registering a hw22struct, this chapter shall also contain information on setting up the23rate/mode structs.24 25Additionally, some discussion about the callbacks and the general26programming model should be in here, including the definition of27ieee80211_ops which will be referred to a lot.28 29Finally, a discussion of hardware capabilities should be done with30references to other parts of the book.31 32.. kernel-doc:: include/net/mac80211.h33   :functions:34	ieee80211_hw35	ieee80211_hw_flags36	SET_IEEE80211_DEV37	SET_IEEE80211_PERM_ADDR38	ieee80211_ops39	ieee80211_alloc_hw40	ieee80211_register_hw41	ieee80211_unregister_hw42	ieee80211_free_hw43 44PHY configuration45=================46 47TBD48 49This chapter should describe PHY handling including start/stop callbacks50and the various structures used.51 52.. kernel-doc:: include/net/mac80211.h53   :functions:54	ieee80211_conf55	ieee80211_conf_flags56 57Virtual interfaces58==================59 60TBD61 62This chapter should describe virtual interface basics that are relevant63to the driver (VLANs, MGMT etc are not.) It should explain the use of64the add_iface/remove_iface callbacks as well as the interface65configuration callbacks.66 67Things related to AP mode should be discussed there.68 69Things related to supporting multiple interfaces should be in the70appropriate chapter, a BIG FAT note should be here about this though and71the recommendation to allow only a single interface in STA mode at72first!73 74.. kernel-doc:: include/net/mac80211.h75   :functions: ieee80211_vif76 77Receive and transmit processing78===============================79 80what should be here81-------------------82 83TBD84 85This should describe the receive and transmit paths in mac80211/the86drivers as well as transmit status handling.87 88Frame format89------------90 91.. kernel-doc:: include/net/mac80211.h92   :doc: Frame format93 94Packet alignment95----------------96 97.. kernel-doc:: net/mac80211/rx.c98   :doc: Packet alignment99 100Calling into mac80211 from interrupts101-------------------------------------102 103.. kernel-doc:: include/net/mac80211.h104   :doc: Calling mac80211 from interrupts105 106functions/definitions107---------------------108 109.. kernel-doc:: include/net/mac80211.h110   :functions:111	ieee80211_rx_status112	mac80211_rx_encoding_flags113	mac80211_rx_flags114	mac80211_tx_info_flags115	mac80211_tx_control_flags116	mac80211_rate_control_flags117	ieee80211_tx_rate118	ieee80211_tx_info119	ieee80211_tx_info_clear_status120	ieee80211_rx121	ieee80211_rx_ni122	ieee80211_rx_irqsafe123	ieee80211_tx_status_skb124	ieee80211_tx_status_ni125	ieee80211_tx_status_irqsafe126	ieee80211_rts_get127	ieee80211_rts_duration128	ieee80211_ctstoself_get129	ieee80211_ctstoself_duration130	ieee80211_generic_frame_duration131	ieee80211_wake_queue132	ieee80211_stop_queue133	ieee80211_wake_queues134	ieee80211_stop_queues135	ieee80211_queue_stopped136 137Frame filtering138===============139 140.. kernel-doc:: include/net/mac80211.h141   :doc: Frame filtering142 143.. kernel-doc:: include/net/mac80211.h144   :functions: ieee80211_filter_flags145 146The mac80211 workqueue147======================148 149.. kernel-doc:: include/net/mac80211.h150   :doc: mac80211 workqueue151 152.. kernel-doc:: include/net/mac80211.h153   :functions:154	ieee80211_queue_work155	ieee80211_queue_delayed_work156