summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/phy_n.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-12-20 22:45:48 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-01-04 14:30:41 -0500
commit2c8ac7eb96e45997d99a5da6d0d5cdf265587437 (patch)
tree1d7e0fa552c997b5c2ce586aeb669a724b3e63fb /drivers/net/wireless/b43/phy_n.c
parent9dd4d9b99218b2bebbcfb4627b34145250deeb6e (diff)
downloadop-kernel-dev-2c8ac7eb96e45997d99a5da6d0d5cdf265587437.zip
op-kernel-dev-2c8ac7eb96e45997d99a5da6d0d5cdf265587437.tar.gz
b43: N-PHY: fix success condition of running samples
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/phy_n.c')
-rw-r--r--drivers/net/wireless/b43/phy_n.c2
1 files changed, 1 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud