Commit e110bf0c authored by Johannes Berg's avatar Johannes Berg

wifi: iwlwifi: mvm: fix kernel-doc

Fix kernel-doc, adding various documentation, but in some
cases (notably rate scaling) just removing the erroneous
comment format.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarGregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230830112059.4ce1159b51ab.I2021ae335f6b8e50ee2c1c78a79c5eac1c1aa103@changeidSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 221e290b
...@@ -127,9 +127,9 @@ struct iwl_mvm_time_event_data { ...@@ -127,9 +127,9 @@ struct iwl_mvm_time_event_data {
/** /**
* enum iwl_power_scheme * enum iwl_power_scheme
* @IWL_POWER_LEVEL_CAM - Continuously Active Mode * @IWL_POWER_SCHEME_CAM: Continuously Active Mode
* @IWL_POWER_LEVEL_BPS - Balanced Power Save (default) * @IWL_POWER_SCHEME_BPS: Balanced Power Save (default)
* @IWL_POWER_LEVEL_LP - Low Power * @IWL_POWER_SCHEME_LP: Low Power
*/ */
enum iwl_power_scheme { enum iwl_power_scheme {
IWL_POWER_SCHEME_CAM = 1, IWL_POWER_SCHEME_CAM = 1,
...@@ -302,7 +302,11 @@ struct iwl_probe_resp_data { ...@@ -302,7 +302,11 @@ struct iwl_probe_resp_data {
* @queue_params: QoS params for this MAC * @queue_params: QoS params for this MAC
* @mgmt_queue: queue number for unbufferable management frames * @mgmt_queue: queue number for unbufferable management frames
* @igtk: the current IGTK programmed into the firmware * @igtk: the current IGTK programmed into the firmware
* @active: indicates the link is active in FW (for sanity checking)
* @cab_queue: content-after-beacon (multicast) queue
* @listen_lmac: indicates this link is allocated to the listen LMAC * @listen_lmac: indicates this link is allocated to the listen LMAC
* @mcast_sta: multicast station
* @phy_ctxt: phy context allocated to this link, if any
*/ */
struct iwl_mvm_vif_link_info { struct iwl_mvm_vif_link_info {
u8 bssid[ETH_ALEN]; u8 bssid[ETH_ALEN];
...@@ -342,6 +346,7 @@ struct iwl_mvm_vif_link_info { ...@@ -342,6 +346,7 @@ struct iwl_mvm_vif_link_info {
/** /**
* struct iwl_mvm_vif - data per Virtual Interface, it is a MAC context * struct iwl_mvm_vif - data per Virtual Interface, it is a MAC context
* @mvm: pointer back to the mvm struct
* @id: between 0 and 3 * @id: between 0 and 3
* @color: to solve races upon MAC addition and removal * @color: to solve races upon MAC addition and removal
* @associated: indicates that we're currently associated, used only for * @associated: indicates that we're currently associated, used only for
...@@ -364,6 +369,13 @@ struct iwl_mvm_vif_link_info { ...@@ -364,6 +369,13 @@ struct iwl_mvm_vif_link_info {
* @csa_failed: CSA failed to schedule time event, report an error later * @csa_failed: CSA failed to schedule time event, report an error later
* @csa_bcn_pending: indicates that we are waiting for a beacon on a new channel * @csa_bcn_pending: indicates that we are waiting for a beacon on a new channel
* @features: hw features active for this vif * @features: hw features active for this vif
* @ap_beacon_time: AP beacon time for synchronisation (on older FW)
* @bcn_prot: beacon protection data (keys; FIXME: needs to be per link)
* @bf_data: beacon filtering data
* @deflink: default link data for use in non-MLO
* @link: link data for each link in MLO
* @esr_active: indicates eSR mode is active
* @pm_enabled: indicates powersave is enabled
*/ */
struct iwl_mvm_vif { struct iwl_mvm_vif {
struct iwl_mvm *mvm; struct iwl_mvm *mvm;
...@@ -689,15 +701,17 @@ __aligned(roundup_pow_of_two(sizeof(struct _iwl_mvm_reorder_buf_entry))) ...@@ -689,15 +701,17 @@ __aligned(roundup_pow_of_two(sizeof(struct _iwl_mvm_reorder_buf_entry)))
* struct iwl_mvm_baid_data - BA session data * struct iwl_mvm_baid_data - BA session data
* @sta_mask: current station mask for the BAID * @sta_mask: current station mask for the BAID
* @tid: tid of the session * @tid: tid of the session
* @baid baid of the session * @baid: baid of the session
* @timeout: the timeout set in the addba request * @timeout: the timeout set in the addba request
* @entries_per_queue: # of buffers per queue, this actually gets * @entries_per_queue: # of buffers per queue, this actually gets
* aligned up to avoid cache line sharing between queues * aligned up to avoid cache line sharing between queues
* @last_rx: last rx jiffies, updated only if timeout passed from last update * @last_rx: last rx jiffies, updated only if timeout passed from last update
* @session_timer: timer to check if BA session expired, runs at 2 * timeout * @session_timer: timer to check if BA session expired, runs at 2 * timeout
* @rcu_ptr: BA data RCU protected access
* @rcu_head: RCU head for freeing this data
* @mvm: mvm pointer, needed for timer context * @mvm: mvm pointer, needed for timer context
* @reorder_buf: reorder buffer, allocated per queue * @reorder_buf: reorder buffer, allocated per queue
* @reorder_buf_data: data * @entries: data
*/ */
struct iwl_mvm_baid_data { struct iwl_mvm_baid_data {
struct rcu_head rcu_head; struct rcu_head rcu_head;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright(c) 2015 Intel Mobile Communications GmbH * Copyright(c) 2015 Intel Mobile Communications GmbH
* Copyright(c) 2017 Intel Deutschland GmbH * Copyright(c) 2017 Intel Deutschland GmbH
* Copyright (C) 2003 - 2014, 2018 - 2022 Intel Corporation * Copyright (C) 2003 - 2014, 2018 - 2023 Intel Corporation
*****************************************************************************/ *****************************************************************************/
#ifndef __rs_h__ #ifndef __rs_h__
...@@ -203,18 +203,12 @@ struct rs_rate { ...@@ -203,18 +203,12 @@ struct rs_rate {
/** /**
* struct iwl_lq_sta_rs_fw - rate and related statistics for RS in FW * struct iwl_lq_sta_rs_fw - rate and related statistics for RS in FW
* @last_rate_n_flags: last rate reported by FW * @last_rate_n_flags: last rate reported by FW
* @max_agg_bufsize: the maximal size of the AGG buffer for this station * @pers.sta_id: the id of the station
* @sta_id: the id of the station
#ifdef CONFIG_MAC80211_DEBUGFS
* @dbg_fixed_rate: for debug, use fixed rate if not 0
* @dbg_agg_frame_count_lim: for debug, max number of frames in A-MPDU
#endif
* @chains: bitmask of chains reported in %chain_signal * @chains: bitmask of chains reported in %chain_signal
* @chain_signal: per chain signal strength * @chain_signal: per chain signal strength
* @last_rssi: last rssi reported * @last_rssi: last rssi reported
* @drv: pointer back to the driver data * @drv: pointer back to the driver data
*/ */
struct iwl_lq_sta_rs_fw { struct iwl_lq_sta_rs_fw {
/* last tx rate_n_flags */ /* last tx rate_n_flags */
u32 last_rate_n_flags; u32 last_rate_n_flags;
...@@ -223,7 +217,14 @@ struct iwl_lq_sta_rs_fw { ...@@ -223,7 +217,14 @@ struct iwl_lq_sta_rs_fw {
struct lq_sta_pers_rs_fw { struct lq_sta_pers_rs_fw {
u32 sta_id; u32 sta_id;
#ifdef CONFIG_MAC80211_DEBUGFS #ifdef CONFIG_MAC80211_DEBUGFS
/**
* @dbg_fixed_rate: for debug, use fixed rate if not 0
*/
u32 dbg_fixed_rate; u32 dbg_fixed_rate;
/**
* @dbg_agg_frame_count_lim: for debug, max number of
* frames in A-MPDU
*/
u16 dbg_agg_frame_count_lim; u16 dbg_agg_frame_count_lim;
#endif #endif
u8 chains; u8 chains;
...@@ -233,7 +234,7 @@ struct iwl_lq_sta_rs_fw { ...@@ -233,7 +234,7 @@ struct iwl_lq_sta_rs_fw {
} pers; } pers;
}; };
/** /*
* struct iwl_rate_scale_data -- tx success history for one rate * struct iwl_rate_scale_data -- tx success history for one rate
*/ */
struct iwl_rate_scale_data { struct iwl_rate_scale_data {
...@@ -275,7 +276,7 @@ struct rs_rate_stats { ...@@ -275,7 +276,7 @@ struct rs_rate_stats {
u64 total; u64 total;
}; };
/** /*
* struct iwl_scale_tbl_info -- tx params and success history for all rates * struct iwl_scale_tbl_info -- tx params and success history for all rates
* *
* There are two of these in struct iwl_lq_sta, * There are two of these in struct iwl_lq_sta,
...@@ -296,7 +297,7 @@ enum { ...@@ -296,7 +297,7 @@ enum {
RS_STATE_STAY_IN_COLUMN, RS_STATE_STAY_IN_COLUMN,
}; };
/** /*
* struct iwl_lq_sta -- driver's rate scaling private structure * struct iwl_lq_sta -- driver's rate scaling private structure
* *
* Pointer to this gets passed back and forth between driver and mac80211. * Pointer to this gets passed back and forth between driver and mac80211.
......
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
/* /*
* Copyright (C) 2012-2014, 2018-2022 Intel Corporation * Copyright (C) 2012-2014, 2018-2023 Intel Corporation
* Copyright (C) 2013-2014 Intel Mobile Communications GmbH * Copyright (C) 2013-2014 Intel Mobile Communications GmbH
* Copyright (C) 2015-2016 Intel Deutschland GmbH * Copyright (C) 2015-2016 Intel Deutschland GmbH
*/ */
...@@ -356,6 +356,7 @@ struct iwl_mvm_link_sta { ...@@ -356,6 +356,7 @@ struct iwl_mvm_link_sta {
/** /**
* struct iwl_mvm_sta - representation of a station in the driver * struct iwl_mvm_sta - representation of a station in the driver
* @vif: the interface the station belongs to
* @tfd_queue_msk: the tfd queues used by the station * @tfd_queue_msk: the tfd queues used by the station
* @mac_id_n_color: the MAC context this station is linked to * @mac_id_n_color: the MAC context this station is linked to
* @tid_disable_agg: bitmap: if bit(tid) is set, the fw won't send ampdus for * @tid_disable_agg: bitmap: if bit(tid) is set, the fw won't send ampdus for
...@@ -380,6 +381,7 @@ struct iwl_mvm_link_sta { ...@@ -380,6 +381,7 @@ struct iwl_mvm_link_sta {
* @amsdu_enabled: bitmap of TX AMSDU allowed TIDs. * @amsdu_enabled: bitmap of TX AMSDU allowed TIDs.
* In case TLC offload is not active it is either 0xFFFF or 0. * In case TLC offload is not active it is either 0xFFFF or 0.
* @max_amsdu_len: max AMSDU length * @max_amsdu_len: max AMSDU length
* @sleeping: indicates the station is sleeping (when not offloaded to FW)
* @agg_tids: bitmap of tids whose status is operational aggregated (IWL_AGG_ON) * @agg_tids: bitmap of tids whose status is operational aggregated (IWL_AGG_ON)
* @sleeping: sta sleep transitions in power management * @sleeping: sta sleep transitions in power management
* @sleep_tx_count: the number of frames that we told the firmware to let out * @sleep_tx_count: the number of frames that we told the firmware to let out
...@@ -389,7 +391,6 @@ struct iwl_mvm_link_sta { ...@@ -389,7 +391,6 @@ struct iwl_mvm_link_sta {
* the BA window. To be used for UAPSD only. * the BA window. To be used for UAPSD only.
* @ptk_pn: per-queue PTK PN data structures * @ptk_pn: per-queue PTK PN data structures
* @dup_data: per queue duplicate packet detection data * @dup_data: per queue duplicate packet detection data
* @deferred_traffic_tid_map: indication bitmap of deferred traffic per-TID
* @tx_ant: the index of the antenna to use for data tx to this station. Only * @tx_ant: the index of the antenna to use for data tx to this station. Only
* used during connection establishment (e.g. for the 4 way handshake * used during connection establishment (e.g. for the 4 way handshake
* exchange). * exchange).
......
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
/* /*
* Copyright (C) 2012-2014, 2019-2020 Intel Corporation * Copyright (C) 2012-2014, 2019-2020, 2023 Intel Corporation
* Copyright (C) 2013-2014 Intel Mobile Communications GmbH * Copyright (C) 2013-2014 Intel Mobile Communications GmbH
*/ */
#ifndef __time_event_h__ #ifndef __time_event_h__
...@@ -134,7 +134,7 @@ void iwl_mvm_stop_roc(struct iwl_mvm *mvm, struct ieee80211_vif *vif); ...@@ -134,7 +134,7 @@ void iwl_mvm_stop_roc(struct iwl_mvm *mvm, struct ieee80211_vif *vif);
/** /**
* iwl_mvm_remove_time_event - general function to clean up of time event * iwl_mvm_remove_time_event - general function to clean up of time event
* @mvm: the mvm component * @mvm: the mvm component
* @vif: the vif to which the time event belongs * @mvmvif: the vif to which the time event belongs
* @te_data: the time event data that corresponds to that time event * @te_data: the time event data that corresponds to that time event
* *
* This function can be used to cancel a time event regardless its type. * This function can be used to cancel a time event regardless its type.
...@@ -195,7 +195,8 @@ iwl_mvm_te_scheduled(struct iwl_mvm_time_event_data *te_data) ...@@ -195,7 +195,8 @@ iwl_mvm_te_scheduled(struct iwl_mvm_time_event_data *te_data)
* iwl_mvm_schedule_session_protection - schedule a session protection * iwl_mvm_schedule_session_protection - schedule a session protection
* @mvm: the mvm component * @mvm: the mvm component
* @vif: the virtual interface for which the protection issued * @vif: the virtual interface for which the protection issued
* @duration: the duration of the protection * @duration: the requested duration of the protection
* @min_duration: the minimum duration of the protection
* @wait_for_notif: if true, will block until the start of the protection * @wait_for_notif: if true, will block until the start of the protection
*/ */
void iwl_mvm_schedule_session_protection(struct iwl_mvm *mvm, void iwl_mvm_schedule_session_protection(struct iwl_mvm *mvm,
...@@ -205,6 +206,8 @@ void iwl_mvm_schedule_session_protection(struct iwl_mvm *mvm, ...@@ -205,6 +206,8 @@ void iwl_mvm_schedule_session_protection(struct iwl_mvm *mvm,
/** /**
* iwl_mvm_rx_session_protect_notif - handles %SESSION_PROTECTION_NOTIF * iwl_mvm_rx_session_protect_notif - handles %SESSION_PROTECTION_NOTIF
* @mvm: the mvm component
* @rxb: the RX buffer containing the notification
*/ */
void iwl_mvm_rx_session_protect_notif(struct iwl_mvm *mvm, void iwl_mvm_rx_session_protect_notif(struct iwl_mvm *mvm,
struct iwl_rx_cmd_buffer *rxb); struct iwl_rx_cmd_buffer *rxb);
......
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