diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar5008_phy.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar5008_phy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar5008_phy.c b/drivers/net/wireless/ath/ath9k/ar5008_phy.c index 777a602176f2..c83a22cfbe1e 100644 --- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c | |||
@@ -1490,25 +1490,25 @@ static void ar5008_hw_do_getnf(struct ath_hw *ah, | |||
1490 | int16_t nf; | 1490 | int16_t nf; |
1491 | 1491 | ||
1492 | nf = MS(REG_READ(ah, AR_PHY_CCA), AR_PHY_MINCCA_PWR); | 1492 | nf = MS(REG_READ(ah, AR_PHY_CCA), AR_PHY_MINCCA_PWR); |
1493 | nfarray[0] = sign_extend(nf, 9); | 1493 | nfarray[0] = sign_extend32(nf, 8); |
1494 | 1494 | ||
1495 | nf = MS(REG_READ(ah, AR_PHY_CH1_CCA), AR_PHY_CH1_MINCCA_PWR); | 1495 | nf = MS(REG_READ(ah, AR_PHY_CH1_CCA), AR_PHY_CH1_MINCCA_PWR); |
1496 | nfarray[1] = sign_extend(nf, 9); | 1496 | nfarray[1] = sign_extend32(nf, 8); |
1497 | 1497 | ||
1498 | nf = MS(REG_READ(ah, AR_PHY_CH2_CCA), AR_PHY_CH2_MINCCA_PWR); | 1498 | nf = MS(REG_READ(ah, AR_PHY_CH2_CCA), AR_PHY_CH2_MINCCA_PWR); |
1499 | nfarray[2] = sign_extend(nf, 9); | 1499 | nfarray[2] = sign_extend32(nf, 8); |
1500 | 1500 | ||
1501 | if (!IS_CHAN_HT40(ah->curchan)) | 1501 | if (!IS_CHAN_HT40(ah->curchan)) |
1502 | return; | 1502 | return; |
1503 | 1503 | ||
1504 | nf = MS(REG_READ(ah, AR_PHY_EXT_CCA), AR_PHY_EXT_MINCCA_PWR); | 1504 | nf = MS(REG_READ(ah, AR_PHY_EXT_CCA), AR_PHY_EXT_MINCCA_PWR); |
1505 | nfarray[3] = sign_extend(nf, 9); | 1505 | nfarray[3] = sign_extend32(nf, 8); |
1506 | 1506 | ||
1507 | nf = MS(REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR_PHY_CH1_EXT_MINCCA_PWR); | 1507 | nf = MS(REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR_PHY_CH1_EXT_MINCCA_PWR); |
1508 | nfarray[4] = sign_extend(nf, 9); | 1508 | nfarray[4] = sign_extend32(nf, 8); |
1509 | 1509 | ||
1510 | nf = MS(REG_READ(ah, AR_PHY_CH2_EXT_CCA), AR_PHY_CH2_EXT_MINCCA_PWR); | 1510 | nf = MS(REG_READ(ah, AR_PHY_CH2_EXT_CCA), AR_PHY_CH2_EXT_MINCCA_PWR); |
1511 | nfarray[5] = sign_extend(nf, 9); | 1511 | nfarray[5] = sign_extend32(nf, 8); |
1512 | } | 1512 | } |
1513 | 1513 | ||
1514 | /* | 1514 | /* |