From: Larry Finger Date: Sun, 27 May 2007 03:21:29 +0000 (-0500) Subject: [PATCH] bcm43xx: Fix deviation from specifications in set_baseband_attenuation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=77548f58070894cf5970a110981e511ffe793369;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [PATCH] bcm43xx: Fix deviation from specifications in set_baseband_attenuation A disagreement between the specifications and the bcm43xx code has just been discovered and is hereby fixed. Signed-off-by: Larry Finger Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_phy.c b/drivers/net/wireless/bcm43xx/bcm43xx_phy.c index b37f1e348700..d779199c30d0 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_phy.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_phy.c @@ -1638,7 +1638,7 @@ void bcm43xx_phy_set_baseband_attenuation(struct bcm43xx_private *bcm, return; } - if (phy->analog > 1) { + if (phy->analog == 1) { value = bcm43xx_phy_read(bcm, 0x0060) & ~0x003C; value |= (baseband_attenuation << 2) & 0x003C; } else {