b43: N-PHY: avoid PHY hangs for rev 3 and 4
authorRafał Miłecki <zajec5@gmail.com>
Tue, 21 Dec 2010 10:50:22 +0000 (11:50 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Dec 2010 20:43:29 +0000 (15:43 -0500)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/phy_n.c

index 6b91cb353f23a764f60fdd24f7aa289dc2c51a7c..f6e90a10c0dcd0869263e6e3553d0d7f42fba8f8 100644 (file)
@@ -3667,6 +3667,7 @@ static void b43_nphy_op_prepare_structs(struct b43_wldev *dev)
 
        memset(nphy, 0, sizeof(*nphy));
 
+       nphy->hang_avoid = (phy->rev == 3 || phy->rev == 4);
        nphy->gain_boost = true; /* this way we follow wl, assume it is true */
        nphy->txrx_chain = 2; /* sth different than 0 and 1 for now */
        nphy->phyrxchain = 3; /* to avoid b43_nphy_set_rx_core_state like wl */