80211.tmpl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  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. !Ainclude/net/cfg80211.h
  65. <bookinfo>
  66. <title>The cfg80211 subsystem</title>
  67. <abstract>
  68. !Pinclude/net/cfg80211.h Introduction
  69. </abstract>
  70. </bookinfo>
  71. <chapter>
  72. <title>Device registration</title>
  73. !Pinclude/net/cfg80211.h Device registration
  74. !Finclude/net/cfg80211.h ieee80211_band
  75. !Finclude/net/cfg80211.h ieee80211_channel_flags
  76. !Finclude/net/cfg80211.h ieee80211_channel
  77. !Finclude/net/cfg80211.h ieee80211_rate_flags
  78. !Finclude/net/cfg80211.h ieee80211_rate
  79. !Finclude/net/cfg80211.h ieee80211_sta_ht_cap
  80. !Finclude/net/cfg80211.h ieee80211_supported_band
  81. !Finclude/net/cfg80211.h cfg80211_signal_type
  82. !Finclude/net/cfg80211.h wiphy_params_flags
  83. !Finclude/net/cfg80211.h wiphy_flags
  84. !Finclude/net/cfg80211.h wiphy
  85. !Finclude/net/cfg80211.h wireless_dev
  86. !Finclude/net/cfg80211.h wiphy_new
  87. !Finclude/net/cfg80211.h wiphy_register
  88. !Finclude/net/cfg80211.h wiphy_unregister
  89. !Finclude/net/cfg80211.h wiphy_free
  90. !Finclude/net/cfg80211.h wiphy_name
  91. !Finclude/net/cfg80211.h wiphy_dev
  92. !Finclude/net/cfg80211.h wiphy_priv
  93. !Finclude/net/cfg80211.h priv_to_wiphy
  94. !Finclude/net/cfg80211.h set_wiphy_dev
  95. !Finclude/net/cfg80211.h wdev_priv
  96. </chapter>
  97. <chapter>
  98. <title>Actions and configuration</title>
  99. !Pinclude/net/cfg80211.h Actions and configuration
  100. !Finclude/net/cfg80211.h cfg80211_ops
  101. !Finclude/net/cfg80211.h vif_params
  102. !Finclude/net/cfg80211.h key_params
  103. !Finclude/net/cfg80211.h survey_info_flags
  104. !Finclude/net/cfg80211.h survey_info
  105. !Finclude/net/cfg80211.h beacon_parameters
  106. !Finclude/net/cfg80211.h plink_actions
  107. !Finclude/net/cfg80211.h station_parameters
  108. !Finclude/net/cfg80211.h station_info_flags
  109. !Finclude/net/cfg80211.h rate_info_flags
  110. !Finclude/net/cfg80211.h rate_info
  111. !Finclude/net/cfg80211.h station_info
  112. !Finclude/net/cfg80211.h monitor_flags
  113. !Finclude/net/cfg80211.h mpath_info_flags
  114. !Finclude/net/cfg80211.h mpath_info
  115. !Finclude/net/cfg80211.h bss_parameters
  116. !Finclude/net/cfg80211.h ieee80211_txq_params
  117. !Finclude/net/cfg80211.h cfg80211_crypto_settings
  118. !Finclude/net/cfg80211.h cfg80211_auth_request
  119. !Finclude/net/cfg80211.h cfg80211_assoc_request
  120. !Finclude/net/cfg80211.h cfg80211_deauth_request
  121. !Finclude/net/cfg80211.h cfg80211_disassoc_request
  122. !Finclude/net/cfg80211.h cfg80211_ibss_params
  123. !Finclude/net/cfg80211.h cfg80211_connect_params
  124. !Finclude/net/cfg80211.h cfg80211_pmksa
  125. !Finclude/net/cfg80211.h cfg80211_send_rx_auth
  126. !Finclude/net/cfg80211.h cfg80211_send_auth_timeout
  127. !Finclude/net/cfg80211.h __cfg80211_auth_canceled
  128. !Finclude/net/cfg80211.h cfg80211_send_rx_assoc
  129. !Finclude/net/cfg80211.h cfg80211_send_assoc_timeout
  130. !Finclude/net/cfg80211.h cfg80211_send_deauth
  131. !Finclude/net/cfg80211.h __cfg80211_send_deauth
  132. !Finclude/net/cfg80211.h cfg80211_send_disassoc
  133. !Finclude/net/cfg80211.h __cfg80211_send_disassoc
  134. !Finclude/net/cfg80211.h cfg80211_ibss_joined
  135. !Finclude/net/cfg80211.h cfg80211_connect_result
  136. !Finclude/net/cfg80211.h cfg80211_roamed
  137. !Finclude/net/cfg80211.h cfg80211_disconnected
  138. !Finclude/net/cfg80211.h cfg80211_ready_on_channel
  139. !Finclude/net/cfg80211.h cfg80211_remain_on_channel_expired
  140. !Finclude/net/cfg80211.h cfg80211_new_sta
  141. !Finclude/net/cfg80211.h cfg80211_rx_mgmt
  142. !Finclude/net/cfg80211.h cfg80211_mgmt_tx_status
  143. !Finclude/net/cfg80211.h cfg80211_cqm_rssi_notify
  144. !Finclude/net/cfg80211.h cfg80211_michael_mic_failure
  145. </chapter>
  146. <chapter>
  147. <title>Scanning and BSS list handling</title>
  148. !Pinclude/net/cfg80211.h Scanning and BSS list handling
  149. !Finclude/net/cfg80211.h cfg80211_ssid
  150. !Finclude/net/cfg80211.h cfg80211_scan_request
  151. !Finclude/net/cfg80211.h cfg80211_scan_done
  152. !Finclude/net/cfg80211.h cfg80211_bss
  153. !Finclude/net/cfg80211.h cfg80211_inform_bss_frame
  154. !Finclude/net/cfg80211.h cfg80211_inform_bss
  155. !Finclude/net/cfg80211.h cfg80211_unlink_bss
  156. !Finclude/net/cfg80211.h cfg80211_find_ie
  157. !Finclude/net/cfg80211.h ieee80211_bss_get_ie
  158. </chapter>
  159. <chapter>
  160. <title>Utility functions</title>
  161. !Pinclude/net/cfg80211.h Utility functions
  162. !Finclude/net/cfg80211.h ieee80211_channel_to_frequency
  163. !Finclude/net/cfg80211.h ieee80211_frequency_to_channel
  164. !Finclude/net/cfg80211.h ieee80211_get_channel
  165. !Finclude/net/cfg80211.h ieee80211_get_response_rate
  166. !Finclude/net/cfg80211.h ieee80211_hdrlen
  167. !Finclude/net/cfg80211.h ieee80211_get_hdrlen_from_skb
  168. !Finclude/net/cfg80211.h ieee80211_radiotap_iterator
  169. </chapter>
  170. <chapter>
  171. <title>Data path helpers</title>
  172. !Pinclude/net/cfg80211.h Data path helpers
  173. !Finclude/net/cfg80211.h ieee80211_data_to_8023
  174. !Finclude/net/cfg80211.h ieee80211_data_from_8023
  175. !Finclude/net/cfg80211.h ieee80211_amsdu_to_8023s
  176. !Finclude/net/cfg80211.h cfg80211_classify8021d
  177. </chapter>
  178. <chapter>
  179. <title>Regulatory enforcement infrastructure</title>
  180. !Pinclude/net/cfg80211.h Regulatory enforcement infrastructure
  181. !Finclude/net/cfg80211.h regulatory_hint
  182. !Finclude/net/cfg80211.h wiphy_apply_custom_regulatory
  183. !Finclude/net/cfg80211.h freq_reg_info
  184. </chapter>
  185. <chapter>
  186. <title>RFkill integration</title>
  187. !Pinclude/net/cfg80211.h RFkill integration
  188. !Finclude/net/cfg80211.h wiphy_rfkill_set_hw_state
  189. !Finclude/net/cfg80211.h wiphy_rfkill_start_polling
  190. !Finclude/net/cfg80211.h wiphy_rfkill_stop_polling
  191. </chapter>
  192. <chapter>
  193. <title>Test mode</title>
  194. !Pinclude/net/cfg80211.h Test mode
  195. !Finclude/net/cfg80211.h cfg80211_testmode_alloc_reply_skb
  196. !Finclude/net/cfg80211.h cfg80211_testmode_reply
  197. !Finclude/net/cfg80211.h cfg80211_testmode_alloc_event_skb
  198. !Finclude/net/cfg80211.h cfg80211_testmode_event
  199. </chapter>
  200. </book>
  201. <book id="mac80211-developers-guide">
  202. <bookinfo>
  203. <title>The mac80211 subsystem</title>
  204. <abstract>
  205. !Pinclude/net/mac80211.h Introduction
  206. !Pinclude/net/mac80211.h Warning
  207. </abstract>
  208. </bookinfo>
  209. <toc></toc>
  210. <!--
  211. Generally, this document shall be ordered by increasing complexity.
  212. It is important to note that readers should be able to read only
  213. the first few sections to get a working driver and only advanced
  214. usage should require reading the full document.
  215. -->
  216. <part>
  217. <title>The basic mac80211 driver interface</title>
  218. <partintro>
  219. <para>
  220. You should read and understand the information contained
  221. within this part of the book while implementing a driver.
  222. In some chapters, advanced usage is noted, that may be
  223. skipped at first.
  224. </para>
  225. <para>
  226. This part of the book only covers station and monitor mode
  227. functionality, additional information required to implement
  228. the other modes is covered in the second part of the book.
  229. </para>
  230. </partintro>
  231. <chapter id="basics">
  232. <title>Basic hardware handling</title>
  233. <para>TBD</para>
  234. <para>
  235. This chapter shall contain information on getting a hw
  236. struct allocated and registered with mac80211.
  237. </para>
  238. <para>
  239. Since it is required to allocate rates/modes before registering
  240. a hw struct, this chapter shall also contain information on setting
  241. up the rate/mode structs.
  242. </para>
  243. <para>
  244. Additionally, some discussion about the callbacks and
  245. the general programming model should be in here, including
  246. the definition of ieee80211_ops which will be referred to
  247. a lot.
  248. </para>
  249. <para>
  250. Finally, a discussion of hardware capabilities should be done
  251. with references to other parts of the book.
  252. </para>
  253. <!-- intentionally multiple !F lines to get proper order -->
  254. !Finclude/net/mac80211.h ieee80211_hw
  255. !Finclude/net/mac80211.h ieee80211_hw_flags
  256. !Finclude/net/mac80211.h SET_IEEE80211_DEV
  257. !Finclude/net/mac80211.h SET_IEEE80211_PERM_ADDR
  258. !Finclude/net/mac80211.h ieee80211_ops
  259. !Finclude/net/mac80211.h ieee80211_alloc_hw
  260. !Finclude/net/mac80211.h ieee80211_register_hw
  261. !Finclude/net/mac80211.h ieee80211_get_tx_led_name
  262. !Finclude/net/mac80211.h ieee80211_get_rx_led_name
  263. !Finclude/net/mac80211.h ieee80211_get_assoc_led_name
  264. !Finclude/net/mac80211.h ieee80211_get_radio_led_name
  265. !Finclude/net/mac80211.h ieee80211_unregister_hw
  266. !Finclude/net/mac80211.h ieee80211_free_hw
  267. </chapter>
  268. <chapter id="phy-handling">
  269. <title>PHY configuration</title>
  270. <para>TBD</para>
  271. <para>
  272. This chapter should describe PHY handling including
  273. start/stop callbacks and the various structures used.
  274. </para>
  275. !Finclude/net/mac80211.h ieee80211_conf
  276. !Finclude/net/mac80211.h ieee80211_conf_flags
  277. </chapter>
  278. <chapter id="iface-handling">
  279. <title>Virtual interfaces</title>
  280. <para>TBD</para>
  281. <para>
  282. This chapter should describe virtual interface basics
  283. that are relevant to the driver (VLANs, MGMT etc are not.)
  284. It should explain the use of the add_iface/remove_iface
  285. callbacks as well as the interface configuration callbacks.
  286. </para>
  287. <para>Things related to AP mode should be discussed there.</para>
  288. <para>
  289. Things related to supporting multiple interfaces should be
  290. in the appropriate chapter, a BIG FAT note should be here about
  291. this though and the recommendation to allow only a single
  292. interface in STA mode at first!
  293. </para>
  294. !Finclude/net/mac80211.h ieee80211_vif
  295. </chapter>
  296. <chapter id="rx-tx">
  297. <title>Receive and transmit processing</title>
  298. <sect1>
  299. <title>what should be here</title>
  300. <para>TBD</para>
  301. <para>
  302. This should describe the receive and transmit
  303. paths in mac80211/the drivers as well as
  304. transmit status handling.
  305. </para>
  306. </sect1>
  307. <sect1>
  308. <title>Frame format</title>
  309. !Pinclude/net/mac80211.h Frame format
  310. </sect1>
  311. <sect1>
  312. <title>Packet alignment</title>
  313. !Pnet/mac80211/rx.c Packet alignment
  314. </sect1>
  315. <sect1>
  316. <title>Calling into mac80211 from interrupts</title>
  317. !Pinclude/net/mac80211.h Calling mac80211 from interrupts
  318. </sect1>
  319. <sect1>
  320. <title>functions/definitions</title>
  321. !Finclude/net/mac80211.h ieee80211_rx_status
  322. !Finclude/net/mac80211.h mac80211_rx_flags
  323. !Finclude/net/mac80211.h ieee80211_tx_info
  324. !Finclude/net/mac80211.h ieee80211_rx
  325. !Finclude/net/mac80211.h ieee80211_rx_irqsafe
  326. !Finclude/net/mac80211.h ieee80211_tx_status
  327. !Finclude/net/mac80211.h ieee80211_tx_status_irqsafe
  328. !Finclude/net/mac80211.h ieee80211_rts_get
  329. !Finclude/net/mac80211.h ieee80211_rts_duration
  330. !Finclude/net/mac80211.h ieee80211_ctstoself_get
  331. !Finclude/net/mac80211.h ieee80211_ctstoself_duration
  332. !Finclude/net/mac80211.h ieee80211_generic_frame_duration
  333. !Finclude/net/mac80211.h ieee80211_wake_queue
  334. !Finclude/net/mac80211.h ieee80211_stop_queue
  335. !Finclude/net/mac80211.h ieee80211_wake_queues
  336. !Finclude/net/mac80211.h ieee80211_stop_queues
  337. </sect1>
  338. </chapter>
  339. <chapter id="filters">
  340. <title>Frame filtering</title>
  341. !Pinclude/net/mac80211.h Frame filtering
  342. !Finclude/net/mac80211.h ieee80211_filter_flags
  343. </chapter>
  344. </part>
  345. <part id="advanced">
  346. <title>Advanced driver interface</title>
  347. <partintro>
  348. <para>
  349. Information contained within this part of the book is
  350. of interest only for advanced interaction of mac80211
  351. with drivers to exploit more hardware capabilities and
  352. improve performance.
  353. </para>
  354. </partintro>
  355. <chapter id="hardware-crypto-offload">
  356. <title>Hardware crypto acceleration</title>
  357. !Pinclude/net/mac80211.h Hardware crypto acceleration
  358. <!-- intentionally multiple !F lines to get proper order -->
  359. !Finclude/net/mac80211.h set_key_cmd
  360. !Finclude/net/mac80211.h ieee80211_key_conf
  361. !Finclude/net/mac80211.h ieee80211_key_flags
  362. </chapter>
  363. <chapter id="powersave">
  364. <title>Powersave support</title>
  365. !Pinclude/net/mac80211.h Powersave support
  366. </chapter>
  367. <chapter id="beacon-filter">
  368. <title>Beacon filter support</title>
  369. !Pinclude/net/mac80211.h Beacon filter support
  370. !Finclude/net/mac80211.h ieee80211_beacon_loss
  371. </chapter>
  372. <chapter id="qos">
  373. <title>Multiple queues and QoS support</title>
  374. <para>TBD</para>
  375. !Finclude/net/mac80211.h ieee80211_tx_queue_params
  376. </chapter>
  377. <chapter id="AP">
  378. <title>Access point mode support</title>
  379. <para>TBD</para>
  380. <para>Some parts of the if_conf should be discussed here instead</para>
  381. <para>
  382. Insert notes about VLAN interfaces with hw crypto here or
  383. in the hw crypto chapter.
  384. </para>
  385. !Finclude/net/mac80211.h ieee80211_get_buffered_bc
  386. !Finclude/net/mac80211.h ieee80211_beacon_get
  387. </chapter>
  388. <chapter id="multi-iface">
  389. <title>Supporting multiple virtual interfaces</title>
  390. <para>TBD</para>
  391. <para>
  392. Note: WDS with identical MAC address should almost always be OK
  393. </para>
  394. <para>
  395. Insert notes about having multiple virtual interfaces with
  396. different MAC addresses here, note which configurations are
  397. supported by mac80211, add notes about supporting hw crypto
  398. with it.
  399. </para>
  400. </chapter>
  401. <chapter id="hardware-scan-offload">
  402. <title>Hardware scan offload</title>
  403. <para>TBD</para>
  404. !Finclude/net/mac80211.h ieee80211_scan_completed
  405. </chapter>
  406. </part>
  407. <part id="rate-control">
  408. <title>Rate control interface</title>
  409. <partintro>
  410. <para>TBD</para>
  411. <para>
  412. This part of the book describes the rate control algorithm
  413. interface and how it relates to mac80211 and drivers.
  414. </para>
  415. </partintro>
  416. <chapter id="dummy">
  417. <title>dummy chapter</title>
  418. <para>TBD</para>
  419. </chapter>
  420. </part>
  421. <part id="internal">
  422. <title>Internals</title>
  423. <partintro>
  424. <para>TBD</para>
  425. <para>
  426. This part of the book describes mac80211 internals.
  427. </para>
  428. </partintro>
  429. <chapter id="key-handling">
  430. <title>Key handling</title>
  431. <sect1>
  432. <title>Key handling basics</title>
  433. !Pnet/mac80211/key.c Key handling basics
  434. </sect1>
  435. <sect1>
  436. <title>MORE TBD</title>
  437. <para>TBD</para>
  438. </sect1>
  439. </chapter>
  440. <chapter id="rx-processing">
  441. <title>Receive processing</title>
  442. <para>TBD</para>
  443. </chapter>
  444. <chapter id="tx-processing">
  445. <title>Transmit processing</title>
  446. <para>TBD</para>
  447. </chapter>
  448. <chapter id="sta-info">
  449. <title>Station info handling</title>
  450. <sect1>
  451. <title>Programming information</title>
  452. !Fnet/mac80211/sta_info.h sta_info
  453. !Fnet/mac80211/sta_info.h ieee80211_sta_info_flags
  454. </sect1>
  455. <sect1>
  456. <title>STA information lifetime rules</title>
  457. !Pnet/mac80211/sta_info.c STA information lifetime rules
  458. </sect1>
  459. </chapter>
  460. <chapter id="synchronisation">
  461. <title>Synchronisation</title>
  462. <para>TBD</para>
  463. <para>Locking, lots of RCU</para>
  464. </chapter>
  465. </part>
  466. </book>
  467. </set>