80211.tmpl 12 KB

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