Commit fbcaee1c authored by Taehee Yoo's avatar Taehee Yoo Committed by Kalle Valo

rtlwifi: rtl8192cu: remove INTF_PCI and INTF_USB

in the rtlwifi/rtl8192cu, INTF_PCI and INTF_USB is unnecessary.
because RTL8192CU chipset is only USB interface.
Signed-off-by: default avatarTaehee Yoo <ap420073@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 1d6b2fb1
...@@ -66,7 +66,6 @@ void rtl92cu_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw, ...@@ -66,7 +66,6 @@ void rtl92cu_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw,
{ {
struct rtl_priv *rtlpriv = rtl_priv(hw); struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_phy *rtlphy = &(rtlpriv->phy); struct rtl_phy *rtlphy = &(rtlpriv->phy);
struct rtl_hal *rtlhal = rtl_hal(rtlpriv);
struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw));
u32 tx_agc[2] = { 0, 0 }, tmpval = 0; u32 tx_agc[2] = { 0, 0 }, tmpval = 0;
...@@ -74,14 +73,8 @@ void rtl92cu_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw, ...@@ -74,14 +73,8 @@ void rtl92cu_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw,
u8 idx1, idx2; u8 idx1, idx2;
u8 *ptr; u8 *ptr;
if (rtlhal->interface == INTF_PCI) { if ((rtlefuse->eeprom_regulatory != 0) || (rtlefuse->external_pa))
if (rtlefuse->eeprom_regulatory != 0)
turbo_scanoff = true; turbo_scanoff = true;
} else {
if ((rtlefuse->eeprom_regulatory != 0) ||
(rtlefuse->external_pa))
turbo_scanoff = true;
}
if (mac->act_scanning) { if (mac->act_scanning) {
tx_agc[RF90_PATH_A] = 0x3f3f3f3f; tx_agc[RF90_PATH_A] = 0x3f3f3f3f;
tx_agc[RF90_PATH_B] = 0x3f3f3f3f; tx_agc[RF90_PATH_B] = 0x3f3f3f3f;
...@@ -90,12 +83,9 @@ void rtl92cu_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw, ...@@ -90,12 +83,9 @@ void rtl92cu_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw,
(ppowerlevel[idx1] << 8) | (ppowerlevel[idx1] << 8) |
(ppowerlevel[idx1] << 16) | (ppowerlevel[idx1] << 16) |
(ppowerlevel[idx1] << 24); (ppowerlevel[idx1] << 24);
if (rtlhal->interface == INTF_USB) { if (tx_agc[idx1] > 0x20 && rtlefuse->external_pa)
if (tx_agc[idx1] > 0x20 &&
rtlefuse->external_pa)
tx_agc[idx1] = 0x20; tx_agc[idx1] = 0x20;
} }
}
} else { } else {
if (rtlpriv->dm.dynamic_txhighpower_lvl == if (rtlpriv->dm.dynamic_txhighpower_lvl ==
TXHIGHPWRLEVEL_LEVEL1) { TXHIGHPWRLEVEL_LEVEL1) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment