80211.tmpl 17 KB

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