Skip to contentSkip to conversation

ath5k: compilation fix for ARM

RFC PATCH In review Marc Pignat 2 participants 3 messages Sep 29, 2008 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 ath5k: compilation fix for ARM

ARM linux port does not handle udleay > 2000.

---

Best regards

Marc

patch against 2.6.27-rc7

drivers/net/wireless/ath5k/hw.c +1 -1
index ad1a5b4..f450ef9 100644
@@ -493,7 +493,7 @@ static int ath5k_hw_nic_wakeup(struct ath5k_hw *ah, int flags, bool initial)
 	}
 
 	if (ah->ah_version == AR5K_AR5210)
-		udelay(2300);
+		mdelay(3);
 
 	/* ...wakeup again!*/
 	ret = ath5k_hw_set_power(ah, AR5K_PM_AWAKE, true, 0);
drivers/net/wireless/ath5k/phy.c +1 -1
index fa0d47f..41f95e7 100644
@@ -2122,7 +2122,7 @@ static int ath5k_hw_rf5110_calibrate(struct ath5k_hw *ah,
 	beacon = ath5k_hw_reg_read(ah, AR5K_BEACON_5210);
 	ath5k_hw_reg_write(ah, beacon & ~AR5K_BEACON_ENABLE, AR5K_BEACON_5210);
 
-	udelay(2300);
+	mdelay(3);
 
 	/*
 	 * Set the channel (with AGC turned off)