diff options
author | Michael Buesch <mb@bu3sch.de> | 2009-03-31 12:27:32 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-16 10:39:14 -0400 |
commit | 591f3dc200abb2100c473248a121ce14bfeeabd6 (patch) | |
tree | 52e51b4e2277faa7ac0b56aee6f9adfadac6ec5c /drivers/net/wireless/b43/main.c | |
parent | 6aabd4c4441133836ac969a9488458b37f83b677 (diff) | |
download | lwn-591f3dc200abb2100c473248a121ce14bfeeabd6.tar.gz lwn-591f3dc200abb2100c473248a121ce14bfeeabd6.zip |
b43: Do radio lock assertion in software
The assertion of the lock-bit in the hardware register is unreliable,
because there are devices with quirks that will randomly set the bit.
Do the assertion in software, only.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/main.c')
-rw-r--r-- | drivers/net/wireless/b43/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 4896e0831114..79b685e300c7 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c @@ -3974,6 +3974,11 @@ static void setup_struct_phy_for_init(struct b43_wldev *dev, phy->next_txpwr_check_time = jiffies; /* PHY TX errors counter. */ atomic_set(&phy->txerr_cnt, B43_PHY_TX_BADNESS_LIMIT); + +#if B43_DEBUG + phy->phy_locked = 0; + phy->radio_locked = 0; +#endif } static void setup_struct_wldev_for_init(struct b43_wldev *dev) |