diff options
author | Christian Lamparter <chunkeey@googlemail.com> | 2010-12-26 12:22:16 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-04 14:35:13 -0500 |
commit | 3b386510f49ff5c6e6ac1001da4f3c922ae7de3f (patch) | |
tree | f5a7a7ba2e76c860db676b95f873dfaa3fb886ca /drivers/net/wireless | |
parent | c9e57f0fdccf74ef7884fed61d212e524b9c4bcd (diff) |
carl9170: reduce channel change delay
By removing two "safety" msleeps (and an echo nop), the
channel change delay is effectively halved. Previously,
the delay could be as long as 260 ms and the device
could not go off-channel without risking to miss the
next DTIM beacon [interval ~307 ms].
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/carl9170/phy.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/wireless/ath/carl9170/phy.c b/drivers/net/wireless/ath/carl9170/phy.c index 122e75ee8eff..b6b0de600506 100644 --- a/drivers/net/wireless/ath/carl9170/phy.c +++ b/drivers/net/wireless/ath/carl9170/phy.c | |||
@@ -1029,8 +1029,6 @@ static int carl9170_init_rf_bank4_pwr(struct ar9170 *ar, bool band5ghz, | |||
1029 | if (err) | 1029 | if (err) |
1030 | return err; | 1030 | return err; |
1031 | 1031 | ||
1032 | msleep(20); | ||
1033 | |||
1034 | return 0; | 1032 | return 0; |
1035 | } | 1033 | } |
1036 | 1034 | ||
@@ -1660,12 +1658,6 @@ int carl9170_set_channel(struct ar9170 *ar, struct ieee80211_channel *channel, | |||
1660 | return err; | 1658 | return err; |
1661 | 1659 | ||
1662 | cmd = CARL9170_CMD_RF_INIT; | 1660 | cmd = CARL9170_CMD_RF_INIT; |
1663 | |||
1664 | msleep(100); | ||
1665 | |||
1666 | err = carl9170_echo_test(ar, 0xaabbccdd); | ||
1667 | if (err) | ||
1668 | return err; | ||
1669 | } else { | 1661 | } else { |
1670 | cmd = CARL9170_CMD_FREQUENCY; | 1662 | cmd = CARL9170_CMD_FREQUENCY; |
1671 | } | 1663 | } |