*Please check if timeout should be increased*
Signed-off-by: Amol Lad <[EMAIL PROTECTED]>
---
diff -uprN -X linux-2.6.19-rc1-orig/Documentation/dontdiff
linux-2.6.19-rc1-orig/drivers/net/wireless/hostap/hostap_hw.c
linux-2.6.19-rc1/drivers/net/wireless/hostap/hostap_hw.c
--- linux-2.6.19-rc1-orig/drivers/net/wireless/hostap/hostap_hw.c
2006-09-21 10:15:37.000000000 +0530
+++ linux-2.6.19-rc1/drivers/net/wireless/hostap/hostap_hw.c 2006-10-11
17:41:25.000000000 +0530
@@ -993,7 +993,7 @@ static u16 hfa384x_allocate_fid(struct n
delay = jiffies + HFA384X_ALLOC_COMPL_TIMEOUT;
while (!(HFA384X_INW(HFA384X_EVSTAT_OFF) & HFA384X_EV_ALLOC) &&
time_before(jiffies, delay))
- yield();
+ schedule_timeout_interruptible(1);
if (!(HFA384X_INW(HFA384X_EVSTAT_OFF) & HFA384X_EV_ALLOC)) {
printk("%s: fid allocate, len=%d - timeout\n", dev->name, len);
return 0xffff;
@@ -1333,7 +1333,7 @@ static int prism2_hw_init(struct net_dev
delay = jiffies + HFA384X_INIT_TIMEOUT;
while (!(HFA384X_INW(HFA384X_EVSTAT_OFF) & HFA384X_EV_CMD) &&
time_before(jiffies, delay))
- yield();
+ schedule_timeout_interruptible(1);
if (!(HFA384X_INW(HFA384X_EVSTAT_OFF) & HFA384X_EV_CMD)) {
printk(KERN_DEBUG "%s: assuming no Primary image in "
"flash - card initialization not completed\n",
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html