diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2013-09-11 11:06:31 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-09-26 19:13:47 (GMT) |
commit | 4b9b42bfe08fa369c4f51f00d5f349b32242cd8c (patch) | |
tree | c0592867bb6682c64a53436ccbacdf6b77a70196 /drivers/net/wireless/ath/ath9k/ar9002_calib.c | |
parent | 1e516ca7c9ceeeec4ed87f549a14bc3b73427f83 (diff) | |
download | linux-4b9b42bfe08fa369c4f51f00d5f349b32242cd8c.tar.xz |
ath9k: Use bitops for calibration flags
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9002_calib.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9002_calib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9002_calib.c b/drivers/net/wireless/ath/ath9k/ar9002_calib.c index 9f58974..32376ad 100644 --- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c +++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c @@ -671,7 +671,7 @@ static bool ar9002_hw_calibrate(struct ath_hw *ah, nfcal = !!(REG_READ(ah, AR_PHY_AGC_CONTROL) & AR_PHY_AGC_CONTROL_NF); if (ah->caldata) - nfcal_pending = ah->caldata->nfcal_pending; + nfcal_pending = test_bit(NFCAL_PENDING, &ah->caldata->cal_flags); if (currCal && !nfcal && (currCal->calState == CAL_RUNNING || @@ -861,7 +861,7 @@ static bool ar9002_hw_init_cal(struct ath_hw *ah, struct ath9k_channel *chan) ar9002_hw_pa_cal(ah, true); if (ah->caldata) - ah->caldata->nfcal_pending = true; + set_bit(NFCAL_PENDING, &ah->caldata->cal_flags); ah->cal_list = ah->cal_list_last = ah->cal_list_curr = NULL; |