aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h44
1 files changed, 29 insertions, 15 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 72133368c1f..e84534c4d95 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -543,13 +543,12 @@ enum iwl_ucode_tlv_type {
543 * enum iwl_ucode_tlv_flag - ucode API flags 543 * enum iwl_ucode_tlv_flag - ucode API flags
544 * @IWL_UCODE_TLV_FLAGS_PAN: This is PAN capable microcode; this previously 544 * @IWL_UCODE_TLV_FLAGS_PAN: This is PAN capable microcode; this previously
545 * was a separate TLV but moved here to save space. 545 * was a separate TLV but moved here to save space.
546 * @IWL_UCODE_TLV_FLAGS_BTSTATS: This uCode image uses BT statistics, which 546 * @IWL_UCODE_TLV_FLAGS_RESERVED_1: reserved
547 * may be true even if the device doesn't have BT.
548 * @IWL_UCODE_TLV_FLAGS_MFP: This uCode image supports MFP (802.11w). 547 * @IWL_UCODE_TLV_FLAGS_MFP: This uCode image supports MFP (802.11w).
549 */ 548 */
550enum iwl_ucode_tlv_flag { 549enum iwl_ucode_tlv_flag {
551 IWL_UCODE_TLV_FLAGS_PAN = BIT(0), 550 IWL_UCODE_TLV_FLAGS_PAN = BIT(0),
552 IWL_UCODE_TLV_FLAGS_BTSTATS = BIT(1), 551 IWL_UCODE_TLV_FLAGS_RESERVED_1 = BIT(1),
553 IWL_UCODE_TLV_FLAGS_MFP = BIT(2), 552 IWL_UCODE_TLV_FLAGS_MFP = BIT(2),
554}; 553};
555 554
@@ -1170,6 +1169,8 @@ struct iwl_rxon_context {
1170 bool enabled, is_40mhz; 1169 bool enabled, is_40mhz;
1171 u8 extension_chan_offset; 1170 u8 extension_chan_offset;
1172 } ht; 1171 } ht;
1172
1173 bool last_tx_rejected;
1173}; 1174};
1174 1175
1175enum iwl_scan_type { 1176enum iwl_scan_type {
@@ -1355,6 +1356,31 @@ struct iwl_priv {
1355 u64 timestamp; 1356 u64 timestamp;
1356 1357
1357 struct { 1358 struct {
1359 __le32 flag;
1360 struct statistics_general_common common;
1361 struct statistics_rx_non_phy rx_non_phy;
1362 struct statistics_rx_phy rx_ofdm;
1363 struct statistics_rx_ht_phy rx_ofdm_ht;
1364 struct statistics_rx_phy rx_cck;
1365 struct statistics_tx tx;
1366#ifdef CONFIG_IWLWIFI_DEBUGFS
1367 struct statistics_bt_activity bt_activity;
1368 __le32 num_bt_kills, accum_num_bt_kills;
1369#endif
1370 } statistics;
1371#ifdef CONFIG_IWLWIFI_DEBUGFS
1372 struct {
1373 struct statistics_general_common common;
1374 struct statistics_rx_non_phy rx_non_phy;
1375 struct statistics_rx_phy rx_ofdm;
1376 struct statistics_rx_ht_phy rx_ofdm_ht;
1377 struct statistics_rx_phy rx_cck;
1378 struct statistics_tx tx;
1379 struct statistics_bt_activity bt_activity;
1380 } accum_stats, delta_stats, max_delta_stats;
1381#endif
1382
1383 struct {
1358 /* INT ICT Table */ 1384 /* INT ICT Table */
1359 __le32 *ict_tbl; 1385 __le32 *ict_tbl;
1360 void *ict_tbl_vir; 1386 void *ict_tbl_vir;
@@ -1385,19 +1411,9 @@ struct iwl_priv {
1385 u8 phy_calib_chain_noise_reset_cmd; 1411 u8 phy_calib_chain_noise_reset_cmd;
1386 u8 phy_calib_chain_noise_gain_cmd; 1412 u8 phy_calib_chain_noise_gain_cmd;
1387 1413
1388 struct iwl_notif_statistics statistics;
1389 struct iwl_bt_notif_statistics statistics_bt;
1390 /* counts reply_tx error */ 1414 /* counts reply_tx error */
1391 struct reply_tx_error_statistics reply_tx_stats; 1415 struct reply_tx_error_statistics reply_tx_stats;
1392 struct reply_agg_tx_error_statistics reply_agg_tx_stats; 1416 struct reply_agg_tx_error_statistics reply_agg_tx_stats;
1393#ifdef CONFIG_IWLWIFI_DEBUGFS
1394 struct iwl_notif_statistics accum_statistics;
1395 struct iwl_notif_statistics delta_statistics;
1396 struct iwl_notif_statistics max_delta;
1397 struct iwl_bt_notif_statistics accum_statistics_bt;
1398 struct iwl_bt_notif_statistics delta_statistics_bt;
1399 struct iwl_bt_notif_statistics max_delta_bt;
1400#endif
1401 /* notification wait support */ 1417 /* notification wait support */
1402 struct list_head notif_waits; 1418 struct list_head notif_waits;
1403 spinlock_t notif_wait_lock; 1419 spinlock_t notif_wait_lock;
@@ -1422,7 +1438,6 @@ struct iwl_priv {
1422 bool bt_ch_announce; 1438 bool bt_ch_announce;
1423 bool bt_full_concurrent; 1439 bool bt_full_concurrent;
1424 bool bt_ant_couple_ok; 1440 bool bt_ant_couple_ok;
1425 bool bt_statistics;
1426 __le32 kill_ack_mask; 1441 __le32 kill_ack_mask;
1427 __le32 kill_cts_mask; 1442 __le32 kill_cts_mask;
1428 __le16 bt_valid; 1443 __le16 bt_valid;
@@ -1487,7 +1502,6 @@ struct iwl_priv {
1487 struct work_struct txpower_work; 1502 struct work_struct txpower_work;
1488 u32 disable_sens_cal; 1503 u32 disable_sens_cal;
1489 u32 disable_chain_noise_cal; 1504 u32 disable_chain_noise_cal;
1490 u32 disable_tx_power_cal;
1491 struct work_struct run_time_calib_work; 1505 struct work_struct run_time_calib_work;
1492 struct timer_list statistics_periodic; 1506 struct timer_list statistics_periodic;
1493 struct timer_list ucode_trace; 1507 struct timer_list ucode_trace;