> static int ath_rc_get_rateindex(const struct ath_rate_table *rate_table, > struct ieee80211_tx_rate *rate); > > @@ -1203,35 +1192,21 @@ struct ath_rate_table *ath_choose_rate_table(struct ath_softc *sc, > bool is_ht, > bool is_cw_40) > { unused argument is_cw_40 needs to e removed. - Rajkumar > - int mode = 0; > struct ath_common *common = ath9k_hw_common(sc->sc_ah); > > switch(band) { > case IEEE80211_BAND_2GHZ: > - mode = ATH9K_MODE_11G; > if (is_ht) > - mode = ATH9K_MODE_11NG_HT20; > - if (is_cw_40) > - mode = ATH9K_MODE_11NG_HT40PLUS; > - break; > + return &ar5416_11ng_ratetable; > + return &ar5416_11g_ratetable; > case IEEE80211_BAND_5GHZ: > - mode = ATH9K_MODE_11A; > if (is_ht) > - mode = ATH9K_MODE_11NA_HT20; > - if (is_cw_40) > - mode = ATH9K_MODE_11NA_HT40PLUS; > - break; > + return &ar5416_11na_ratetable; > + return &ar5416_11a_ratetable; -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html