Print this page
7154 arn(7D) walks out of bounds when byteswapping the 4K eeprom
7152 weird condition in arn(7D) needs clarification
7153 delete unused code in arn(7D)
7155 arn(7D) should include the mac fields in the eeprom enumeration

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/arn/arn_calib.c
          +++ new/usr/src/uts/common/io/arn/arn_calib.c
↓ open down ↓ 716 lines elided ↑ open up ↑
 717  717                  }
 718  718          }
 719  719  }
 720  720  
 721  721  int16_t
 722  722  ath9k_hw_getnf(struct ath_hal *ah, struct ath9k_channel *chan)
 723  723  {
 724  724          int16_t nf, nfThresh;
 725  725          int16_t nfarray[NUM_NF_READINGS] = { 0 };
 726  726          struct ath9k_nfcal_hist *h;
 727      -        /* LINTED E_FUNC_SET_NOT_USED */
 728      -        uint8_t chainmask;
 729      -
 730      -        if (AR_SREV_9280(ah))
 731      -                chainmask = 0x1B;
 732      -        else
 733      -                chainmask = 0x3F;
 734  727  
 735  728          chan->channelFlags &= (~CHANNEL_CW_INT);
 736  729          if (REG_READ(ah, AR_PHY_AGC_CONTROL) & AR_PHY_AGC_CONTROL_NF) {
 737  730                  ARN_DBG((ARN_DBG_CALIBRATE, "arn: "
 738  731                      "%s: NF did not complete in calibration window\n",
 739  732                      __func__));
 740  733                  nf = 0;
 741  734                  chan->rawNoiseFloor = nf;
 742  735                  return (chan->rawNoiseFloor);
 743  736          } else {
↓ open down ↓ 333 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX