summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/b43/main.c
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2009-03-31 12:27:32 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-04-16 10:39:14 -0400
commit591f3dc200abb2100c473248a121ce14bfeeabd6 (patch)
tree52e51b4e2277faa7ac0b56aee6f9adfadac6ec5c /drivers/net/wireless/b43/main.c
parent6aabd4c4441133836ac969a9488458b37f83b677 (diff)
downloadlwn-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.c5
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)