Skip to content

Commit 7d41946

Browse files
committed
mac80211: fix missing/malformed documentation
Fix the missing and malformed documentation that kernel-doc and sphinx warn about. While at it, also add some things to the docs to fix missing links. Sadly, the only way I could find to fix this was to add some trailing whitespace. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 9874b71 commit 7d41946

File tree

3 files changed

+57
-8
lines changed

3 files changed

+57
-8
lines changed

Documentation/driver-api/80211/mac80211.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ functions/definitions
125125
.. kernel-doc:: include/net/mac80211.h
126126
:functions: ieee80211_rx_status
127127

128+
.. kernel-doc:: include/net/mac80211.h
129+
:functions: mac80211_rx_encoding_flags
130+
128131
.. kernel-doc:: include/net/mac80211.h
129132
:functions: mac80211_rx_flags
130133

include/net/mac80211.h

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -942,8 +942,32 @@ ieee80211_rate_get_vht_nss(const struct ieee80211_tx_rate *rate)
942942
* @band: the band to transmit on (use for checking for races)
943943
* @hw_queue: HW queue to put the frame on, skb_get_queue_mapping() gives the AC
944944
* @ack_frame_id: internal frame ID for TX status, used internally
945-
* @control: union for control data
946-
* @status: union for status data
945+
* @control: union part for control data
946+
* @control.rates: TX rates array to try
947+
* @control.rts_cts_rate_idx: rate for RTS or CTS
948+
* @control.use_rts: use RTS
949+
* @control.use_cts_prot: use RTS/CTS
950+
* @control.short_preamble: use short preamble (CCK only)
951+
* @control.skip_table: skip externally configured rate table
952+
* @control.jiffies: timestamp for expiry on powersave clients
953+
* @control.vif: virtual interface (may be NULL)
954+
* @control.hw_key: key to encrypt with (may be NULL)
955+
* @control.flags: control flags, see &enum mac80211_tx_control_flags
956+
* @control.enqueue_time: enqueue time (for iTXQs)
957+
* @driver_rates: alias to @control.rates to reserve space
958+
* @pad: padding
959+
* @rate_driver_data: driver use area if driver needs @control.rates
960+
* @status: union part for status data
961+
* @status.rates: attempted rates
962+
* @status.ack_signal: ACK signal
963+
* @status.ampdu_ack_len: AMPDU ack length
964+
* @status.ampdu_len: AMPDU length
965+
* @status.antenna: (legacy, kept only for iwlegacy)
966+
* @status.tx_time: airtime consumed for transmission
967+
* @status.is_valid_ack_signal: ACK signal is valid
968+
* @status.status_driver_data: driver use area
969+
* @ack: union part for pure ACK data
970+
* @ack.cookie: cookie for the ACK
947971
* @driver_data: array of driver_data pointers
948972
* @ampdu_ack_len: number of acked aggregated frames.
949973
* relevant only if IEEE80211_TX_STAT_AMPDU was set.
@@ -1163,13 +1187,15 @@ ieee80211_tx_info_clear_status(struct ieee80211_tx_info *info)
11631187
* @RX_FLAG_AMPDU_EOF_BIT_KNOWN: The EOF value is known
11641188
* @RX_FLAG_RADIOTAP_HE: HE radiotap data is present
11651189
* (&struct ieee80211_radiotap_he, mac80211 will fill in
1190+
*
11661191
* - DATA3_DATA_MCS
11671192
* - DATA3_DATA_DCM
11681193
* - DATA3_CODING
11691194
* - DATA5_GI
11701195
* - DATA5_DATA_BW_RU_ALLOC
11711196
* - DATA6_NSTS
11721197
* - DATA3_STBC
1198+
*
11731199
* from the RX info data, so leave those zeroed when building this data)
11741200
* @RX_FLAG_RADIOTAP_HE_MU: HE MU radiotap data is present
11751201
* (&struct ieee80211_radiotap_he_mu)
@@ -1220,7 +1246,7 @@ enum mac80211_rx_flags {
12201246
* @RX_ENC_FLAG_HT_GF: This frame was received in a HT-greenfield transmission,
12211247
* if the driver fills this value it should add
12221248
* %IEEE80211_RADIOTAP_MCS_HAVE_FMT
1223-
* to hw.radiotap_mcs_details to advertise that fact
1249+
* to @hw.radiotap_mcs_details to advertise that fact.
12241250
* @RX_ENC_FLAG_LDPC: LDPC was used
12251251
* @RX_ENC_FLAG_STBC_MASK: STBC 2 bit bitmask. 1 - Nss=1, 2 - Nss=2, 3 - Nss=3
12261252
* @RX_ENC_FLAG_BF: packet was beamformed
@@ -2333,12 +2359,14 @@ enum ieee80211_hw_flags {
23332359
* @radiotap_he: HE radiotap validity flags
23342360
*
23352361
* @radiotap_timestamp: Information for the radiotap timestamp field; if the
2336-
* 'units_pos' member is set to a non-negative value it must be set to
2337-
* a combination of a IEEE80211_RADIOTAP_TIMESTAMP_UNIT_* and a
2338-
* IEEE80211_RADIOTAP_TIMESTAMP_SPOS_* value, and then the timestamp
2362+
* @units_pos member is set to a non-negative value then the timestamp
23392363
* field will be added and populated from the &struct ieee80211_rx_status
2340-
* device_timestamp. If the 'accuracy' member is non-negative, it's put
2341-
* into the accuracy radiotap field and the accuracy known flag is set.
2364+
* device_timestamp.
2365+
* @radiotap_timestamp.units_pos: Must be set to a combination of a
2366+
* IEEE80211_RADIOTAP_TIMESTAMP_UNIT_* and a
2367+
* IEEE80211_RADIOTAP_TIMESTAMP_SPOS_* value.
2368+
* @radiotap_timestamp.accuracy: If non-negative, fills the accuracy in the
2369+
* radiotap field and the accuracy known flag will be set.
23422370
*
23432371
* @netdev_features: netdev features to be set in each netdev created
23442372
* from this HW. Note that not all features are usable with mac80211,

net/mac80211/sta_info.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,28 @@ struct ieee80211_sta_rx_stats {
497497
* @tdls_chandef: a TDLS peer can have a wider chandef that is compatible to
498498
* the BSS one.
499499
* @tx_stats: TX statistics
500+
* @tx_stats.packets: # of packets transmitted
501+
* @tx_stats.bytes: # of bytes in all packets transmitted
502+
* @tx_stats.last_rate: last TX rate
503+
* @tx_stats.msdu: # of transmitted MSDUs per TID
500504
* @rx_stats: RX statistics
505+
* @rx_stats_avg: averaged RX statistics
506+
* @rx_stats_avg.signal: averaged signal
507+
* @rx_stats_avg.chain_signal: averaged per-chain signal
501508
* @pcpu_rx_stats: per-CPU RX statistics, assigned only if the driver needs
502509
* this (by advertising the USES_RSS hw flag)
503510
* @status_stats: TX status statistics
511+
* @status_stats.filtered: # of filtered frames
512+
* @status_stats.retry_failed: # of frames that failed after retry
513+
* @status_stats.retry_count: # of retries attempted
514+
* @status_stats.lost_packets: # of lost packets
515+
* @status_stats.last_tdls_pkt_time: timestamp of last TDLS packet
516+
* @status_stats.msdu_retries: # of MSDU retries
517+
* @status_stats.msdu_failed: # of failed MSDUs
518+
* @status_stats.last_ack: last ack timestamp (jiffies)
519+
* @status_stats.last_ack_signal: last ACK signal
520+
* @status_stats.ack_signal_filled: last ACK signal validity
521+
* @status_stats.avg_ack_signal: average ACK signal
504522
*/
505523
struct sta_info {
506524
/* General information, mostly static */

0 commit comments

Comments
 (0)