Print this page
9418 iwn: rate array in struct iwn_ks_txpower should have size IWN_RIDX_MAX+1
Reviewed by: Marcel Telka <marcel@telka.sk>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Approved by: Dan McDonald <danmcd@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/iwn/if_iwnvar.h
          +++ new/usr/src/uts/common/io/iwn/if_iwnvar.h
↓ open down ↓ 199 lines elided ↑ open up ↑
 200  200  #define IWN_FLAG_RUNNING        (1 << 16)
 201  201  #define IWN_FLAG_SUSPEND        (1 << 17)
 202  202  #define IWN_FLAG_RADIO_OFF      (1 << 18)
 203  203  #define IWN_FLAG_STATISTICS     (1 << 19)
 204  204  #define IWN_FLAG_READY          (1 << 20)
 205  205  #define IWN_FLAG_PUT_SEG        (1 << 21)
 206  206  #define IWN_FLAG_QUIESCED       (1 << 22)
 207  207  #define IWN_FLAG_LAZY_RESUME    (1 << 23)
 208  208  #define IWN_FLAG_STOP_CALIB_TO  (1 << 24)
 209  209  
 210      -        uint8_t                 hw_type;
      210 +        uint8_t                 hw_type;
 211  211  
 212  212          struct iwn_ops          ops;
 213  213          const char              *fwname;
 214  214          const struct iwn_sensitivity_limits
 215  215                                  *limits;
 216  216          int                     ntxqs;
 217  217          int                     ndmachnls;
 218  218          uint8_t                 broadcast_id;
 219  219          int                     rxonsz;
 220  220          int                     schedsz;
↓ open down ↓ 16 lines elided ↑ open up ↑
 237  237          /* ICT table. */
 238  238          struct iwn_dma_info     ict_dma;
 239  239          uint32_t                *ict;
 240  240          int                     ict_cur;
 241  241  
 242  242          /* TX/RX rings. */
 243  243          struct iwn_tx_ring      txq[IWN5000_NTXQUEUES];
 244  244          struct iwn_rx_ring      rxq;
 245  245  
 246  246          ddi_acc_handle_t        sc_regh;
 247      -        void                    *sc_ih;
      247 +        void                    *sc_ih;
 248  248          ddi_acc_handle_t        sc_pcih;
 249  249          uint_t                  sc_intr_pri;
 250  250          int                     sc_intr_cap;
 251  251          int                     sc_intr_count;
 252  252          size_t                  sc_intr_size;
 253  253          ddi_intr_handle_t       *sc_intr_htable;
 254  254          int                     sc_cap_off;     /* PCIe Capabilities. */
 255  255  
 256  256          ddi_periodic_t          sc_periodic;
 257  257          timeout_id_t            scan_to;
↓ open down ↓ 135 lines elided ↑ open up ↑
 393  393          kstat_named_t           group;
 394  394          kstat_named_t           subband;
 395  395          struct {
 396  396                  kstat_named_t   power;
 397  397                  kstat_named_t   gain;
 398  398                  kstat_named_t   temp;
 399  399                  kstat_named_t   tcomp;
 400  400                  struct {
 401  401                          kstat_named_t   rf_gain;
 402  402                          kstat_named_t   dsp_gain;
 403      -                } rate[IWN_RIDX_MAX];
      403 +                } rate[IWN_RIDX_MAX + 1];
 404  404          } txchain[2];
 405  405  };
 406  406  
 407  407  struct iwn_ks_toff_2000 {
 408  408          kstat_named_t           toff_lo;
 409  409          kstat_named_t           toff_hi;
 410  410          kstat_named_t           volt;
 411  411  };
 412  412  
 413  413  struct iwn_ks_toff_6000 {
 414  414          kstat_named_t           toff;
 415  415  };
 416  416  
 417  417  #define IWN_CHK_FAST_RECOVER(sc) \
 418  418          (sc->sc_ic.ic_state == IEEE80211_S_RUN && \
 419  419          sc->sc_ic.ic_opmode == IEEE80211_M_STA)
 420  420  
 421  421  #endif  /* _IF_IWNVAR_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX