* [PATCH V2 2/3] rtlwifi: rtl8192cu: remove INTF_PCI and INTF_USB
@ 2015-06-04 9:11 Taehee Yoo
2015-06-04 15:21 ` Larry Finger
0 siblings, 1 reply; 3+ messages in thread
From: Taehee Yoo @ 2015-06-04 9:11 UTC (permalink / raw)
To: Larry.Finger; +Cc: ap420073, linux-wireless
in the rtlwifi/rtl8192cu, INTF_PCI and INTF_USB is unnecessary.
because RTL8192CU chipset is only USB interface.
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
---
Remove rtlhal to solve warning.
drivers/net/wireless/rtlwifi/rtl8192cu/rf.c | 18 ++++--------------
1 file changed, 4 insertions(+), 14 deletions(-)
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c b/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c
index b878d56..844f123 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192cu/rf.c
@@ -66,7 +66,6 @@ void rtl92cu_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw,
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_phy *rtlphy = &(rtlpriv->phy);
- struct rtl_hal *rtlhal = rtl_hal(rtlpriv);
struct rtl_mac *mac = rtl_mac(rtl_priv(hw));
struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw));
u32 tx_agc[2] = { 0, 0 }, tmpval = 0;
@@ -74,14 +73,8 @@ void rtl92cu_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw,
u8 idx1, idx2;
u8 *ptr;
- if (rtlhal->interface == INTF_PCI) {
- if (rtlefuse->eeprom_regulatory != 0)
- turbo_scanoff = true;
- } else {
- if ((rtlefuse->eeprom_regulatory != 0) ||
- (rtlefuse->external_pa))
- turbo_scanoff = true;
- }
+ if ((rtlefuse->eeprom_regulatory != 0) || (rtlefuse->external_pa))
+ turbo_scanoff = true;
if (mac->act_scanning) {
tx_agc[RF90_PATH_A] = 0x3f3f3f3f;
tx_agc[RF90_PATH_B] = 0x3f3f3f3f;
@@ -90,11 +83,8 @@ void rtl92cu_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw,
(ppowerlevel[idx1] << 8) |
(ppowerlevel[idx1] << 16) |
(ppowerlevel[idx1] << 24);
- if (rtlhal->interface == INTF_USB) {
- if (tx_agc[idx1] > 0x20 &&
- rtlefuse->external_pa)
- tx_agc[idx1] = 0x20;
- }
+ if (tx_agc[idx1] > 0x20 && rtlefuse->external_pa)
+ tx_agc[idx1] = 0x20;
}
} else {
if (rtlpriv->dm.dynamic_txhighpower_lvl ==
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH V2 2/3] rtlwifi: rtl8192cu: remove INTF_PCI and INTF_USB
2015-06-04 9:11 [PATCH V2 2/3] rtlwifi: rtl8192cu: remove INTF_PCI and INTF_USB Taehee Yoo
@ 2015-06-04 15:21 ` Larry Finger
2015-06-04 22:53 ` Taehee Yoo
0 siblings, 1 reply; 3+ messages in thread
From: Larry Finger @ 2015-06-04 15:21 UTC (permalink / raw)
To: Taehee Yoo; +Cc: linux-wireless
On 06/04/2015 04:11 AM, Taehee Yoo wrote:
> in the rtlwifi/rtl8192cu, INTF_PCI and INTF_USB is unnecessary.
> because RTL8192CU chipset is only USB interface.
>
> Signed-off-by: Taehee Yoo <ap420073@gmail.com>
> ---
> Remove rtlhal to solve warning.
I appreciate your cleanups of this driver, but please compile the source with
your patch *before* you submit. It is annoying to see V2 in my inbox before I
have even had a chance to look at V1!
Larry
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH V2 2/3] rtlwifi: rtl8192cu: remove INTF_PCI and INTF_USB
2015-06-04 15:21 ` Larry Finger
@ 2015-06-04 22:53 ` Taehee Yoo
0 siblings, 0 replies; 3+ messages in thread
From: Taehee Yoo @ 2015-06-04 22:53 UTC (permalink / raw)
To: Larry Finger; +Cc: linux-wireless@vger.kernel.org
2015-06-05 0:21 GMT+09:00 Larry Finger <Larry.Finger@lwfinger.net>:
> On 06/04/2015 04:11 AM, Taehee Yoo wrote:
>>
>> in the rtlwifi/rtl8192cu, INTF_PCI and INTF_USB is unnecessary.
>> because RTL8192CU chipset is only USB interface.
>>
>> Signed-off-by: Taehee Yoo <ap420073@gmail.com>
>> ---
>> Remove rtlhal to solve warning.
>
>
> I appreciate your cleanups of this driver, but please compile the source
> with your patch *before* you submit. It is annoying to see V2 in my inbox
> before I have even had a chance to look at V1!
>
> Larry
>
Apologize for my mistake. and Thank you for your feedback!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-06-04 22:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-04 9:11 [PATCH V2 2/3] rtlwifi: rtl8192cu: remove INTF_PCI and INTF_USB Taehee Yoo
2015-06-04 15:21 ` Larry Finger
2015-06-04 22:53 ` Taehee Yoo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).