commit 4e0919538e6d196584ec425483f06374f2c9f1db Author: Jiri Slaby Date: Sat Jun 23 15:01:49 2007 +0200 use mdelay diff --git a/openhal/ath5k_hw.c b/openhal/ath5k_hw.c index 9d0e883..2e88557 100644 --- a/openhal/ath5k_hw.c +++ b/openhal/ath5k_hw.c @@ -4700,7 +4700,7 @@ ath5k_hw_rf5110_channel(struct ath_hw *hal, struct ieee80211_channel *channel) data = ath5k_hw_rf5110_chan2athchan(channel); AR5K_PHY_WRITE(hal, 0x27, data); AR5K_PHY_WRITE(hal, 0x30, 0); - udelay(1000); + mdelay(1); return true; } @@ -4882,7 +4882,7 @@ ath5k_hw_rf5110_calibrate(struct ath_hw *hal, struct ieee80211_channel *channel) * Activate PHY and wait */ ath5k_hw_reg_write(hal, AR5K_PHY_ACT_ENABLE, AR5K_PHY_ACT); - udelay(1000); + mdelay(1); AGC_ENABLE; @@ -4918,7 +4918,7 @@ ath5k_hw_rf5110_calibrate(struct ath_hw *hal, struct ieee80211_channel *channel) ath5k_hw_reg_write(hal, AR5K_PHY_RFSTG_DISABLE, AR5K_PHY_RFSTG); AGC_ENABLE; - udelay(1000); + mdelay(1); /* * Enable calibration and wait until completion @@ -4956,7 +4956,7 @@ ath5k_hw_rf5110_calibrate(struct ath_hw *hal, struct ieee80211_channel *channel) /* Wait until the noise floor is calibrated */ for (i = 20; i > 0; i--) { - udelay(1000); + mdelay(1); noise_floor = ath5k_hw_reg_read(hal, AR5K_PHY_NF); if (AR5K_PHY_NF_RVAL(noise_floor) &