Lines Matching refs:sta

4007 				    struct ieee80211_sta *sta)
4011 if (!sta)
4014 sta_info = (struct rtl8xxxu_sta_info *)sta->drv_priv;
4558 static int rtl8xxxu_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta,
4835 rtl8xxxu_wireless_mode(struct ieee80211_hw *hw, struct ieee80211_sta *sta)
4840 if (sta->deflink.vht_cap.vht_supported)
4842 else if (sta->deflink.ht_cap.ht_supported)
4847 if (sta->deflink.vht_cap.vht_supported)
4849 else if (sta->deflink.ht_cap.ht_supported)
4852 if (sta->deflink.supp_rates[0] <= 0xf)
4854 else if (sta->deflink.supp_rates[0] & 0xf)
4877 struct ieee80211_sta *sta;
4883 sta = ieee80211_find_sta(priv->vifs[i], priv->vifs[i]->bss_conf.bssid);
4884 if (sta)
4885 wireless_mode = rtl8xxxu_wireless_mode(priv->hw, sta);
4950 struct ieee80211_sta *sta;
4969 sta = ieee80211_find_sta(vif, bss_conf->bssid);
4970 if (!sta) {
4971 dev_info(dev, "%s: ASSOC no sta found\n",
4976 macid = rtl8xxxu_get_macid(priv, sta);
4978 if (sta->deflink.ht_cap.ht_supported)
4980 if (sta->deflink.vht_cap.vht_supported)
4984 ramask = (sta->deflink.supp_rates[0] & 0xfff) |
4985 sta->deflink.ht_cap.mcs.rx_mask[0] << 12 |
4986 sta->deflink.ht_cap.mcs.rx_mask[1] << 20;
4987 if (sta->deflink.ht_cap.cap &
4993 (sta->deflink.ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40))
4998 sta_info = (struct rtl8xxxu_sta_info *)sta->drv_priv;
5506 struct ieee80211_sta *sta = NULL;
5541 if (control && control->sta)
5542 sta = control->sta;
5564 macid = rtl8xxxu_get_macid(priv, sta);
5587 if (ieee80211_is_data_qos(hdr->frame_control) && sta) {
5588 if (sta->deflink.ht_cap.ht_supported) {
5593 ampdu = (u32)sta->deflink.ht_cap.ampdu_density;
5601 if (!ieee80211_start_tx_ba_session(sta, tid, 0))
5607 sta && sta->deflink.ht_cap.cap &
5611 if (sta && vif && vif->bss_conf.use_short_preamble)
5617 if (sta && vif && vif->bss_conf.use_cts_prot)
6293 struct ieee80211_sta *sta;
6307 sta = ieee80211_find_sta_by_ifaddr(priv->hw, hdr->addr2,
6309 if (!sta)
6312 sta_info = (struct rtl8xxxu_sta_info *)sta->drv_priv;
7003 struct ieee80211_sta *sta,
7038 ether_addr_copy(mac_addr, sta->addr);
7093 struct ieee80211_sta *sta = params->sta;
7100 ampdu_factor = sta->deflink.ht_cap.ampdu_factor;
7101 ampdu_density = sta->deflink.ht_cap.ampdu_density;
7116 ieee80211_stop_tx_ba_cb_irqsafe(vif, sta->addr, tid);
7136 struct ieee80211_sta *sta, struct station_info *sinfo)
7154 int signal, struct ieee80211_sta *sta,
7157 struct rtl8xxxu_sta_info *sta_info = (struct rtl8xxxu_sta_info *)sta->drv_priv;
7164 u8 macid = rtl8xxxu_get_macid(priv, sta);
7195 rate_bitmap = (sta->deflink.supp_rates[0] & 0xfff) |
7196 (sta->deflink.ht_cap.mcs.rx_mask[0] << 12) |
7197 (sta->deflink.ht_cap.mcs.rx_mask[1] << 20);
7198 if (sta->deflink.ht_cap.cap &
7202 wireless_mode = rtl8xxxu_wireless_mode(hw, sta);
7374 static void rtl8xxxu_ra_iter(void *data, struct ieee80211_sta *sta)
7376 struct rtl8xxxu_sta_info *sta_info = (struct rtl8xxxu_sta_info *)sta->drv_priv;
7380 priv->fops->report_rssi(priv, rtl8xxxu_get_macid(priv, sta),
7382 rtl8xxxu_refresh_rate_mask(priv, signal, sta, false);
7387 struct ieee80211_sta *sta;
7395 static void rtl8xxxu_collect_sta_iter(void *data, struct ieee80211_sta *sta)
7404 stas_entry->sta = sta;
7424 rtl8xxxu_ra_iter(priv, sta_entry->sta);
7563 struct ieee80211_sta *sta)
7565 struct rtl8xxxu_sta_info *sta_info = (struct rtl8xxxu_sta_info *)sta->drv_priv;
7579 rtl8xxxu_refresh_rate_mask(priv, 0, sta, true);
7600 struct ieee80211_sta *sta)
7602 struct rtl8xxxu_sta_info *sta_info = (struct rtl8xxxu_sta_info *)sta->drv_priv;