Lines Matching refs:cur_chan

78 		acq = &sc->cur_chan->acq[txq->mac80211_qnum];  in ath9k_has_pending_frames()
241 ath9k_calculate_summary_state(sc, sc->cur_chan); in ath_complete_reset()
243 ath9k_cmn_update_txpow(ah, sc->cur_chan->cur_txpower, in ath_complete_reset()
244 sc->cur_chan->txpower, in ath_complete_reset()
245 &sc->cur_chan->cur_txpower); in ath_complete_reset()
248 if (!sc->cur_chan->offchannel && start) { in ath_complete_reset()
250 if (sc->cur_chan->tsf_val) { in ath_complete_reset()
253 offset = ath9k_hw_get_tsf_offset(&sc->cur_chan->tsf_ts, in ath_complete_reset()
255 ath9k_hw_settsf64(ah, sc->cur_chan->tsf_val + offset); in ath_complete_reset()
300 if (!sc->cur_chan->offchannel) { in ath_reset_internal()
302 caldata = &sc->cur_chan->caldata; in ath_reset_internal()
312 hchan = ath9k_cmn_get_channel(sc->hw, ah, &sc->cur_chan->chandef); in ath_reset_internal()
322 sc->cur_chandef = sc->cur_chan->chandef; in ath_reset_internal()
340 sc->cur_chan->offchannel) in ath_reset_internal()
659 struct ieee80211_channel *curchan = sc->cur_chan->chandef.chan; in ath9k_start()
660 struct ath_chanctx *ctx = sc->cur_chan; in ath9k_start()
960 &sc->cur_chan->chandef); in ath9k_stop()
1190 if (ctx != sc->cur_chan) in ath9k_calculate_summary_state()
1305 sc->cur_chan->txpower = 2 * power; in ath9k_set_txpower()
1306 ath9k_hw_set_txpowerlimit(ah, sc->cur_chan->txpower, false); in ath9k_set_txpower()
1307 sc->cur_chan->cur_txpower = reg->max_power_level; in ath9k_set_txpower()
1340 if (sc->cur_chan->nvifs >= 1) { in ath9k_add_interface()
1348 sc->cur_chan->nvifs++; in ath9k_add_interface()
1358 avp->chanctx = sc->cur_chan; in ath9k_add_interface()
1427 sc->cur_chan->nvifs--; in ath9k_remove_interface()
1493 struct ath_chanctx *ctx = sc->cur_chan; in ath9k_config()
1907 if ((avp->chanctx == sc->cur_chan) && in ath9k_bss_info_changed()
1955 if (sc->cur_chan == avp->chanctx) { in ath9k_get_tsf()
1958 tsf = sc->cur_chan->tsf_val + in ath9k_get_tsf()
1959 ath9k_hw_get_tsf_offset(&sc->cur_chan->tsf_ts, NULL); in ath9k_get_tsf()
1979 if (sc->cur_chan == avp->chanctx) in ath9k_set_tsf()
1995 if (sc->cur_chan == avp->chanctx) in ath9k_reset_tsf()
2219 timeout = sc->cur_chan->flush_timeout; in __ath9k_flush()
2682 if (sc->next_chan || (sc->cur_chan != avp->chanctx)) in ath9k_mgd_prepare_tx()
2765 *dbm = sc->cur_chan->cur_txpower; in ath9k_get_txpower()