···12681268 sc->rates[IEEE80211_BAND_2GHZ];12691269 sc->sbands[IEEE80211_BAND_2GHZ].band = IEEE80211_BAND_2GHZ;1270127012711271- if (sc->sc_ah->ah_caps.halHTSupport)12711271+ if (sc->sc_ah->ah_caps.hw_caps & ATH9K_HW_CAP_HT)12721272 /* Setup HT capabilities for 2.4Ghz*/12731273 setup_ht_cap(&sc->sbands[IEEE80211_BAND_2GHZ].ht_info);1274127412751275 hw->wiphy->bands[IEEE80211_BAND_2GHZ] =12761276 &sc->sbands[IEEE80211_BAND_2GHZ];1277127712781278- if (sc->sc_ah->ah_caps.halWirelessModes & ATH9K_MODE_SEL_11A) {12781278+ if (sc->sc_ah->ah_caps.wireless_modes & ATH9K_MODE_SEL_11A) {12791279 sc->sbands[IEEE80211_BAND_5GHZ].channels =12801280 sc->channels[IEEE80211_BAND_5GHZ];12811281 sc->sbands[IEEE80211_BAND_5GHZ].bitrates =···12831283 sc->sbands[IEEE80211_BAND_5GHZ].band =12841284 IEEE80211_BAND_5GHZ;1285128512861286- if (sc->sc_ah->ah_caps.halHTSupport)12861286+ if (sc->sc_ah->ah_caps.hw_caps & ATH9K_HW_CAP_HT)12871287 /* Setup HT capabilities for 5Ghz*/12881288 setup_ht_cap(&sc->sbands[IEEE80211_BAND_5GHZ].ht_info);12891289
+1-1
drivers/net/wireless/ath9k/rc.c
···780780 ar5416_attach_ratetables(asc);781781782782 /* Save Maximum TX Trigger Level (used for 11n) */783783- tx_triglevel_max = ah->ah_caps.halTxTrigLevelMax;783783+ tx_triglevel_max = ah->ah_caps.tx_triglevel_max;784784 /* return alias for ath_rate_softc * */785785 return asc;786786}
+2-2
drivers/net/wireless/ath9k/recv.c
···478478 ath9k_hw_setrxfilter(ah, rfilt);479479480480 /* configure bssid mask */481481- if (ah->ah_caps.halBssIdMaskSupport)481481+ if (ah->ah_caps.hw_caps & ATH9K_HW_CAP_BSSIDMASK)482482 ath9k_hw_setbssidmask(ah, sc->sc_bssidmask);483483484484 /* configure operational mode */···10181018 PCI_DMA_FROMDEVICE);1019101910201020 /* XXX: Ah! make me more readable, use a helper */10211021- if (ah->ah_caps.halHTSupport) {10211021+ if (ah->ah_caps.hw_caps & ATH9K_HW_CAP_HT) {10221022 if (ds->ds_rxstat.rs_moreaggr == 0) {10231023 rx_status.rssictl[0] =10241024 ds->ds_rxstat.rs_rssi_ctl0;
···781781 * let rate series flags determine which rates will actually782782 * use RTS.783783 */784784- if (ah->ah_caps.halHTSupport && bf->bf_isdata) {784784+ if ((ah->ah_caps.hw_caps & ATH9K_HW_CAP_HT) && bf->bf_isdata) {785785 BUG_ON(!an);786786 /*787787 * 802.11g protection not needed, use our default behavior···897897 * For non-HT devices, calculate RTS/CTS duration in software898898 * and disable multi-rate retry.899899 */900900- if (flags && !ah->ah_caps.halHTSupport) {900900+ if (flags && !(ah->ah_caps.hw_caps & ATH9K_HW_CAP_HT)) {901901 /*902902 * Compute the transmit duration based on the frame903903 * size and the size of an ACK frame. We call into the