Re: Bcm43xx oops after suspend to disk
From: Larry Finger
Date: Sun Feb 04 2007 - 22:19:44 EST
Rafael J. Wysocki wrote:
> On Sunday, 4 February 2007 18:42, Larry Finger wrote:
>> roucaries bastien wrote:
>>> Sorry for the delay it works. This time I can use iwlist eth scan.
>>> I have some difficulties to associate and I need to rmmod/modprobe in
>>> order to associate but it is another problem linked to a really weak
>>> power.
>> Bastien,
>>
>> Please try this patch instead.
>
> Hm, it doesn't seem to apply to the mainline version of the driver. Any chance
> for a fix against 2.6.20?
Please try this one. I forgot about some other stuff in my working copy of wireless-2.6.
Larry
============
Index: linux-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c
===================================================================
--- linux-2.6.orig/drivers/net/wireless/bcm43xx/bcm43xx_main.c
+++ linux-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c
@@ -3617,6 +3617,7 @@ error:
static int bcm43xx_init_board(struct bcm43xx_private *bcm)
{
int err;
+ struct bcm43xx_phyinfo *phy = bcm43xx_current_phy(bcm);
mutex_lock(&(bcm)->mutex);
@@ -3637,6 +3638,8 @@ static int bcm43xx_init_board(struct bcm
if (err)
goto err_sysfs_unreg;
bcm43xx_periodic_tasks_setup(bcm);
+ /* force initial LO calibration */
+ phy->lo_control->txctl2 = 0xFFFF;
/*FIXME: This should be handled by softmac instead. */
schedule_delayed_work(&bcm->softmac->associnfo.work, 0);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/