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_hw.h
          +++ new/usr/src/uts/common/io/arn/arn_hw.h
↓ open down ↓ 464 lines elided ↑ open up ↑
 465  465  #define AR5416_EEP4K_NUM_2G_20_TARGET_POWERS    3
 466  466  #define AR5416_EEP4K_NUM_2G_40_TARGET_POWERS    3
 467  467  #define AR5416_EEP4K_NUM_CTLS                                   12
 468  468  #define AR5416_EEP4K_NUM_BAND_EDGES                             4
 469  469  #define AR5416_EEP4K_NUM_PD_GAINS                               2
 470  470  #define AR5416_EEP4K_PD_GAINS_IN_MASK                   4
 471  471  #define AR5416_EEP4K_PD_GAIN_ICEPTS                             5
 472  472  #define AR5416_EEP4K_MAX_CHAINS                                 1
 473  473  
 474  474  enum eeprom_param {
 475      -        EEP_NFTHRESH_5,
      475 +        EEP_NFTHRESH_5 = 0,
 476  476          EEP_NFTHRESH_2,
 477  477          EEP_MAC_MSW,
 478  478          EEP_MAC_MID,
 479  479          EEP_MAC_LSW,
 480  480          EEP_REG_0,
 481  481          EEP_REG_1,
 482  482          EEP_OP_CAP,
 483  483          EEP_OP_MODE,
 484  484          EEP_RF_SILENT,
 485  485          EEP_OB_5,
↓ open down ↓ 1 lines elided ↑ open up ↑
 487  487          EEP_OB_2,
 488  488          EEP_DB_2,
 489  489          EEP_MINOR_REV,
 490  490          EEP_TX_MASK,
 491  491          EEP_RX_MASK,
 492  492          EEP_RXGAIN_TYPE,
 493  493          EEP_TXGAIN_TYPE,
 494  494          EEP_OL_PWRCTRL,
 495  495          EEP_RC_CHAIN_MASK,
 496  496          EEP_DAC_HPWR_5G,
 497      -        EEP_FRAC_N_5G
      497 +        EEP_FRAC_N_5G,
      498 +        EEP_MAC_0 = AR_EEPROM_MAC(0),
      499 +        EEP_MAC_1 = AR_EEPROM_MAC(1),
      500 +        EEP_MAC_2 = AR_EEPROM_MAC(2)
 498  501  };
 499  502  
 500  503  enum ar5416_rates {
 501  504          rate6mb, rate9mb, rate12mb, rate18mb,
 502  505          rate24mb, rate36mb, rate48mb, rate54mb,
 503  506          rate1l, rate2l, rate2s, rate5_5l,
 504  507          rate5_5s, rate11l, rate11s, rateXr,
 505  508          rateHt20_0, rateHt20_1, rateHt20_2, rateHt20_3,
 506  509          rateHt20_4, rateHt20_5, rateHt20_6, rateHt20_7,
 507  510          rateHt40_0, rateHt40_1, rateHt40_2, rateHt40_3,
↓ open down ↓ 600 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX