From: Rafał Miłecki Date: Tue, 20 Dec 2011 21:45:48 +0000 (+0100) Subject: b43: N-PHY: fix success condition of running samples X-Git-Tag: v3.3-rc1~182^2~21^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c8ac7eb96e45997d99a5da6d0d5cdf265587437;p=profile%2Fcommon%2Fkernel-common.git b43: N-PHY: fix success condition of running samples Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c index 52503c6..da6fa03 100644 --- a/drivers/net/wireless/b43/phy_n.c +++ b/drivers/net/wireless/b43/phy_n.c @@ -956,7 +956,7 @@ static void b43_nphy_run_samples(struct b43_wldev *dev, u16 samps, u16 loops, b43_phy_write(dev, B43_NPHY_SAMP_CMD, 1); } for (i = 0; i < 100; i++) { - if (b43_phy_read(dev, B43_NPHY_RFSEQST) & 1) { + if (!(b43_phy_read(dev, B43_NPHY_RFSEQST) & 1)) { i = 0; break; }