rtlwifi: Move dig_t and ps_t structs
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 19 Apr 2012 21:32:39 +0000 (16:32 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 23 Apr 2012 19:35:32 +0000 (15:35 -0400)
Move struct definitions for dig_t and ps_t to the common header file.

This move is needed to convert these structures from a "per-driver" to a
"per-interface" basis.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.h
drivers/net/wireless/rtlwifi/rtl8192ce/dm.h
drivers/net/wireless/rtlwifi/rtl8192de/dm.h
drivers/net/wireless/rtlwifi/rtl8192se/dm.h
drivers/net/wireless/rtlwifi/wifi.h

index 2178e3761883f831d381b9fbe850c37800a427bd..b3180ea5aa310e0e327448e9326097e06106d316 100644 (file)
 #define TX_POWER_NEAR_FIELD_THRESH_LVL2                74
 #define TX_POWER_NEAR_FIELD_THRESH_LVL1                67
 
-struct ps_t {
-       u8 pre_ccastate;
-       u8 cur_ccasate;
-       u8 pre_rfstate;
-       u8 cur_rfstate;
-       long rssi_val_min;
-};
-
-struct dig_t {
-       u8 dig_enable_flag;
-       u8 dig_ext_port_stage;
-       u32 rssi_lowthresh;
-       u32 rssi_highthresh;
-       u32 fa_lowthresh;
-       u32 fa_highthresh;
-       u8 cursta_connectctate;
-       u8 presta_connectstate;
-       u8 curmultista_connectstate;
-       u8 pre_igvalue;
-       u8 cur_igvalue;
-       char backoff_val;
-       char backoff_val_range_max;
-       char backoff_val_range_min;
-       u8 rx_gain_range_max;
-       u8 rx_gain_range_min;
-       u8 rssi_val_min;
-       u8 pre_cck_pd_state;
-       u8 cur_cck_pd_state;
-       u8 pre_cck_fa_state;
-       u8 cur_cck_fa_state;
-       u8 pre_ccastate;
-       u8 cur_ccasate;
-};
-
 struct swat_t {
        u8 failure_cnt;
        u8 try_flag;
index 26747fa8600507042ee3f3d7cbac169431b7457c..56611d7049b4be1059dc24ca1186ddcb0ab5bae7 100644 (file)
 #define TX_POWER_NEAR_FIELD_THRESH_LVL2                74
 #define TX_POWER_NEAR_FIELD_THRESH_LVL1                67
 
-struct ps_t {
-       u8 pre_ccastate;
-       u8 cur_ccasate;
-       u8 pre_rfstate;
-       u8 cur_rfstate;
-       long rssi_val_min;
-};
-
-struct dig_t {
-       u8 dig_enable_flag;
-       u8 dig_ext_port_stage;
-       u32 rssi_lowthresh;
-       u32 rssi_highthresh;
-       u32 fa_lowthresh;
-       u32 fa_highthresh;
-       u8 cursta_connectctate;
-       u8 presta_connectstate;
-       u8 curmultista_connectstate;
-       u8 pre_igvalue;
-       u8 cur_igvalue;
-       char backoff_val;
-       char backoff_val_range_max;
-       char backoff_val_range_min;
-       u8 rx_gain_range_max;
-       u8 rx_gain_range_min;
-       u8 rssi_val_min;
-       u8 pre_cck_pd_state;
-       u8 cur_cck_pd_state;
-       u8 pre_cck_fa_state;
-       u8 cur_cck_fa_state;
-       u8 pre_ccastate;
-       u8 cur_ccasate;
-};
-
 struct swat_t {
        u8 failure_cnt;
        u8 try_flag;
index 91030ec8ac3e9e2eef67ea9913ffb8e9a3d5e8d9..7ede6a787ab385fa65afa3bbc5933f13caebe2fc 100644 (file)
 #define TX_POWER_NEAR_FIELD_THRESH_LVL1                67
 #define INDEX_MAPPING_NUM                      13
 
-struct ps_t {
-       u8 pre_ccastate;
-       u8 cur_ccasate;
-
-       u8 pre_rfstate;
-       u8 cur_rfstate;
-
-       long rssi_val_min;
-};
-
-struct dig_t {
-       u8 dig_enable_flag;
-       u8 dig_ext_port_stage;
-
-       u32 rssi_lowthresh;
-       u32 rssi_highthresh;
-
-       u32 fa_lowthresh;
-       u32 fa_highthresh;
-
-       u8 cursta_connectctate;
-       u8 presta_connectstate;
-       u8 curmultista_connectstate;
-
-       u8 pre_igvalue;
-       u8 cur_igvalue;
-
-       char backoff_val;
-       char backoff_val_range_max;
-       char backoff_val_range_min;
-       u8 rx_gain_range_max;
-       u8 rx_gain_range_min;
-       u8 min_undecorated_pwdb_for_dm;
-       long last_min_undecorated_pwdb_for_dm;
-
-       u8 pre_cck_pd_state;
-       u8 cur_cck_pd_state;
-
-       u8 pre_cck_fa_state;
-       u8 cur_cck_fa_state;
-
-       u8 pre_ccastate;
-       u8 cur_ccasate;
-
-       u8 large_fa_hit;
-       u8 forbidden_igi;
-       u32 recover_cnt;
-};
-
 struct swat {
        u8 failure_cnt;
        u8 try_flag;
index e1b19a64176584731f018ff6c926588872d44c7b..f8ace730f99fa67e69b5e4a7fb2b32f4943252f5 100644 (file)
 #ifndef        __RTL_92S_DM_H__
 #define __RTL_92S_DM_H__
 
-struct dig_t {
-       u8 dig_enable_flag;
-       u8 dig_algorithm;
-       u8 dig_twoport_algorithm;
-       u8 dig_ext_port_stage;
-       u8 dig_dbgmode;
-       u8 dig_slgorithm_switch;
-
-       long rssi_lowthresh;
-       long rssi_highthresh;
-
-       u32 fa_lowthresh;
-       u32 fa_highthresh;
-
-       long rssi_highpower_lowthresh;
-       long rssi_highpower_highthresh;
-
-       u8 dig_state;
-       u8 dig_highpwrstate;
-       u8 cur_sta_connectstate;
-       u8 pre_sta_connectstate;
-       u8 cur_ap_connectstate;
-       u8 pre_ap_connectstate;
-
-       u8 cur_pd_thstate;
-       u8 pre_pd_thstate;
-       u8 cur_cs_ratiostate;
-       u8 pre_cs_ratiostate;
-
-       u32 pre_igvalue;
-       u32     cur_igvalue;
-
-       u8 backoff_enable_flag;
-       char backoff_val;
-       char backoffval_range_max;
-       char backoffval_range_min;
-       u8 rx_gain_range_max;
-       u8 rx_gain_range_min;
-
-       long rssi_val;
-};
-
 enum dm_dig_alg {
        DIG_ALGO_BY_FALSE_ALARM = 0,
        DIG_ALGO_BY_RSSI        = 1,
index 52139880309932a9213cdc858f27cd4d577cb48a..32df6bd740a7f5b04d3dc2181053b874ba0a2394 100644 (file)
@@ -1592,6 +1592,65 @@ struct rtl_debug {
        char proc_name[20];
 };
 
+struct ps_t {
+       u8 pre_ccastate;
+       u8 cur_ccasate;
+       u8 pre_rfstate;
+       u8 cur_rfstate;
+       long rssi_val_min;
+};
+
+struct dig_t {
+       u32 rssi_lowthresh;
+       u32 rssi_highthresh;
+       u32 fa_lowthresh;
+       u32 fa_highthresh;
+       long last_min_undecorated_pwdb_for_dm;
+       long rssi_highpower_lowthresh;
+       long rssi_highpower_highthresh;
+       u32 recover_cnt;
+       u32 pre_igvalue;
+       u32 cur_igvalue;
+       long rssi_val;
+       u8 dig_enable_flag;
+       u8 dig_ext_port_stage;
+       u8 dig_algorithm;
+       u8 dig_twoport_algorithm;
+       u8 dig_dbgmode;
+       u8 dig_slgorithm_switch;
+       u8 cursta_connectctate;
+       u8 presta_connectstate;
+       u8 curmultista_connectstate;
+       char backoff_val;
+       char backoff_val_range_max;
+       char backoff_val_range_min;
+       u8 rx_gain_range_max;
+       u8 rx_gain_range_min;
+       u8 min_undecorated_pwdb_for_dm;
+       u8 rssi_val_min;
+       u8 pre_cck_pd_state;
+       u8 cur_cck_pd_state;
+       u8 pre_cck_fa_state;
+       u8 cur_cck_fa_state;
+       u8 pre_ccastate;
+       u8 cur_ccasate;
+       u8 large_fa_hit;
+       u8 forbidden_igi;
+       u8 dig_state;
+       u8 dig_highpwrstate;
+       u8 cur_sta_connectstate;
+       u8 pre_sta_connectstate;
+       u8 cur_ap_connectstate;
+       u8 pre_ap_connectstate;
+       u8 cur_pd_thstate;
+       u8 pre_pd_thstate;
+       u8 cur_cs_ratiostate;
+       u8 pre_cs_ratiostate;
+       u8 backoff_enable_flag;
+       char backoffval_range_max;
+       char backoffval_range_min;
+};
+
 struct rtl_priv {
        struct completion firmware_loading_complete;
        struct rtl_locks locks;