Lines Matching refs:arsta

3196 	struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv;  in ath10k_new_peer_tid_config()  local
3232 arsta->retry_long[i] = -1; in ath10k_new_peer_tid_config()
3233 arsta->noack[i] = -1; in ath10k_new_peer_tid_config()
3234 arsta->ampdu[i] = -1; in ath10k_new_peer_tid_config()
3871 struct ath10k_sta *arsta; in ath10k_mac_tx_h_fill_cb() local
3891 arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_mac_tx_h_fill_cb()
3893 if (arsta->noack[tid] == WMI_PEER_TID_CONFIG_NOACK) in ath10k_mac_tx_h_fill_cb()
3896 if (arsta->noack[tid] == WMI_PEER_TID_CONFIG_ACK) in ath10k_mac_tx_h_fill_cb()
3918 arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_mac_tx_h_fill_cb()
3920 cb->ucast_cipher = arsta->ucast_cipher; in ath10k_mac_tx_h_fill_cb()
4320 struct ath10k_sta *arsta; in ath10k_mac_update_airtime() local
4331 arsta = (struct ath10k_sta *)txq->sta->drv_priv; in ath10k_mac_update_airtime()
4334 if (arsta->last_tx_bitrate) { in ath10k_mac_update_airtime()
4337 / arsta->last_tx_bitrate; in ath10k_mac_update_airtime()
6300 struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_mac_tdls_vif_stations_count_iter() local
6301 struct ieee80211_vif *sta_vif = arsta->arvif->vif; in ath10k_mac_tdls_vif_stations_count_iter()
6485 struct ath10k_sta *arsta; in ath10k_set_key() local
6511 arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_set_key()
6514 arsta->ucast_cipher = key->cipher; in ath10k_set_key()
6672 struct ath10k_sta *arsta; in ath10k_sta_rc_update_wk() local
6681 arsta = container_of(wk, struct ath10k_sta, update_wk); in ath10k_sta_rc_update_wk()
6682 sta = container_of((void *)arsta, struct ieee80211_sta, drv_priv); in ath10k_sta_rc_update_wk()
6683 arvif = arsta->arvif; in ath10k_sta_rc_update_wk()
6695 changed = arsta->changed; in ath10k_sta_rc_update_wk()
6696 arsta->changed = 0; in ath10k_sta_rc_update_wk()
6698 bw = arsta->bw; in ath10k_sta_rc_update_wk()
6699 nss = arsta->nss; in ath10k_sta_rc_update_wk()
6700 smps = arsta->smps; in ath10k_sta_rc_update_wk()
7019 struct ath10k_sta *arsta; in ath10k_mac_set_tid_config() local
7026 arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_mac_set_tid_config()
7029 if ((arsta->retry_long[arg->tid] > 0 || in ath10k_mac_set_tid_config()
7030 arsta->rate_code[arg->tid] > 0 || in ath10k_mac_set_tid_config()
7031 arsta->ampdu[arg->tid] == in ath10k_mac_set_tid_config()
7043 if (arsta->noack[arg->tid] == WMI_PEER_TID_CONFIG_NOACK || in ath10k_mac_set_tid_config()
7052 if (arsta->noack[arg->tid] == WMI_PEER_TID_CONFIG_NOACK || in ath10k_mac_set_tid_config()
7067 arsta->noack[arg->tid] = arg->ack_policy; in ath10k_mac_set_tid_config()
7075 arsta->retry_long[arg->tid] = arg->retry_count; in ath10k_mac_set_tid_config()
7080 arsta->ampdu[arg->tid] = arg->aggr_control; in ath10k_mac_set_tid_config()
7086 arsta->rate_ctrl[arg->tid] = arg->rate_ctrl; in ath10k_mac_set_tid_config()
7092 arsta->rtscts[arg->tid] = arg->rtscts_ctrl; in ath10k_mac_set_tid_config()
7231 struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_mac_reset_tid_config() local
7257 arsta->retry_long[i] = -1; in ath10k_mac_reset_tid_config()
7258 arsta->noack[i] = -1; in ath10k_mac_reset_tid_config()
7259 arsta->ampdu[i] = -1; in ath10k_mac_reset_tid_config()
7260 arsta->rate_code[i] = -1; in ath10k_mac_reset_tid_config()
7261 arsta->rate_ctrl[i] = 0; in ath10k_mac_reset_tid_config()
7262 arsta->rtscts[i] = -1; in ath10k_mac_reset_tid_config()
7282 struct ath10k_sta *arsta; in ath10k_sta_tid_cfg_wk() local
7290 arsta = container_of(wk, struct ath10k_sta, tid_config_wk); in ath10k_sta_tid_cfg_wk()
7291 sta = container_of((void *)arsta, struct ieee80211_sta, drv_priv); in ath10k_sta_tid_cfg_wk()
7292 arvif = arsta->arvif; in ath10k_sta_tid_cfg_wk()
7310 if (arsta->noack[i] != -1) { in ath10k_sta_tid_cfg_wk()
7321 if (arsta->retry_long[i] != -1 || in ath10k_sta_tid_cfg_wk()
7322 arsta->noack[i] == WMI_PEER_TID_CONFIG_NOACK || in ath10k_sta_tid_cfg_wk()
7332 if (arsta->ampdu[i] != -1 || in ath10k_sta_tid_cfg_wk()
7333 arsta->noack[i] == WMI_PEER_TID_CONFIG_NOACK || in ath10k_sta_tid_cfg_wk()
7354 if (arsta->rate_ctrl[i] > in ath10k_sta_tid_cfg_wk()
7356 arsta->noack[i] == WMI_PEER_TID_CONFIG_NOACK || in ath10k_sta_tid_cfg_wk()
7368 if (arsta->rtscts[i]) { in ath10k_sta_tid_cfg_wk()
7402 struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_mac_vif_stations_tid_conf() local
7404 struct ieee80211_vif *sta_vif = arsta->arvif->vif; in ath10k_mac_vif_stations_tid_conf()
7409 ieee80211_queue_work(iter_data->ar->hw, &arsta->tid_config_wk); in ath10k_mac_vif_stations_tid_conf()
7420 struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_sta_state() local
7427 memset(arsta, 0, sizeof(*arsta)); in ath10k_sta_state()
7428 arsta->arvif = arvif; in ath10k_sta_state()
7429 arsta->peer_ps_state = WMI_PEER_PS_STATE_DISABLED; in ath10k_sta_state()
7430 INIT_WORK(&arsta->update_wk, ath10k_sta_rc_update_wk); in ath10k_sta_state()
7431 INIT_WORK(&arsta->tid_config_wk, ath10k_sta_tid_cfg_wk); in ath10k_sta_state()
7440 cancel_work_sync(&arsta->update_wk); in ath10k_sta_state()
7441 cancel_work_sync(&arsta->tid_config_wk); in ath10k_sta_state()
7481 arsta->tx_stats = kzalloc(sizeof(*arsta->tx_stats), in ath10k_sta_state()
7483 if (!arsta->tx_stats) { in ath10k_sta_state()
7496 kfree(arsta->tx_stats); in ath10k_sta_state()
7509 kfree(arsta->tx_stats); in ath10k_sta_state()
7514 arsta->peer_id = find_first_bit(peer->peer_ids, in ath10k_sta_state()
7530 kfree(arsta->tx_stats); in ath10k_sta_state()
7542 kfree(arsta->tx_stats); in ath10k_sta_state()
7598 kfree(arsta->tx_stats); in ath10k_sta_state()
7599 arsta->tx_stats = NULL; in ath10k_sta_state()
8312 struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_mac_set_bitrate_mask_iter() local
8315 if (arsta->arvif != arvif) in ath10k_mac_set_bitrate_mask_iter()
8322 arsta->changed |= IEEE80211_RC_SUPP_RATES_CHANGED; in ath10k_mac_set_bitrate_mask_iter()
8325 ieee80211_queue_work(ar->hw, &arsta->update_wk); in ath10k_mac_set_bitrate_mask_iter()
8332 struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_mac_clr_bitrate_mask_iter() local
8337 if (arsta->arvif != arvif || !sta->deflink.vht_cap.vht_supported) in ath10k_mac_clr_bitrate_mask_iter()
8464 struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_sta_rc_update() local
8508 arsta->bw = bw; in ath10k_sta_rc_update()
8512 arsta->nss = sta->deflink.rx_nss; in ath10k_sta_rc_update()
8535 arsta->smps = smps; in ath10k_sta_rc_update()
8538 arsta->changed |= changed; in ath10k_sta_rc_update()
8542 ieee80211_queue_work(hw, &arsta->update_wk); in ath10k_sta_rc_update()
9205 struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_mac_sta_get_peer_stats_info() local
9211 arsta->arvif->vdev_type == WMI_VDEV_TYPE_STA)) in ath10k_mac_sta_get_peer_stats_info()
9215 peer = ath10k_peer_find(ar, arsta->arvif->vdev_id, sta->addr); in ath10k_mac_sta_get_peer_stats_info()
9223 arsta->arvif->vdev_id, in ath10k_mac_sta_get_peer_stats_info()
9225 arsta->arvif->bssid, in ath10k_mac_sta_get_peer_stats_info()
9238 if (arsta->rx_rate_code != 0 && arsta->rx_bitrate_kbps != 0) { in ath10k_mac_sta_get_peer_stats_info()
9239 ath10k_mac_parse_bitrate(ar, arsta->rx_rate_code, in ath10k_mac_sta_get_peer_stats_info()
9240 arsta->rx_bitrate_kbps, in ath10k_mac_sta_get_peer_stats_info()
9244 arsta->rx_rate_code = 0; in ath10k_mac_sta_get_peer_stats_info()
9245 arsta->rx_bitrate_kbps = 0; in ath10k_mac_sta_get_peer_stats_info()
9248 if (arsta->tx_rate_code != 0 && arsta->tx_bitrate_kbps != 0) { in ath10k_mac_sta_get_peer_stats_info()
9249 ath10k_mac_parse_bitrate(ar, arsta->tx_rate_code, in ath10k_mac_sta_get_peer_stats_info()
9250 arsta->tx_bitrate_kbps, in ath10k_mac_sta_get_peer_stats_info()
9254 arsta->tx_rate_code = 0; in ath10k_mac_sta_get_peer_stats_info()
9255 arsta->tx_bitrate_kbps = 0; in ath10k_mac_sta_get_peer_stats_info()
9264 struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv; in ath10k_sta_statistics() local
9265 struct ath10k *ar = arsta->arvif->ar; in ath10k_sta_statistics()
9274 sinfo->rx_duration = arsta->rx_duration; in ath10k_sta_statistics()
9277 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath10k_sta_statistics()
9278 if (arsta->txrate.legacy) { in ath10k_sta_statistics()
9279 sinfo->txrate.legacy = arsta->txrate.legacy; in ath10k_sta_statistics()
9281 sinfo->txrate.mcs = arsta->txrate.mcs; in ath10k_sta_statistics()
9282 sinfo->txrate.nss = arsta->txrate.nss; in ath10k_sta_statistics()
9283 sinfo->txrate.bw = arsta->txrate.bw; in ath10k_sta_statistics()
9285 sinfo->txrate.flags = arsta->txrate.flags; in ath10k_sta_statistics()
9290 sinfo->tx_failed = arsta->tx_failed; in ath10k_sta_statistics()
9294 sinfo->tx_retries = arsta->tx_retries; in ath10k_sta_statistics()