]> Pileus Git - ~andy/linux/blobdiff - drivers/net/wireless/ath/ath10k/core.h
Merge tag 'for-linus-3.12-merge' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~andy/linux] / drivers / net / wireless / ath / ath10k / core.h
index 9f21ecb239d72fd3454c009bdcfce7288efc490b..e4bba563ed4273613e58332e45c4146c04818516 100644 (file)
@@ -38,6 +38,7 @@
 #define ATH10K_SCAN_ID 0
 #define WMI_READY_TIMEOUT (5 * HZ)
 #define ATH10K_FLUSH_TIMEOUT_HZ (5*HZ)
+#define ATH10K_NUM_CHANS 38
 
 /* Antenna noise floor */
 #define ATH10K_DEFAULT_NOISE_FLOOR -95
@@ -285,6 +286,7 @@ struct ath10k {
        u32 hw_max_tx_power;
        u32 ht_cap_info;
        u32 vht_cap_info;
+       u32 num_rf_chains;
 
        struct targetdef *targetdef;
        struct hostdef *hostdef;
@@ -374,6 +376,12 @@ struct ath10k {
 
        struct work_struct restart_work;
 
+       /* cycle count is reported twice for each visited channel during scan.
+        * access protected by data_lock */
+       u32 survey_last_rx_clear_count;
+       u32 survey_last_cycle_count;
+       struct survey_info survey[ATH10K_NUM_CHANS];
+
 #ifdef CONFIG_ATH10K_DEBUGFS
        struct ath10k_debug debug;
 #endif