Commit dbbea671 authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

mac80211: add documentation book

Quite a while ago I started this book. The required kernel-doc
patches have since gone into the tree so it is now possible to
build the book in mainline.

The actual documentation is still rather incomplete and not all
things are linked into the book, but this enables us to edit
the documentation collaboratively, hopefully driver authors can
add documentation based on their experience with mac80211.
Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7c8076bd
...@@ -11,7 +11,8 @@ DOCBOOKS := wanbook.xml z8530book.xml mcabook.xml videobook.xml \ ...@@ -11,7 +11,8 @@ DOCBOOKS := wanbook.xml z8530book.xml mcabook.xml videobook.xml \
procfs-guide.xml writing_usb_driver.xml networking.xml \ procfs-guide.xml writing_usb_driver.xml networking.xml \
kernel-api.xml filesystems.xml lsm.xml usb.xml \ kernel-api.xml filesystems.xml lsm.xml usb.xml \
gadget.xml libata.xml mtdnand.xml librs.xml rapidio.xml \ gadget.xml libata.xml mtdnand.xml librs.xml rapidio.xml \
genericirq.xml s390-drivers.xml uio-howto.xml scsi.xml genericirq.xml s390-drivers.xml uio-howto.xml scsi.xml \
mac80211.xml
### ###
# The build process is as follows (targets): # The build process is as follows (targets):
......
This diff is collapsed.
...@@ -407,7 +407,6 @@ enum ieee80211_conf_flags { ...@@ -407,7 +407,6 @@ enum ieee80211_conf_flags {
* @channel: the channel to tune to * @channel: the channel to tune to
*/ */
struct ieee80211_conf { struct ieee80211_conf {
unsigned int regulatory_domain;
int radio_enabled; int radio_enabled;
int beacon_int; int beacon_int;
...@@ -437,6 +436,7 @@ struct ieee80211_conf { ...@@ -437,6 +436,7 @@ struct ieee80211_conf {
* @IEEE80211_IF_TYPE_WDS: interface in WDS mode. * @IEEE80211_IF_TYPE_WDS: interface in WDS mode.
* @IEEE80211_IF_TYPE_VLAN: VLAN interface bound to an AP, drivers * @IEEE80211_IF_TYPE_VLAN: VLAN interface bound to an AP, drivers
* will never see this type. * will never see this type.
* @IEEE80211_IF_TYPE_MESH_POINT: 802.11s mesh point
*/ */
enum ieee80211_if_types { enum ieee80211_if_types {
IEEE80211_IF_TYPE_INVALID, IEEE80211_IF_TYPE_INVALID,
...@@ -1096,8 +1096,9 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len, ...@@ -1096,8 +1096,9 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
/** /**
* ieee80211_register_hw - Register hardware device * ieee80211_register_hw - Register hardware device
* *
* You must call this function before any other functions * You must call this function before any other functions in
* except ieee80211_register_hwmode. * mac80211. Note that before a hardware can be registered, you
* need to fill the contained wiphy's information.
* *
* @hw: the device to register as returned by ieee80211_alloc_hw() * @hw: the device to register as returned by ieee80211_alloc_hw()
*/ */
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
#include "aes_ccm.h" #include "aes_ccm.h"
/* /**
* Key handling basics * DOC: Key handling basics
* *
* Key handling in mac80211 is done based on per-interface (sub_if_data) * Key handling in mac80211 is done based on per-interface (sub_if_data)
* keys and per-station keys. Since each station belongs to an interface, * keys and per-station keys. Since each station belongs to an interface,
......
...@@ -31,10 +31,10 @@ ...@@ -31,10 +31,10 @@
* for faster lookup and a list for iteration. They are managed using * for faster lookup and a list for iteration. They are managed using
* RCU, i.e. access to the list and hash table is protected by RCU. * RCU, i.e. access to the list and hash table is protected by RCU.
* *
* Upon allocating a STA info structure with @sta_info_alloc() or * Upon allocating a STA info structure with sta_info_alloc() or
* mesh_plink_alloc(), the caller owns that structure. It must then either * mesh_plink_alloc(), the caller owns that structure. It must then either
* destroy it using @sta_info_destroy() (which is pretty useless) or insert * destroy it using sta_info_destroy() (which is pretty useless) or insert
* it into the hash table using @sta_info_insert() which demotes the reference * it into the hash table using sta_info_insert() which demotes the reference
* from ownership to a regular RCU-protected reference; if the function * from ownership to a regular RCU-protected reference; if the function
* is called without protection by an RCU critical section the reference * is called without protection by an RCU critical section the reference
* is instantly invalidated. * is instantly invalidated.
...@@ -42,19 +42,19 @@ ...@@ -42,19 +42,19 @@
* Because there are debugfs entries for each station, and adding those * Because there are debugfs entries for each station, and adding those
* must be able to sleep, it is also possible to "pin" a station entry, * must be able to sleep, it is also possible to "pin" a station entry,
* that means it can be removed from the hash table but not be freed. * that means it can be removed from the hash table but not be freed.
* See the comment in @__sta_info_unlink() for more information. * See the comment in __sta_info_unlink() for more information.
* *
* In order to remove a STA info structure, the caller needs to first * In order to remove a STA info structure, the caller needs to first
* unlink it (@sta_info_unlink()) from the list and hash tables and * unlink it (sta_info_unlink()) from the list and hash tables and
* then wait for an RCU synchronisation before it can be freed. Due to * then wait for an RCU synchronisation before it can be freed. Due to
* the pinning and the possibility of multiple callers trying to remove * the pinning and the possibility of multiple callers trying to remove
* the same STA info at the same time, @sta_info_unlink() can clear the * the same STA info at the same time, sta_info_unlink() can clear the
* STA info pointer it is passed to indicate that the STA info is owned * STA info pointer it is passed to indicate that the STA info is owned
* by somebody else now. * by somebody else now.
* *
* If @sta_info_unlink() did not clear the pointer then the caller owns * If sta_info_unlink() did not clear the pointer then the caller owns
* the STA info structure now and is responsible of destroying it with * the STA info structure now and is responsible of destroying it with
* a call to @sta_info_destroy(), not before RCU synchronisation, of * a call to sta_info_destroy(), not before RCU synchronisation, of
* course. Note that sta_info_destroy() must be protected by the RTNL. * course. Note that sta_info_destroy() must be protected by the RTNL.
* *
* In all other cases, there is no concept of ownership on a STA entry, * In all other cases, there is no concept of ownership on a STA entry,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment