Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256192
b: refs/heads/master
c: eb8b27a
h: refs/heads/master
v: v3
  • Loading branch information
Larry Finger authored and John W. Linville committed Jul 5, 2011
1 parent c23d2f5 commit 2026681
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c2a7965f528244bc35f41ca64592132c7b3c2515
refs/heads/master: eb8b27ada953f8de182e628d71feff797707768a
20 changes: 7 additions & 13 deletions trunk/drivers/net/wireless/rtlwifi/rtl8192de/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ bool rtl92d_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
enum rf_content content,
enum radio_path rfpath)
{
int i, j;
int i;
u32 *radioa_array_table;
u32 *radiob_array_table;
u16 radioa_arraylen, radiob_arraylen;
Expand Down Expand Up @@ -974,13 +974,10 @@ bool rtl92d_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
mdelay(50);
} else if (radioa_array_table[i] == 0xfd) {
/* delay_ms(5); */
for (j = 0; j < 100; j++)
udelay(MAX_STALL_TIME);
mdelay(5);
} else if (radioa_array_table[i] == 0xfc) {
/* delay_ms(1); */
for (j = 0; j < 20; j++)
udelay(MAX_STALL_TIME);

mdelay(1);
} else if (radioa_array_table[i] == 0xfb) {
udelay(50);
} else if (radioa_array_table[i] == 0xfa) {
Expand All @@ -1004,12 +1001,10 @@ bool rtl92d_phy_config_rf_with_headerfile(struct ieee80211_hw *hw,
mdelay(50);
} else if (radiob_array_table[i] == 0xfd) {
/* delay_ms(5); */
for (j = 0; j < 100; j++)
udelay(MAX_STALL_TIME);
mdelay(5);
} else if (radiob_array_table[i] == 0xfc) {
/* delay_ms(1); */
for (j = 0; j < 20; j++)
udelay(MAX_STALL_TIME);
mdelay(1);
} else if (radiob_array_table[i] == 0xfb) {
udelay(50);
} else if (radiob_array_table[i] == 0xfa) {
Expand Down Expand Up @@ -1276,7 +1271,7 @@ static void rtl92d_phy_switch_wirelessband(struct ieee80211_hw *hw, u8 band)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
u8 i, value8;
u8 value8;

RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, ("==>\n"));
rtlhal->bandset = band;
Expand Down Expand Up @@ -1321,8 +1316,7 @@ static void rtl92d_phy_switch_wirelessband(struct ieee80211_hw *hw, u8 band)
rtl_write_byte(rtlpriv, (rtlhal->interfaceindex ==
0 ? REG_MAC0 : REG_MAC1), value8);
}
for (i = 0; i < 20; i++)
udelay(MAX_STALL_TIME);
mdelay(1);
RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, ("<==Switch Band OK.\n"));
}

Expand Down

0 comments on commit 2026681

Please sign in to comment.