mac80211.tmpl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []>
  4. <book id="mac80211-developers-guide">
  5. <bookinfo>
  6. <title>The mac80211 subsystem for kernel developers</title>
  7. <authorgroup>
  8. <author>
  9. <firstname>Johannes</firstname>
  10. <surname>Berg</surname>
  11. <affiliation>
  12. <address><email>johannes@sipsolutions.net</email></address>
  13. </affiliation>
  14. </author>
  15. </authorgroup>
  16. <copyright>
  17. <year>2007</year>
  18. <year>2008</year>
  19. <holder>Johannes Berg</holder>
  20. </copyright>
  21. <legalnotice>
  22. <para>
  23. This documentation is free software; you can redistribute
  24. it and/or modify it under the terms of the GNU General Public
  25. License version 2 as published by the Free Software Foundation.
  26. </para>
  27. <para>
  28. This documentation is distributed in the hope that it will be
  29. useful, but WITHOUT ANY WARRANTY; without even the implied
  30. warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  31. See the GNU General Public License for more details.
  32. </para>
  33. <para>
  34. You should have received a copy of the GNU General Public
  35. License along with this documentation; if not, write to the Free
  36. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  37. MA 02111-1307 USA
  38. </para>
  39. <para>
  40. For more details see the file COPYING in the source
  41. distribution of Linux.
  42. </para>
  43. </legalnotice>
  44. <abstract>
  45. !Pinclude/net/mac80211.h Introduction
  46. !Pinclude/net/mac80211.h Warning
  47. </abstract>
  48. </bookinfo>
  49. <toc></toc>
  50. <!--
  51. Generally, this document shall be ordered by increasing complexity.
  52. It is important to note that readers should be able to read only
  53. the first few sections to get a working driver and only advanced
  54. usage should require reading the full document.
  55. -->
  56. <part>
  57. <title>The basic mac80211 driver interface</title>
  58. <partintro>
  59. <para>
  60. You should read and understand the information contained
  61. within this part of the book while implementing a driver.
  62. In some chapters, advanced usage is noted, that may be
  63. skipped at first.
  64. </para>
  65. <para>
  66. This part of the book only covers station and monitor mode
  67. functionality, additional information required to implement
  68. the other modes is covered in the second part of the book.
  69. </para>
  70. </partintro>
  71. <chapter id="basics">
  72. <title>Basic hardware handling</title>
  73. <para>TBD</para>
  74. <para>
  75. This chapter shall contain information on getting a hw
  76. struct allocated and registered with mac80211.
  77. </para>
  78. <para>
  79. Since it is required to allocate rates/modes before registering
  80. a hw struct, this chapter shall also contain information on setting
  81. up the rate/mode structs.
  82. </para>
  83. <para>
  84. Additionally, some discussion about the callbacks and
  85. the general programming model should be in here, including
  86. the definition of ieee80211_ops which will be referred to
  87. a lot.
  88. </para>
  89. <para>
  90. Finally, a discussion of hardware capabilities should be done
  91. with references to other parts of the book.
  92. </para>
  93. <!-- intentionally multiple !F lines to get proper order -->
  94. !Finclude/net/mac80211.h ieee80211_hw
  95. !Finclude/net/mac80211.h ieee80211_hw_flags
  96. !Finclude/net/mac80211.h SET_IEEE80211_DEV
  97. !Finclude/net/mac80211.h SET_IEEE80211_PERM_ADDR
  98. !Finclude/net/mac80211.h ieee80211_ops
  99. !Finclude/net/mac80211.h ieee80211_alloc_hw
  100. !Finclude/net/mac80211.h ieee80211_register_hw
  101. !Finclude/net/mac80211.h ieee80211_get_tx_led_name
  102. !Finclude/net/mac80211.h ieee80211_get_rx_led_name
  103. !Finclude/net/mac80211.h ieee80211_get_assoc_led_name
  104. !Finclude/net/mac80211.h ieee80211_get_radio_led_name
  105. !Finclude/net/mac80211.h ieee80211_unregister_hw
  106. !Finclude/net/mac80211.h ieee80211_free_hw
  107. </chapter>
  108. <chapter id="phy-handling">
  109. <title>PHY configuration</title>
  110. <para>TBD</para>
  111. <para>
  112. This chapter should describe PHY handling including
  113. start/stop callbacks and the various structures used.
  114. </para>
  115. !Finclude/net/mac80211.h ieee80211_conf
  116. !Finclude/net/mac80211.h ieee80211_conf_flags
  117. </chapter>
  118. <chapter id="iface-handling">
  119. <title>Virtual interfaces</title>
  120. <para>TBD</para>
  121. <para>
  122. This chapter should describe virtual interface basics
  123. that are relevant to the driver (VLANs, MGMT etc are not.)
  124. It should explain the use of the add_iface/remove_iface
  125. callbacks as well as the interface configuration callbacks.
  126. </para>
  127. <para>Things related to AP mode should be discussed there.</para>
  128. <para>
  129. Things related to supporting multiple interfaces should be
  130. in the appropriate chapter, a BIG FAT note should be here about
  131. this though and the recommendation to allow only a single
  132. interface in STA mode at first!
  133. </para>
  134. !Finclude/net/mac80211.h ieee80211_if_init_conf
  135. !Finclude/net/mac80211.h ieee80211_if_conf
  136. </chapter>
  137. <chapter id="rx-tx">
  138. <title>Receive and transmit processing</title>
  139. <sect1>
  140. <title>what should be here</title>
  141. <para>TBD</para>
  142. <para>
  143. This should describe the receive and transmit
  144. paths in mac80211/the drivers as well as
  145. transmit status handling.
  146. </para>
  147. </sect1>
  148. <sect1>
  149. <title>Frame format</title>
  150. !Pinclude/net/mac80211.h Frame format
  151. </sect1>
  152. <sect1>
  153. <title>Alignment issues</title>
  154. <para>TBD</para>
  155. </sect1>
  156. <sect1>
  157. <title>Calling into mac80211 from interrupts</title>
  158. !Pinclude/net/mac80211.h Calling mac80211 from interrupts
  159. </sect1>
  160. <sect1>
  161. <title>functions/definitions</title>
  162. !Finclude/net/mac80211.h ieee80211_rx_status
  163. !Finclude/net/mac80211.h mac80211_rx_flags
  164. !Finclude/net/mac80211.h ieee80211_tx_info
  165. !Finclude/net/mac80211.h ieee80211_rx
  166. !Finclude/net/mac80211.h ieee80211_rx_irqsafe
  167. !Finclude/net/mac80211.h ieee80211_tx_status
  168. !Finclude/net/mac80211.h ieee80211_tx_status_irqsafe
  169. !Finclude/net/mac80211.h ieee80211_rts_get
  170. !Finclude/net/mac80211.h ieee80211_rts_duration
  171. !Finclude/net/mac80211.h ieee80211_ctstoself_get
  172. !Finclude/net/mac80211.h ieee80211_ctstoself_duration
  173. !Finclude/net/mac80211.h ieee80211_generic_frame_duration
  174. !Finclude/net/mac80211.h ieee80211_get_hdrlen_from_skb
  175. !Finclude/net/mac80211.h ieee80211_hdrlen
  176. !Finclude/net/mac80211.h ieee80211_wake_queue
  177. !Finclude/net/mac80211.h ieee80211_stop_queue
  178. !Finclude/net/mac80211.h ieee80211_wake_queues
  179. !Finclude/net/mac80211.h ieee80211_stop_queues
  180. </sect1>
  181. </chapter>
  182. <chapter id="filters">
  183. <title>Frame filtering</title>
  184. !Pinclude/net/mac80211.h Frame filtering
  185. !Finclude/net/mac80211.h ieee80211_filter_flags
  186. </chapter>
  187. </part>
  188. <part id="advanced">
  189. <title>Advanced driver interface</title>
  190. <partintro>
  191. <para>
  192. Information contained within this part of the book is
  193. of interest only for advanced interaction of mac80211
  194. with drivers to exploit more hardware capabilities and
  195. improve performance.
  196. </para>
  197. </partintro>
  198. <chapter id="hardware-crypto-offload">
  199. <title>Hardware crypto acceleration</title>
  200. !Pinclude/net/mac80211.h Hardware crypto acceleration
  201. <!-- intentionally multiple !F lines to get proper order -->
  202. !Finclude/net/mac80211.h set_key_cmd
  203. !Finclude/net/mac80211.h ieee80211_key_conf
  204. !Finclude/net/mac80211.h ieee80211_key_alg
  205. !Finclude/net/mac80211.h ieee80211_key_flags
  206. </chapter>
  207. <chapter id="qos">
  208. <title>Multiple queues and QoS support</title>
  209. <para>TBD</para>
  210. !Finclude/net/mac80211.h ieee80211_tx_queue_params
  211. !Finclude/net/mac80211.h ieee80211_tx_queue_stats
  212. </chapter>
  213. <chapter id="AP">
  214. <title>Access point mode support</title>
  215. <para>TBD</para>
  216. <para>Some parts of the if_conf should be discussed here instead</para>
  217. <para>
  218. Insert notes about VLAN interfaces with hw crypto here or
  219. in the hw crypto chapter.
  220. </para>
  221. !Finclude/net/mac80211.h ieee80211_get_buffered_bc
  222. !Finclude/net/mac80211.h ieee80211_beacon_get
  223. </chapter>
  224. <chapter id="multi-iface">
  225. <title>Supporting multiple virtual interfaces</title>
  226. <para>TBD</para>
  227. <para>
  228. Note: WDS with identical MAC address should almost always be OK
  229. </para>
  230. <para>
  231. Insert notes about having multiple virtual interfaces with
  232. different MAC addresses here, note which configurations are
  233. supported by mac80211, add notes about supporting hw crypto
  234. with it.
  235. </para>
  236. </chapter>
  237. <chapter id="hardware-scan-offload">
  238. <title>Hardware scan offload</title>
  239. <para>TBD</para>
  240. !Finclude/net/mac80211.h ieee80211_scan_completed
  241. </chapter>
  242. </part>
  243. <part id="rate-control">
  244. <title>Rate control interface</title>
  245. <partintro>
  246. <para>TBD</para>
  247. <para>
  248. This part of the book describes the rate control algorithm
  249. interface and how it relates to mac80211 and drivers.
  250. </para>
  251. </partintro>
  252. <chapter id="dummy">
  253. <title>dummy chapter</title>
  254. <para>TBD</para>
  255. </chapter>
  256. </part>
  257. <part id="internal">
  258. <title>Internals</title>
  259. <partintro>
  260. <para>TBD</para>
  261. <para>
  262. This part of the book describes mac80211 internals.
  263. </para>
  264. </partintro>
  265. <chapter id="key-handling">
  266. <title>Key handling</title>
  267. <sect1>
  268. <title>Key handling basics</title>
  269. !Pnet/mac80211/key.c Key handling basics
  270. </sect1>
  271. <sect1>
  272. <title>MORE TBD</title>
  273. <para>TBD</para>
  274. </sect1>
  275. </chapter>
  276. <chapter id="rx-processing">
  277. <title>Receive processing</title>
  278. <para>TBD</para>
  279. </chapter>
  280. <chapter id="tx-processing">
  281. <title>Transmit processing</title>
  282. <para>TBD</para>
  283. </chapter>
  284. <chapter id="sta-info">
  285. <title>Station info handling</title>
  286. <sect1>
  287. <title>Programming information</title>
  288. !Fnet/mac80211/sta_info.h sta_info
  289. !Fnet/mac80211/sta_info.h ieee80211_sta_info_flags
  290. </sect1>
  291. <sect1>
  292. <title>STA information lifetime rules</title>
  293. !Pnet/mac80211/sta_info.c STA information lifetime rules
  294. </sect1>
  295. </chapter>
  296. <chapter id="synchronisation">
  297. <title>Synchronisation</title>
  298. <para>TBD</para>
  299. <para>Locking, lots of RCU</para>
  300. </chapter>
  301. </part>
  302. </book>