• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/net/mac80211/

Lines Matching refs:sta

35 				  struct sta_info *sta)
39 int i = sta->txrate;
42 sdata = IEEE80211_DEV_TO_SUB_IF(sta->dev);
56 if (sta->supp_rates & BIT(i) &&
59 sta->txrate = i;
67 struct sta_info *sta)
71 int i = sta->txrate;
73 sdata = IEEE80211_DEV_TO_SUB_IF(sta->dev);
85 if (sta->supp_rates & BIT(i) &&
87 sta->txrate = i;
139 struct sta_info *sta;
142 sta = sta_info_get(local, hdr->addr1);
144 if (!sta)
147 srctrl = sta->rate_ctrl_priv;
150 sta->antenna_sel_tx = sta->antenna_sel_tx == 1 ? 2 : 1;
151 sta->antenna_sel_rx = sta->antenna_sel_rx == 1 ? 2 : 1;
156 sta->antenna_sel_tx, sta->antenna_sel_rx, jiffies);
159 sta->tx_retry_failed++;
160 sta->tx_num_consecutive_failures++;
161 sta->tx_num_mpdu_fail++;
163 sta->last_ack_rssi[0] = sta->last_ack_rssi[1];
164 sta->last_ack_rssi[1] = sta->last_ack_rssi[2];
165 sta->last_ack_rssi[2] = status->ack_signal;
166 sta->tx_num_consecutive_failures = 0;
167 sta->tx_num_mpdu_ok++;
169 sta->tx_retry_count += status->retry_count;
170 sta->tx_num_mpdu_fail += status->retry_count;
178 per_failed = (100 * sta->tx_num_mpdu_fail) /
179 (sta->tx_num_mpdu_fail + sta->tx_num_mpdu_ok);
184 rate_control_rate_dec(local, sta);
186 rate_control_rate_inc(local, sta);
192 } else if (sta->tx_num_consecutive_failures >=
194 rate_control_rate_dec(local, sta);
203 dev->name, MAC_ARG(sta->addr),
214 sta_info_put(sta);
227 struct sta_info *sta;
242 sta = sta_info_get(local, hdr->addr1);
244 if (!sta)
249 sta->txrate = sdata->bss->force_unicast_rateidx;
251 rateidx = sta->txrate;
256 sta->last_txrate = rateidx;
261 !(sta->supp_rates & BIT(nonerp_idx))))
265 sta_info_put(sta);
273 struct sta_info *sta)
277 sta->txrate = 0;
284 if ((sta->supp_rates & BIT(i)) &&
286 sta->txrate = i;