@@ -144,7 +144,7 @@ const u8 dm_cck_tx_bb_gain_ch14[CCK_TX_BB_GAIN_TABLE_LEN][8] = {
144
144
/*------------------------Define global variable-----------------------------*/
145
145
struct dig_t dm_digtable ;
146
146
147
- struct drx_path_sel DM_RxPathSelTable ;
147
+ struct drx_path_sel dm_rx_path_sel_table ;
148
148
/*------------------------Define global variable-----------------------------*/
149
149
150
150
@@ -1720,7 +1720,7 @@ void rtl92e_dm_rf_pathcheck_wq(void *data)
1720
1720
else
1721
1721
priv -> brfpath_rxenable [i ] = false;
1722
1722
}
1723
- if (!DM_RxPathSelTable .enable )
1723
+ if (!dm_rx_path_sel_table .enable )
1724
1724
return ;
1725
1725
1726
1726
_rtl92e_dm_rx_path_sel_byrssi (dev );
@@ -1731,18 +1731,18 @@ static void _rtl92e_dm_init_rx_path_selection(struct net_device *dev)
1731
1731
u8 i ;
1732
1732
struct r8192_priv * priv = rtllib_priv (dev );
1733
1733
1734
- DM_RxPathSelTable .enable = 1 ;
1735
- DM_RxPathSelTable .ss_th_low = RX_PATH_SEL_SS_TH_LOW ;
1736
- DM_RxPathSelTable .diff_th = RX_PATH_SEL_DIFF_TH ;
1734
+ dm_rx_path_sel_table .enable = 1 ;
1735
+ dm_rx_path_sel_table .ss_th_low = RX_PATH_SEL_SS_TH_LOW ;
1736
+ dm_rx_path_sel_table .diff_th = RX_PATH_SEL_DIFF_TH ;
1737
1737
if (priv -> customer_id == RT_CID_819X_NETCORE )
1738
- DM_RxPathSelTable .cck_method = CCK_Rx_Version_2 ;
1738
+ dm_rx_path_sel_table .cck_method = CCK_Rx_Version_2 ;
1739
1739
else
1740
- DM_RxPathSelTable .cck_method = CCK_Rx_Version_1 ;
1741
- DM_RxPathSelTable .disabled_rf = 0 ;
1740
+ dm_rx_path_sel_table .cck_method = CCK_Rx_Version_1 ;
1741
+ dm_rx_path_sel_table .disabled_rf = 0 ;
1742
1742
for (i = 0 ; i < 4 ; i ++ ) {
1743
- DM_RxPathSelTable .rf_rssi [i ] = 50 ;
1744
- DM_RxPathSelTable .cck_pwdb_sta [i ] = -64 ;
1745
- DM_RxPathSelTable .rf_enable_rssi_th [i ] = 100 ;
1743
+ dm_rx_path_sel_table .rf_rssi [i ] = 50 ;
1744
+ dm_rx_path_sel_table .cck_pwdb_sta [i ] = -64 ;
1745
+ dm_rx_path_sel_table .rf_enable_rssi_th [i ] = 100 ;
1746
1746
}
1747
1747
}
1748
1748
@@ -1769,22 +1769,22 @@ static void _rtl92e_dm_rx_path_sel_byrssi(struct net_device *dev)
1769
1769
return ;
1770
1770
1771
1771
if (!cck_Rx_Path_initialized ) {
1772
- DM_RxPathSelTable .cck_rx_path = (rtl92e_readb (dev , 0xa07 )& 0xf );
1772
+ dm_rx_path_sel_table .cck_rx_path = (rtl92e_readb (dev , 0xa07 )& 0xf );
1773
1773
cck_Rx_Path_initialized = 1 ;
1774
1774
}
1775
1775
1776
- DM_RxPathSelTable .disabled_rf = 0xf ;
1777
- DM_RxPathSelTable .disabled_rf &= ~(rtl92e_readb (dev , 0xc04 ));
1776
+ dm_rx_path_sel_table .disabled_rf = 0xf ;
1777
+ dm_rx_path_sel_table .disabled_rf &= ~(rtl92e_readb (dev , 0xc04 ));
1778
1778
1779
1779
if (priv -> rtllib -> mode == WIRELESS_MODE_B )
1780
- DM_RxPathSelTable .cck_method = CCK_Rx_Version_2 ;
1780
+ dm_rx_path_sel_table .cck_method = CCK_Rx_Version_2 ;
1781
1781
1782
1782
for (i = 0 ; i < RF90_PATH_MAX ; i ++ ) {
1783
- DM_RxPathSelTable .rf_rssi [i ] = priv -> stats .rx_rssi_percentage [i ];
1783
+ dm_rx_path_sel_table .rf_rssi [i ] = priv -> stats .rx_rssi_percentage [i ];
1784
1784
1785
1785
if (priv -> brfpath_rxenable [i ]) {
1786
1786
rf_num ++ ;
1787
- cur_rf_rssi = DM_RxPathSelTable .rf_rssi [i ];
1787
+ cur_rf_rssi = dm_rx_path_sel_table .rf_rssi [i ];
1788
1788
1789
1789
if (rf_num == 1 ) {
1790
1790
max_rssi_index = min_rssi_index = sec_rssi_index = i ;
@@ -1832,12 +1832,12 @@ static void _rtl92e_dm_rx_path_sel_byrssi(struct net_device *dev)
1832
1832
}
1833
1833
1834
1834
rf_num = 0 ;
1835
- if (DM_RxPathSelTable .cck_method == CCK_Rx_Version_2 ) {
1835
+ if (dm_rx_path_sel_table .cck_method == CCK_Rx_Version_2 ) {
1836
1836
for (i = 0 ; i < RF90_PATH_MAX ; i ++ ) {
1837
1837
if (priv -> brfpath_rxenable [i ]) {
1838
1838
rf_num ++ ;
1839
1839
cur_cck_pwdb =
1840
- DM_RxPathSelTable .cck_pwdb_sta [i ];
1840
+ dm_rx_path_sel_table .cck_pwdb_sta [i ];
1841
1841
1842
1842
if (rf_num == 1 ) {
1843
1843
cck_rx_ver2_max_index = i ;
@@ -1894,25 +1894,25 @@ static void _rtl92e_dm_rx_path_sel_byrssi(struct net_device *dev)
1894
1894
}
1895
1895
1896
1896
update_cck_rx_path = 0 ;
1897
- if (DM_RxPathSelTable .cck_method == CCK_Rx_Version_2 ) {
1897
+ if (dm_rx_path_sel_table .cck_method == CCK_Rx_Version_2 ) {
1898
1898
cck_default_Rx = cck_rx_ver2_max_index ;
1899
1899
cck_optional_Rx = cck_rx_ver2_sec_index ;
1900
1900
if (tmp_cck_max_pwdb != -64 )
1901
1901
update_cck_rx_path = 1 ;
1902
1902
}
1903
1903
1904
- if (tmp_min_rssi < DM_RxPathSelTable .ss_th_low && disabled_rf_cnt < 2 ) {
1904
+ if (tmp_min_rssi < dm_rx_path_sel_table .ss_th_low && disabled_rf_cnt < 2 ) {
1905
1905
if ((tmp_max_rssi - tmp_min_rssi ) >=
1906
- DM_RxPathSelTable .diff_th ) {
1907
- DM_RxPathSelTable .rf_enable_rssi_th [min_rssi_index ] =
1906
+ dm_rx_path_sel_table .diff_th ) {
1907
+ dm_rx_path_sel_table .rf_enable_rssi_th [min_rssi_index ] =
1908
1908
tmp_max_rssi + 5 ;
1909
1909
rtl92e_set_bb_reg (dev , rOFDM0_TRxPathEnable ,
1910
1910
0x1 <<min_rssi_index , 0x0 );
1911
1911
rtl92e_set_bb_reg (dev , rOFDM1_TRxPathEnable ,
1912
1912
0x1 <<min_rssi_index , 0x0 );
1913
1913
disabled_rf_cnt ++ ;
1914
1914
}
1915
- if (DM_RxPathSelTable .cck_method == CCK_Rx_Version_1 ) {
1915
+ if (dm_rx_path_sel_table .cck_method == CCK_Rx_Version_1 ) {
1916
1916
cck_default_Rx = max_rssi_index ;
1917
1917
cck_optional_Rx = sec_rssi_index ;
1918
1918
if (tmp_max_rssi )
@@ -1921,24 +1921,24 @@ static void _rtl92e_dm_rx_path_sel_byrssi(struct net_device *dev)
1921
1921
}
1922
1922
1923
1923
if (update_cck_rx_path ) {
1924
- DM_RxPathSelTable .cck_rx_path = (cck_default_Rx <<2 ) |
1924
+ dm_rx_path_sel_table .cck_rx_path = (cck_default_Rx <<2 ) |
1925
1925
(cck_optional_Rx );
1926
1926
rtl92e_set_bb_reg (dev , rCCK0_AFESetting , 0x0f000000 ,
1927
- DM_RxPathSelTable .cck_rx_path );
1927
+ dm_rx_path_sel_table .cck_rx_path );
1928
1928
}
1929
1929
1930
- if (DM_RxPathSelTable .disabled_rf ) {
1930
+ if (dm_rx_path_sel_table .disabled_rf ) {
1931
1931
for (i = 0 ; i < 4 ; i ++ ) {
1932
- if ((DM_RxPathSelTable .disabled_rf >> i ) & 0x1 ) {
1932
+ if ((dm_rx_path_sel_table .disabled_rf >> i ) & 0x1 ) {
1933
1933
if (tmp_max_rssi >=
1934
- DM_RxPathSelTable .rf_enable_rssi_th [i ]) {
1934
+ dm_rx_path_sel_table .rf_enable_rssi_th [i ]) {
1935
1935
rtl92e_set_bb_reg (dev ,
1936
1936
rOFDM0_TRxPathEnable ,
1937
1937
0x1 << i , 0x1 );
1938
1938
rtl92e_set_bb_reg (dev ,
1939
1939
rOFDM1_TRxPathEnable ,
1940
1940
0x1 << i , 0x1 );
1941
- DM_RxPathSelTable .rf_enable_rssi_th [i ]
1941
+ dm_rx_path_sel_table .rf_enable_rssi_th [i ]
1942
1942
= 100 ;
1943
1943
disabled_rf_cnt -- ;
1944
1944
}
0 commit comments