Search Linux Wireless

[PATCH 5/6] b43: N-PHY: correct condition blocks in init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Signed-off-by: Rafał Miłecki <zajec5@xxxxxxxxx>
---
 drivers/net/wireless/b43/phy_n.c |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c
index d5a2dc8..356b89f 100644
--- a/drivers/net/wireless/b43/phy_n.c
+++ b/drivers/net/wireless/b43/phy_n.c
@@ -1842,17 +1842,19 @@ int b43_phy_initn(struct b43_wldev *dev)
 					//TODO N PHY Pre Calibrate TX Gain
 					target = b43_nphy_get_tx_gains(dev);
 				}
-				/* TODO: If the output of N PHY Cal TX Iqlo with target, 1 0 as arguments is 0
-					if (b43_nphy_cal_rx_iq(dev, target, 2, 0) == 0)
-						Call N PHY Save Cal */
-			} else if (nphy->mphase_cal_phase_id == 0) {
-				//TODO N PHY Periodic Calibration with argument 3
 			}
-		} else {
-			b43_nphy_restore_cal(dev);
 		}
 	}

+	/* TODO: If the output of N PHY Cal TX Iqlo with target, 1 0 as arguments is 0 {
+		if (b43_nphy_cal_rx_iq(dev, target, 2, 0) == 0)
+			Call N PHY Save Cal
+		else if (nphy->mphase_cal_phase_id == 0)
+			//TODO: N PHY Periodic Calibration with argument 3
+	} else {
+		b43_nphy_restore_cal(dev);
+	} */
+
 	b43_nphy_tx_pwr_ctrl_coef_setup(dev);
 	//TODO N PHY TX Power Control Enable with argument tx_pwr_state
 	b43_phy_write(dev, B43_NPHY_TXMACIF_HOLDOFF, 0x0015);
--
1.6.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux