/* CT-KILL constants */ #define CT_KILL_THRESHOLD_LEGACY 110 /* in Celsius */ #define CT_KILL_THRESHOLD 114 /* in Celsius */ #define CT_KILL_EXIT_THRESHOLD 95 /* in Celsius */
/* Default noise level to report when noise measurement is not available. * This may be because we're: * 1) Not associated no beacon statistics being sent to driver) * 2) Scanning (noise measurement does not apply to associated channel) * Use default noise value of -127 ... this is below the range of measurable * Rx dBm for all agn devices, so it can indicate "unmeasurable" to user. * Also, -127 works better than 0 when averaging frames with/without * noise info (e.g. averaging might be done in app); measured dBm values are * always negative ... using a negative value as the default keeps all
* averages within an s8's (used in some apps) range of negative values. */ #define IWL_NOISE_MEAS_NOT_AVAILABLE (-127)
/* * RTS threshold here is total size [2347] minus 4 FCS bytes * Per spec: * a value of 0 means RTS on all data/management packets * a value > max MSDU size means no RTS * else RTS for data/management frames where MPDU is larger * than RTS value.
*/ #define DEFAULT_RTS_THRESHOLD 2347U #define MIN_RTS_THRESHOLD 0U #define MAX_RTS_THRESHOLD 2347U #define MAX_MSDU_SIZE 2304U #define MAX_MPDU_SIZE 2346U #define DEFAULT_BEACON_INTERVAL 200U #define DEFAULT_SHORT_RETRY_LIMIT 7U #define DEFAULT_LONG_RETRY_LIMIT 4U
/** * enum iwl_agg_state - aggregation state * * The state machine of the BA agreement establishment / tear down. * These states relate to a specific RA / TID. * * @IWL_AGG_OFF: aggregation is not used * @IWL_AGG_STARTING: aggregation are starting (between start and oper) * @IWL_AGG_ON: aggregation session is up * @IWL_EMPTYING_HW_QUEUE_ADDBA: establishing a BA session - waiting for the * HW queue to be empty from packets for this RA /TID. * @IWL_EMPTYING_HW_QUEUE_DELBA: tearing down a BA session - waiting for the * HW queue to be empty from packets for this RA /TID.
*/ enum iwl_agg_state {
IWL_AGG_OFF = 0,
IWL_AGG_STARTING,
IWL_AGG_ON,
IWL_EMPTYING_HW_QUEUE_ADDBA,
IWL_EMPTYING_HW_QUEUE_DELBA,
};
/** * struct iwl_ht_agg - aggregation state machine * * This structs holds the states for the BA agreement establishment and tear * down. It also holds the state during the BA session itself. This struct is * duplicated for each RA / TID. * * @rate_n_flags: Rate at which Tx was attempted. Holds the data between the * Tx response (REPLY_TX), and the block ack notification * (REPLY_COMPRESSED_BA). * @state: state of the BA agreement establishment / tear down. * @txq_id: Tx queue used by the BA session * @ssn: the first packet to be sent in AGG HW queue in Tx AGG start flow, or * the first packet to be sent in legacy HW queue in Tx AGG stop flow. * Basically when next_reclaimed reaches ssn, we can tell mac80211 that * we are ready to finish the Tx AGG stop / start flow. * @wait_for_ba: Expect block-ack before next Tx reply
*/ struct iwl_ht_agg {
u32 rate_n_flags; enum iwl_agg_state state;
u16 txq_id;
u16 ssn; bool wait_for_ba;
};
/** * struct iwl_tid_data - one for each RA / TID * * This structs holds the states for each RA / TID. * * @seq_number: the next WiFi sequence number to use * @next_reclaimed: the WiFi sequence number of the next packet to be acked. * This is basically (last acked packet++). * @agg: aggregation state machine
*/ struct iwl_tid_data {
u16 seq_number;
u16 next_reclaimed; struct iwl_ht_agg agg;
};
/* * Structure should be accessed with sta_lock held. When station addition * is in progress (IWL_STA_UCODE_INPROGRESS) it is possible to access only * the commands (iwl_addsta_cmd and iwl_link_quality_cmd) without sta_lock * held.
*/ struct iwl_station_entry { struct iwl_addsta_cmd sta;
u8 used, ctxid; struct iwl_link_quality_cmd *lq;
};
/* * iwl_station_priv: Driver's private station information * * When mac80211 creates a station it reserves some space (hw->sta_data_size) * in the structure for use by driver. This structure is places in that * space.
*/ struct iwl_station_priv { struct iwl_rxon_context *ctx; struct iwl_lq_sta lq_sta;
atomic_t pending_frames; bool client; bool asleep;
u8 max_agg_bufsize;
u8 sta_id;
};
/* * struct iwl_vif_priv - driver's private per-interface information * * When mac80211 allocates a virtual interface, it can allocate * space for us to put data into.
*/ struct iwl_vif_priv { struct iwl_rxon_context *ctx;
u8 ibss_bssid_sta_id;
};
/****************************************************************************** * * Functions implemented in core module which are forward declared here * for use by iwl-[4-5].c * * NOTE: The implementation of these functions are not hardware specific * which is why they are in the core module files. * * Naming convention -- * iwl_ <-- Is part of iwlwifi * iwlXXXX_ <-- Hardware specific (implemented in iwl-XXXX.c for XXXX) *
****************************************************************************/ void iwl_update_chain_flags(struct iwl_priv *priv); externconst u8 iwl_bcast_addr[ETH_ALEN];
/* * schedule the timer to wake up every UCODE_TRACE_PERIOD milliseconds * to perform continuous uCode event logging operation if enabled
*/ #define UCODE_TRACE_PERIOD (10)
/* * iwl_event_log: current uCode event log position * * @ucode_trace: enable/disable ucode continuous trace timer * @num_wraps: how many times the event buffer wraps * @next_entry: the entry just before the next one that uCode would fill * @non_wraps_count: counter for no wrap detected when dump ucode events * @wraps_once_count: counter for wrap once detected when dump ucode events * @wraps_more_count: counter for wrap more than once detected * when dump ucode events
*/ struct iwl_event_log { bool ucode_trace;
u32 num_wraps;
u32 next_entry; int non_wraps_count; int wraps_once_count; int wraps_more_count;
};
/* * We could use the vif to indicate active, but we * also need it to be active during disabling when * we already removed the vif for type setting.
*/ bool always_active, is_active;
/* * We declare this const so it can only be * changed via explicit cast within the * routines that actually update the physical * hardware.
*/ conststruct iwl_rxon_cmd active; struct iwl_rxon_cmd staging;
/** * struct iwl_hw_params - HW parameters * * Holds the module parameters * * @tx_chains_num: Number of TX chains * @rx_chains_num: Number of RX chains * @ct_kill_threshold: temperature threshold - in hw dependent unit * @ct_kill_exit_threshold: when to reeable the device - in hw dependent unit * relevant for 1000, 6000 and up * @struct iwl_sensitivity_ranges: range of sensitivity values * @use_rts_for_aggregation: use rts/cts protection for HT traffic * @sens: sensitivity ranges pointer
*/ struct iwl_hw_params {
u8 tx_chains_num;
u8 rx_chains_num; bool use_rts_for_aggregation;
u32 ct_kill_threshold;
u32 ct_kill_exit_threshold;
conststruct iwl_sensitivity_ranges *sens;
};
/** * struct iwl_dvm_bt_params - DVM specific BT (coex) parameters * @advanced_bt_coexist: support advanced bt coexist * @bt_init_traffic_load: specify initial bt traffic load * @bt_prio_boost: default bt priority boost value * @agg_time_limit: maximum number of uSec in aggregation * @bt_sco_disable: uCode should not response to BT in SCO/ESCO mode * @bt_session_2: indicates version 2 of the BT command is used
*/ struct iwl_dvm_bt_params { bool advanced_bt_coexist;
u8 bt_init_traffic_load;
u32 bt_prio_boost;
u16 agg_time_limit; bool bt_sco_disable; bool bt_session_2;
};
/** * struct iwl_dvm_cfg - DVM firmware specific device configuration * @set_hw_params: set hardware parameters * @set_channel_switch: send channel switch command * @nic_config: apply device specific configuration * @temperature: read temperature * @adv_thermal_throttle: support advance thermal throttle * @support_ct_kill_exit: support ct kill exit condition * @plcp_delta_threshold: plcp error rate threshold used to trigger * radio tuning when there is a high receiving plcp error rate * @chain_noise_scale: default chain noise scale used for gain computation * @hd_v2: v2 of enhanced sensitivity value, used for 2000 series and up * @no_idle_support: do not support idle mode * @bt_params: pointer to BT parameters * @need_temp_offset_calib: need to perform temperature offset calibration * @no_xtal_calib: some devices do not need crystal calibration data, * don't send it to those * @temp_offset_v2: support v2 of temperature offset calibration * @adv_pm: advanced power management
*/ struct iwl_dvm_cfg { void (*set_hw_params)(struct iwl_priv *priv); int (*set_channel_switch)(struct iwl_priv *priv, struct ieee80211_channel_switch *ch_switch); void (*nic_config)(struct iwl_priv *priv); void (*temperature)(struct iwl_priv *priv);
/* * chain noise reset and gain commands are the * two extra calibration commands follows the standard * phy calibration commands
*/
u8 phy_calib_chain_noise_reset_cmd;
u8 phy_calib_chain_noise_gain_cmd;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.