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_ani.c
          +++ new/usr/src/uts/common/io/arn/arn_ani.c
↓ open down ↓ 126 lines elided ↑ open up ↑
 127  127                      AR_PHY_SFCORR_EXT_M2_THRESH,
 128  128                      m2Thresh[on]);
 129  129  
 130  130                  if (on)
 131  131                          REG_SET_BIT(ah, AR_PHY_SFCORR_LOW,
 132  132                              AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
 133  133                  else
 134  134                          REG_CLR_BIT(ah, AR_PHY_SFCORR_LOW,
 135  135                              AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
 136  136  
 137      -                if (!on != aniState->ofdmWeakSigDetectOff) {
      137 +                if ((!on) != aniState->ofdmWeakSigDetectOff) {
 138  138                          if (on)
 139  139                                  ahp->ah_stats.ast_ani_ofdmon++;
 140  140                          else
 141  141                                  ahp->ah_stats.ast_ani_ofdmoff++;
 142  142                          aniState->ofdmWeakSigDetectOff = !on;
 143  143                  }
 144  144                  break;
 145  145          }
 146  146          case ATH9K_ANI_CCK_WEAK_SIGNAL_THR: {
 147  147                  const int weakSigThrCck[] = { 8, 6 };
↓ open down ↓ 744 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX