aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-08-18 11:44:36 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-08-24 16:32:04 -0400
commit2a5fb7b088f8418958775774dda9427d6c73c522 (patch)
tree8636210464e45eea32025d685ddeb367f595b6a0
parent633dd1ea683d907af944bcd9814092efe9869b05 (diff)
nl80211: some documentation fixes
The nl80211 documentation is currently never generated, so problems have accumulated. Fix most of the trivial ones. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--include/linux/nl80211.h57
1 files changed, 46 insertions, 11 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index 8af1e66c3cf9..ec1690da7845 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -347,6 +347,8 @@
347 * four bytes for vendor frames including the OUI. The registration 347 * four bytes for vendor frames including the OUI. The registration
348 * cannot be dropped, but is removed automatically when the netlink 348 * cannot be dropped, but is removed automatically when the netlink
349 * socket is closed. Multiple registrations can be made. 349 * socket is closed. Multiple registrations can be made.
350 * @NL80211_CMD_REGISTER_ACTION: Alias for @NL80211_CMD_REGISTER_FRAME for
351 * backward compatibility
350 * @NL80211_CMD_FRAME: Management frame TX request and RX notification. This 352 * @NL80211_CMD_FRAME: Management frame TX request and RX notification. This
351 * command is used both as a request to transmit a management frame and 353 * command is used both as a request to transmit a management frame and
352 * as an event indicating reception of a frame that was not processed in 354 * as an event indicating reception of a frame that was not processed in
@@ -359,11 +361,14 @@
359 * operational channel). When called, this operation returns a cookie 361 * operational channel). When called, this operation returns a cookie
360 * (%NL80211_ATTR_COOKIE) that will be included with the TX status event 362 * (%NL80211_ATTR_COOKIE) that will be included with the TX status event
361 * pertaining to the TX request. 363 * pertaining to the TX request.
364 * @NL80211_CMD_ACTION: Alias for @NL80211_CMD_FRAME for backward compatibility.
362 * @NL80211_CMD_FRAME_TX_STATUS: Report TX status of a management frame 365 * @NL80211_CMD_FRAME_TX_STATUS: Report TX status of a management frame
363 * transmitted with %NL80211_CMD_FRAME. %NL80211_ATTR_COOKIE identifies 366 * transmitted with %NL80211_CMD_FRAME. %NL80211_ATTR_COOKIE identifies
364 * the TX command and %NL80211_ATTR_FRAME includes the contents of the 367 * the TX command and %NL80211_ATTR_FRAME includes the contents of the
365 * frame. %NL80211_ATTR_ACK flag is included if the recipient acknowledged 368 * frame. %NL80211_ATTR_ACK flag is included if the recipient acknowledged
366 * the frame. 369 * the frame.
370 * @NL80211_CMD_ACTION_TX_STATUS: Alias for @NL80211_CMD_FRAME_TX_STATUS for
371 * backward compatibility.
367 * @NL80211_CMD_SET_CQM: Connection quality monitor configuration. This command 372 * @NL80211_CMD_SET_CQM: Connection quality monitor configuration. This command
368 * is used to configure connection quality monitoring notification trigger 373 * is used to configure connection quality monitoring notification trigger
369 * levels. 374 * levels.
@@ -1029,11 +1034,14 @@ enum nl80211_iftype {
1029 * Station flags. When a station is added to an AP interface, it is 1034 * Station flags. When a station is added to an AP interface, it is
1030 * assumed to be already associated (and hence authenticated.) 1035 * assumed to be already associated (and hence authenticated.)
1031 * 1036 *
1037 * @__NL80211_STA_FLAG_INVALID: attribute number 0 is reserved
1032 * @NL80211_STA_FLAG_AUTHORIZED: station is authorized (802.1X) 1038 * @NL80211_STA_FLAG_AUTHORIZED: station is authorized (802.1X)
1033 * @NL80211_STA_FLAG_SHORT_PREAMBLE: station is capable of receiving frames 1039 * @NL80211_STA_FLAG_SHORT_PREAMBLE: station is capable of receiving frames
1034 * with short barker preamble 1040 * with short barker preamble
1035 * @NL80211_STA_FLAG_WME: station is WME/QoS capable 1041 * @NL80211_STA_FLAG_WME: station is WME/QoS capable
1036 * @NL80211_STA_FLAG_MFP: station uses management frame protection 1042 * @NL80211_STA_FLAG_MFP: station uses management frame protection
1043 * @NL80211_STA_FLAG_MAX: highest station flag number currently defined
1044 * @__NL80211_STA_FLAG_AFTER_LAST: internal use
1037 */ 1045 */
1038enum nl80211_sta_flags { 1046enum nl80211_sta_flags {
1039 __NL80211_STA_FLAG_INVALID, 1047 __NL80211_STA_FLAG_INVALID,
@@ -1146,14 +1154,17 @@ enum nl80211_mpath_flags {
1146 * information about a mesh path. 1154 * information about a mesh path.
1147 * 1155 *
1148 * @__NL80211_MPATH_INFO_INVALID: attribute number 0 is reserved 1156 * @__NL80211_MPATH_INFO_INVALID: attribute number 0 is reserved
1149 * @NL80211_ATTR_MPATH_FRAME_QLEN: number of queued frames for this destination 1157 * @NL80211_MPATH_INFO_FRAME_QLEN: number of queued frames for this destination
1150 * @NL80211_ATTR_MPATH_SN: destination sequence number 1158 * @NL80211_MPATH_INFO_SN: destination sequence number
1151 * @NL80211_ATTR_MPATH_METRIC: metric (cost) of this mesh path 1159 * @NL80211_MPATH_INFO_METRIC: metric (cost) of this mesh path
1152 * @NL80211_ATTR_MPATH_EXPTIME: expiration time for the path, in msec from now 1160 * @NL80211_MPATH_INFO_EXPTIME: expiration time for the path, in msec from now
1153 * @NL80211_ATTR_MPATH_FLAGS: mesh path flags, enumerated in 1161 * @NL80211_MPATH_INFO_FLAGS: mesh path flags, enumerated in
1154 * &enum nl80211_mpath_flags; 1162 * &enum nl80211_mpath_flags;
1155 * @NL80211_ATTR_MPATH_DISCOVERY_TIMEOUT: total path discovery timeout, in msec 1163 * @NL80211_MPATH_INFO_DISCOVERY_TIMEOUT: total path discovery timeout, in msec
1156 * @NL80211_ATTR_MPATH_DISCOVERY_RETRIES: mesh path discovery retries 1164 * @NL80211_MPATH_INFO_DISCOVERY_RETRIES: mesh path discovery retries
1165 * @NL80211_MPATH_INFO_MAX: highest mesh path information attribute number
1166 * currently defind
1167 * @__NL80211_MPATH_INFO_AFTER_LAST: internal use
1157 */ 1168 */
1158enum nl80211_mpath_info { 1169enum nl80211_mpath_info {
1159 __NL80211_MPATH_INFO_INVALID, 1170 __NL80211_MPATH_INFO_INVALID,
@@ -1182,6 +1193,8 @@ enum nl80211_mpath_info {
1182 * @NL80211_BAND_ATTR_HT_CAPA: HT capabilities, as in the HT information IE 1193 * @NL80211_BAND_ATTR_HT_CAPA: HT capabilities, as in the HT information IE
1183 * @NL80211_BAND_ATTR_HT_AMPDU_FACTOR: A-MPDU factor, as in 11n 1194 * @NL80211_BAND_ATTR_HT_AMPDU_FACTOR: A-MPDU factor, as in 11n
1184 * @NL80211_BAND_ATTR_HT_AMPDU_DENSITY: A-MPDU density, as in 11n 1195 * @NL80211_BAND_ATTR_HT_AMPDU_DENSITY: A-MPDU density, as in 11n
1196 * @NL80211_BAND_ATTR_MAX: highest band attribute currently defined
1197 * @__NL80211_BAND_ATTR_AFTER_LAST: internal use
1185 */ 1198 */
1186enum nl80211_band_attr { 1199enum nl80211_band_attr {
1187 __NL80211_BAND_ATTR_INVALID, 1200 __NL80211_BAND_ATTR_INVALID,
@@ -1202,6 +1215,7 @@ enum nl80211_band_attr {
1202 1215
1203/** 1216/**
1204 * enum nl80211_frequency_attr - frequency attributes 1217 * enum nl80211_frequency_attr - frequency attributes
1218 * @__NL80211_FREQUENCY_ATTR_INVALID: attribute number 0 is reserved
1205 * @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz 1219 * @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz
1206 * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current 1220 * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current
1207 * regulatory domain. 1221 * regulatory domain.
@@ -1213,6 +1227,9 @@ enum nl80211_band_attr {
1213 * on this channel in current regulatory domain. 1227 * on this channel in current regulatory domain.
1214 * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm 1228 * @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm
1215 * (100 * dBm). 1229 * (100 * dBm).
1230 * @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number
1231 * currently defined
1232 * @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use
1216 */ 1233 */
1217enum nl80211_frequency_attr { 1234enum nl80211_frequency_attr {
1218 __NL80211_FREQUENCY_ATTR_INVALID, 1235 __NL80211_FREQUENCY_ATTR_INVALID,
@@ -1232,9 +1249,13 @@ enum nl80211_frequency_attr {
1232 1249
1233/** 1250/**
1234 * enum nl80211_bitrate_attr - bitrate attributes 1251 * enum nl80211_bitrate_attr - bitrate attributes
1252 * @__NL80211_BITRATE_ATTR_INVALID: attribute number 0 is reserved
1235 * @NL80211_BITRATE_ATTR_RATE: Bitrate in units of 100 kbps 1253 * @NL80211_BITRATE_ATTR_RATE: Bitrate in units of 100 kbps
1236 * @NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE: Short preamble supported 1254 * @NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE: Short preamble supported
1237 * in 2.4 GHz band. 1255 * in 2.4 GHz band.
1256 * @NL80211_BITRATE_ATTR_MAX: highest bitrate attribute number
1257 * currently defined
1258 * @__NL80211_BITRATE_ATTR_AFTER_LAST: internal use
1238 */ 1259 */
1239enum nl80211_bitrate_attr { 1260enum nl80211_bitrate_attr {
1240 __NL80211_BITRATE_ATTR_INVALID, 1261 __NL80211_BITRATE_ATTR_INVALID,
@@ -1290,6 +1311,7 @@ enum nl80211_reg_type {
1290 1311
1291/** 1312/**
1292 * enum nl80211_reg_rule_attr - regulatory rule attributes 1313 * enum nl80211_reg_rule_attr - regulatory rule attributes
1314 * @__NL80211_REG_RULE_ATTR_INVALID: attribute number 0 is reserved
1293 * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional 1315 * @NL80211_ATTR_REG_RULE_FLAGS: a set of flags which specify additional
1294 * considerations for a given frequency range. These are the 1316 * considerations for a given frequency range. These are the
1295 * &enum nl80211_reg_rule_flags. 1317 * &enum nl80211_reg_rule_flags.
@@ -1306,6 +1328,9 @@ enum nl80211_reg_type {
1306 * If you don't have one then don't send this. 1328 * If you don't have one then don't send this.
1307 * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for 1329 * @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for
1308 * a given frequency range. The value is in mBm (100 * dBm). 1330 * a given frequency range. The value is in mBm (100 * dBm).
1331 * @NL80211_REG_RULE_ATTR_MAX: highest regulatory rule attribute number
1332 * currently defined
1333 * @__NL80211_REG_RULE_ATTR_AFTER_LAST: internal use
1309 */ 1334 */
1310enum nl80211_reg_rule_attr { 1335enum nl80211_reg_rule_attr {
1311 __NL80211_REG_RULE_ATTR_INVALID, 1336 __NL80211_REG_RULE_ATTR_INVALID,
@@ -1357,6 +1382,9 @@ enum nl80211_reg_rule_flags {
1357 * @__NL80211_SURVEY_INFO_INVALID: attribute number 0 is reserved 1382 * @__NL80211_SURVEY_INFO_INVALID: attribute number 0 is reserved
1358 * @NL80211_SURVEY_INFO_FREQUENCY: center frequency of channel 1383 * @NL80211_SURVEY_INFO_FREQUENCY: center frequency of channel
1359 * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm) 1384 * @NL80211_SURVEY_INFO_NOISE: noise level of channel (u8, dBm)
1385 * @NL80211_SURVEY_INFO_MAX: highest survey info attribute number
1386 * currently defined
1387 * @__NL80211_SURVEY_INFO_AFTER_LAST: internal use
1360 */ 1388 */
1361enum nl80211_survey_info { 1389enum nl80211_survey_info {
1362 __NL80211_SURVEY_INFO_INVALID, 1390 __NL80211_SURVEY_INFO_INVALID,
@@ -1521,6 +1549,7 @@ enum nl80211_channel_type {
1521 * enum nl80211_bss - netlink attributes for a BSS 1549 * enum nl80211_bss - netlink attributes for a BSS
1522 * 1550 *
1523 * @__NL80211_BSS_INVALID: invalid 1551 * @__NL80211_BSS_INVALID: invalid
1552 * @NL80211_BSS_BSSID: BSSID of the BSS (6 octets)
1524 * @NL80211_BSS_FREQUENCY: frequency in MHz (u32) 1553 * @NL80211_BSS_FREQUENCY: frequency in MHz (u32)
1525 * @NL80211_BSS_TSF: TSF of the received probe response/beacon (u64) 1554 * @NL80211_BSS_TSF: TSF of the received probe response/beacon (u64)
1526 * @NL80211_BSS_BEACON_INTERVAL: beacon interval of the (I)BSS (u16) 1555 * @NL80211_BSS_BEACON_INTERVAL: beacon interval of the (I)BSS (u16)
@@ -1564,6 +1593,12 @@ enum nl80211_bss {
1564 1593
1565/** 1594/**
1566 * enum nl80211_bss_status - BSS "status" 1595 * enum nl80211_bss_status - BSS "status"
1596 * @NL80211_BSS_STATUS_AUTHENTICATED: Authenticated with this BSS.
1597 * @NL80211_BSS_STATUS_ASSOCIATED: Associated with this BSS.
1598 * @NL80211_BSS_STATUS_IBSS_JOINED: Joined to this IBSS.
1599 *
1600 * The BSS status is a BSS attribute in scan dumps, which
1601 * indicates the status the interface has wrt. this BSS.
1567 */ 1602 */
1568enum nl80211_bss_status { 1603enum nl80211_bss_status {
1569 NL80211_BSS_STATUS_AUTHENTICATED, 1604 NL80211_BSS_STATUS_AUTHENTICATED,
@@ -1674,8 +1709,8 @@ enum nl80211_tx_rate_attributes {
1674 1709
1675/** 1710/**
1676 * enum nl80211_band - Frequency band 1711 * enum nl80211_band - Frequency band
1677 * @NL80211_BAND_2GHZ - 2.4 GHz ISM band 1712 * @NL80211_BAND_2GHZ: 2.4 GHz ISM band
1678 * @NL80211_BAND_5GHZ - around 5 GHz band (4.9 - 5.7 GHz) 1713 * @NL80211_BAND_5GHZ: around 5 GHz band (4.9 - 5.7 GHz)
1679 */ 1714 */
1680enum nl80211_band { 1715enum nl80211_band {
1681 NL80211_BAND_2GHZ, 1716 NL80211_BAND_2GHZ,
@@ -1713,9 +1748,9 @@ enum nl80211_attr_cqm {
1713 1748
1714/** 1749/**
1715 * enum nl80211_cqm_rssi_threshold_event - RSSI threshold event 1750 * enum nl80211_cqm_rssi_threshold_event - RSSI threshold event
1716 * @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW - The RSSI level is lower than the 1751 * @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW: The RSSI level is lower than the
1717 * configured threshold 1752 * configured threshold
1718 * @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH - The RSSI is higher than the 1753 * @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH: The RSSI is higher than the
1719 * configured threshold 1754 * configured threshold
1720 */ 1755 */
1721enum nl80211_cqm_rssi_threshold_event { 1756enum nl80211_cqm_rssi_threshold_event {