• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/wireless/ath/ath9k/

Lines Matching refs:sc

610 static u8 ath_rc_get_highest_rix(struct ath_softc *sc,
729 static void ath_rc_rate_set_rtscts(struct ath_softc *sc,
747 if (sc->hw->conf.channel->band == IEEE80211_BAND_2GHZ &&
748 !conf_is_ht(&sc->hw->conf))
755 if ((sc->sc_flags & SC_OP_PROTECT_ENABLE) &&
768 struct ath_softc *sc = priv;
794 rate_table = sc->cur_rate_table;
795 rix = ath_rc_get_highest_rix(sc, ath_rc_priv, rate_table, &is_probe);
802 if (conf_is_ht(&sc->hw->conf) &&
806 if (conf_is_ht(&sc->hw->conf) &&
857 if ((sc->hw->conf.channel->band == IEEE80211_BAND_2GHZ) &&
858 (conf_is_ht(&sc->hw->conf))) {
877 ath_rc_rate_set_rtscts(sc, rate_table, tx_info);
880 static bool ath_rc_update_per(struct ath_softc *sc,
1025 static void ath_rc_update_ht(struct ath_softc *sc,
1034 const struct ath_rate_table *rate_table = sc->cur_rate_table;
1043 state_change = ath_rc_update_per(sc, rate_table, ath_rc_priv,
1094 ath_debug_stat_retries(sc, tx_rate, xretries, retries,
1126 static void ath_rc_tx_status(struct ath_softc *sc,
1136 rate_table = sc->cur_rate_table;
1156 ath_rc_update_ht(sc, ath_rc_priv, tx_info,
1180 ath_rc_update_ht(sc, ath_rc_priv, tx_info, rix, xretries, long_retry);
1184 struct ath_rate_table *ath_choose_rate_table(struct ath_softc *sc,
1190 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
1217 sc->cur_rate_mode = mode;
1221 static void ath_rc_init(struct ath_softc *sc,
1228 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
1289 sc->cur_rate_table = rate_table;
1296 static u8 ath_rc_build_ht_caps(struct ath_softc *sc, struct ieee80211_sta *sta,
1324 struct ath_softc *sc = priv;
1372 (sc->sc_ah->tx_trig_level >= ath_rc_priv->tx_triglevel_max)) {
1380 ath_rc_tx_status(sc, ath_rc_priv, tx_info, final_ts_idx, tx_status,
1381 (is_underrun) ? sc->hw->max_rate_tries : long_retry);
1384 if (conf_is_ht(&sc->hw->conf) &&
1394 if(ath_tx_aggr_check(sc, an, tid))
1399 ath_debug_stat_rc(sc, ath_rc_get_rateindex(sc->cur_rate_table,
1406 struct ath_softc *sc = priv;
1435 else if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_SGI_20)
1440 if ((sc->sc_ah->opmode == NL80211_IFTYPE_STATION) ||
1441 (sc->sc_ah->opmode == NL80211_IFTYPE_MESH_POINT) ||
1442 (sc->sc_ah->opmode == NL80211_IFTYPE_ADHOC)) {
1443 rate_table = ath_choose_rate_table(sc, sband->band,
1446 rate_table = hw_rate_table[sc->cur_rate_mode];
1449 ath_rc_priv->ht_cap = ath_rc_build_ht_caps(sc, sta, is_cw40, is_sgi);
1450 ath_rc_init(sc, priv_sta, sband, sta, rate_table);
1457 struct ath_softc *sc = priv;
1468 if (sc->sc_ah->opmode != NL80211_IFTYPE_STATION)
1478 else if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_SGI_20)
1485 rate_table = ath_choose_rate_table(sc, sband->band,
1488 ath_rc_priv->ht_cap = ath_rc_build_ht_caps(sc, sta,
1490 ath_rc_init(sc, priv_sta, sband, sta, rate_table);
1492 ath_print(ath9k_hw_common(sc->sc_ah), ATH_DBG_CONFIG,
1494 sc->hw->conf.channel_type);
1495 sc->cur_rate_table = hw_rate_table[sc->cur_rate_mode];
1503 return aphy->sc;
1513 struct ath_softc *sc = priv;
1518 ath_print(ath9k_hw_common(sc->sc_ah), ATH_DBG_FATAL,
1523 rate_priv->tx_triglevel_max = sc->sc_ah->caps.tx_triglevel_max;