aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/fw-api-power.h
diff options
context:
space:
mode:
authorLuca Coelho <luciano.coelho@intel.com>2016-09-12 09:03:30 -0400
committerLuca Coelho <luciano.coelho@intel.com>2016-09-26 16:15:14 -0400
commit4b87e5af638b6056bd6c20b0954d09a5a58633be (patch)
tree2baa984915add41770a7087e68ba266413f02706 /drivers/net/wireless/intel/iwlwifi/mvm/fw-api-power.h
parent7f66ea03644e197a29af5a00a6e26ff120d8edd0 (diff)
iwlwifi: remove support for fw older than -17 and -22
FW versions older than -17 for 3160 and 7260 and older than -22 for newer NICs are not supported anymore. Don't load these versions and remove code that handles them. Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/fw-api-power.h')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/fw-api-power.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw-api-power.h b/drivers/net/wireless/intel/iwlwifi/mvm/fw-api-power.h
index 404b0de9e2dc..3fa43d1348a2 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/fw-api-power.h
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw-api-power.h
@@ -313,35 +313,26 @@ enum iwl_dev_tx_power_cmd_mode {
313 IWL_TX_POWER_MODE_SET_ACK = 3, 313 IWL_TX_POWER_MODE_SET_ACK = 3,
314}; /* TX_POWER_REDUCED_FLAGS_TYPE_API_E_VER_4 */; 314}; /* TX_POWER_REDUCED_FLAGS_TYPE_API_E_VER_4 */;
315 315
316#define IWL_NUM_CHAIN_LIMITS 2
317#define IWL_NUM_SUB_BANDS 5
318
316/** 319/**
317 * struct iwl_dev_tx_power_cmd_v2 - TX power reduction command 320 * struct iwl_dev_tx_power_cmd - TX power reduction command
318 * @set_mode: see &enum iwl_dev_tx_power_cmd_mode 321 * @set_mode: see &enum iwl_dev_tx_power_cmd_mode
319 * @mac_context_id: id of the mac ctx for which we are reducing TX power. 322 * @mac_context_id: id of the mac ctx for which we are reducing TX power.
320 * @pwr_restriction: TX power restriction in 1/8 dBms. 323 * @pwr_restriction: TX power restriction in 1/8 dBms.
321 * @dev_24: device TX power restriction in 1/8 dBms 324 * @dev_24: device TX power restriction in 1/8 dBms
322 * @dev_52_low: device TX power restriction upper band - low 325 * @dev_52_low: device TX power restriction upper band - low
323 * @dev_52_high: device TX power restriction upper band - high 326 * @dev_52_high: device TX power restriction upper band - high
327 * @per_chain_restriction: per chain restrictions
324 */ 328 */
325struct iwl_dev_tx_power_cmd_v2 { 329struct iwl_dev_tx_power_cmd_v3 {
326 __le32 set_mode; 330 __le32 set_mode;
327 __le32 mac_context_id; 331 __le32 mac_context_id;
328 __le16 pwr_restriction; 332 __le16 pwr_restriction;
329 __le16 dev_24; 333 __le16 dev_24;
330 __le16 dev_52_low; 334 __le16 dev_52_low;
331 __le16 dev_52_high; 335 __le16 dev_52_high;
332} __packed; /* TX_REDUCED_POWER_API_S_VER_2 */
333
334#define IWL_NUM_CHAIN_LIMITS 2
335#define IWL_NUM_SUB_BANDS 5
336
337/**
338 * struct iwl_dev_tx_power_cmd - TX power reduction command
339 * @v2: version 2 of the command, embedded here for easier software handling
340 * @per_chain_restriction: per chain restrictions
341 */
342struct iwl_dev_tx_power_cmd_v3 {
343 /* v3 is just an extension of v2 - keep this here */
344 struct iwl_dev_tx_power_cmd_v2 v2;
345 __le16 per_chain_restriction[IWL_NUM_CHAIN_LIMITS][IWL_NUM_SUB_BANDS]; 336 __le16 per_chain_restriction[IWL_NUM_CHAIN_LIMITS][IWL_NUM_SUB_BANDS];
346} __packed; /* TX_REDUCED_POWER_API_S_VER_3 */ 337} __packed; /* TX_REDUCED_POWER_API_S_VER_3 */
347 338