Skip to content

Commit 57eeb20

Browse files
committed
mac80211: fix documentation warnings
For a few restructured text warnings in mac80211, making the documentation warning-free (for now). In order to not add trailing whitespace, but also not introduce too much noise into this change, move just the affected docs into inline comments. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent c6c94ae commit 57eeb20

1 file changed

Lines changed: 45 additions & 29 deletions

File tree

‎include/net/mac80211.h‎

Lines changed: 45 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,15 +1768,6 @@ struct ieee80211_sta_rates {
17681768
* @max_amsdu_subframes: indicates the maximal number of MSDUs in a single
17691769
* A-MSDU. Taken from the Extended Capabilities element. 0 means
17701770
* unlimited.
1771-
* @max_amsdu_len: indicates the maximal length of an A-MSDU in bytes. This
1772-
* field is always valid for packets with a VHT preamble. For packets
1773-
* with a HT preamble, additional limits apply:
1774-
* + If the skb is transmitted as part of a BA agreement, the
1775-
* A-MSDU maximal size is min(max_amsdu_len, 4065) bytes.
1776-
* + If the skb is not part of a BA aggreement, the A-MSDU maximal
1777-
* size is min(max_amsdu_len, 7935) bytes.
1778-
* Both additional HT limits must be enforced by the low level driver.
1779-
* This is defined by the spec (IEEE 802.11-2012 section 8.3.2.2 NOTE 2).
17801771
* @support_p2p_ps: indicates whether the STA supports P2P PS mechanism or not.
17811772
* @max_rc_amsdu_len: Maximum A-MSDU size in bytes recommended by rate control.
17821773
* @txq: per-TID data TX queues (if driver uses the TXQ abstraction)
@@ -1799,6 +1790,22 @@ struct ieee80211_sta {
17991790
bool tdls_initiator;
18001791
bool mfp;
18011792
u8 max_amsdu_subframes;
1793+
1794+
/**
1795+
* @max_amsdu_len:
1796+
* indicates the maximal length of an A-MSDU in bytes.
1797+
* This field is always valid for packets with a VHT preamble.
1798+
* For packets with a HT preamble, additional limits apply:
1799+
*
1800+
* * If the skb is transmitted as part of a BA agreement, the
1801+
* A-MSDU maximal size is min(max_amsdu_len, 4065) bytes.
1802+
* * If the skb is not part of a BA aggreement, the A-MSDU maximal
1803+
* size is min(max_amsdu_len, 7935) bytes.
1804+
*
1805+
* Both additional HT limits must be enforced by the low level
1806+
* driver. This is defined by the spec (IEEE 802.11-2012 section
1807+
* 8.3.2.2 NOTE 2).
1808+
*/
18021809
u16 max_amsdu_len;
18031810
bool support_p2p_ps;
18041811
u16 max_rc_amsdu_len;
@@ -3203,26 +3210,6 @@ enum ieee80211_reconfig_type {
32033210
* Returns non-zero if this device sent the last beacon.
32043211
* The callback can sleep.
32053212
*
3206-
* @ampdu_action: Perform a certain A-MPDU action
3207-
* The RA/TID combination determines the destination and TID we want
3208-
* the ampdu action to be performed for. The action is defined through
3209-
* ieee80211_ampdu_mlme_action.
3210-
* When the action is set to %IEEE80211_AMPDU_TX_OPERATIONAL the driver
3211-
* may neither send aggregates containing more subframes than @buf_size
3212-
* nor send aggregates in a way that lost frames would exceed the
3213-
* buffer size. If just limiting the aggregate size, this would be
3214-
* possible with a buf_size of 8:
3215-
* - TX: 1.....7
3216-
* - RX: 2....7 (lost frame #1)
3217-
* - TX: 8..1...
3218-
* which is invalid since #1 was now re-transmitted well past the
3219-
* buffer size of 8. Correct ways to retransmit #1 would be:
3220-
* - TX: 1 or 18 or 81
3221-
* Even "189" would be wrong since 1 could be lost again.
3222-
*
3223-
* Returns a negative error code on failure.
3224-
* The callback can sleep.
3225-
*
32263213
* @get_survey: Return per-channel survey information
32273214
*
32283215
* @rfkill_poll: Poll rfkill hardware state. If you need this, you also
@@ -3575,6 +3562,35 @@ struct ieee80211_ops {
35753562
s64 offset);
35763563
void (*reset_tsf)(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
35773564
int (*tx_last_beacon)(struct ieee80211_hw *hw);
3565+
3566+
/**
3567+
* @ampdu_action:
3568+
* Perform a certain A-MPDU action.
3569+
* The RA/TID combination determines the destination and TID we want
3570+
* the ampdu action to be performed for. The action is defined through
3571+
* ieee80211_ampdu_mlme_action.
3572+
* When the action is set to %IEEE80211_AMPDU_TX_OPERATIONAL the driver
3573+
* may neither send aggregates containing more subframes than @buf_size
3574+
* nor send aggregates in a way that lost frames would exceed the
3575+
* buffer size. If just limiting the aggregate size, this would be
3576+
* possible with a buf_size of 8:
3577+
*
3578+
* - ``TX: 1.....7``
3579+
* - ``RX: 2....7`` (lost frame #1)
3580+
* - ``TX: 8..1...``
3581+
*
3582+
* which is invalid since #1 was now re-transmitted well past the
3583+
* buffer size of 8. Correct ways to retransmit #1 would be:
3584+
*
3585+
* - ``TX: 1 or``
3586+
* - ``TX: 18 or``
3587+
* - ``TX: 81``
3588+
*
3589+
* Even ``189`` would be wrong since 1 could be lost again.
3590+
*
3591+
* Returns a negative error code on failure.
3592+
* The callback can sleep.
3593+
*/
35783594
int (*ampdu_action)(struct ieee80211_hw *hw,
35793595
struct ieee80211_vif *vif,
35803596
struct ieee80211_ampdu_params *params);

0 commit comments

Comments
 (0)