mac80211.tmpl 11 KB

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