Lines Matching refs:sta

59 	ret = wl12xx_cmd_set_peer_state(wl, wlvif, wlvif->sta.hlid);
228 true, wlvif->sta.hlid);
851 u8 hlid, struct ieee80211_sta *sta)
856 wl_sta = (void *)sta->drv_priv;
874 struct ieee80211_sta *sta;
882 sta = ieee80211_find_sta(vif, addr);
883 if (sta)
884 wlcore_save_freed_pkts(wl, wlvif, hlid, sta);
962 wlcore_save_freed_pkts_addr(wl, wlvif, wlvif->sta.hlid,
1221 hlid = wl12xx_tx_get_hlid(wl, wlvif, skb, control->sta);
2237 /* init sta/ibss data */
2238 wlvif->sta.hlid = WL12XX_INVALID_LINK_ID;
2239 wl12xx_allocate_rate_policy(wl, &wlvif->sta.basic_rate_idx);
2240 wl12xx_allocate_rate_policy(wl, &wlvif->sta.ap_rate_idx);
2241 wl12xx_allocate_rate_policy(wl, &wlvif->sta.p2p_rate_idx);
2242 wlcore_allocate_klv_template(wl, &wlvif->sta.klv_template_id);
2410 * Enter "forced psm". Make sure the sta is in psm against the ap,
2708 wlvif->sta.hlid = WL12XX_INVALID_LINK_ID;
2709 wl12xx_free_rate_policy(wl, &wlvif->sta.basic_rate_idx);
2710 wl12xx_free_rate_policy(wl, &wlvif->sta.ap_rate_idx);
2711 wl12xx_free_rate_policy(wl, &wlvif->sta.p2p_rate_idx);
2712 wlcore_free_klv_template(wl, &wlvif->sta.klv_template_id);
2964 wlvif->sta.klv_template_id,
2993 bool sta = wlvif->bss_type == BSS_TYPE_STA_BSS;
2995 /* make sure we are connected (sta) joined */
2996 if (sta &&
3001 if (!sta &&
3005 if (sta) {
3039 wlvif->sta.klv_template_id,
3346 u16 tx_seq_16, struct ieee80211_sta *sta,
3356 if (sta) {
3357 wl_sta = (struct wl1271_station *)sta->drv_priv;
3390 addr = sta ? sta->addr : bcast_addr;
3406 wlvif->sta.hlid == WL12XX_INVALID_LINK_ID)
3423 struct ieee80211_sta *sta,
3452 ret = wlcore_hw_set_key(wl, cmd, vif, sta, key_conf);
3468 struct ieee80211_sta *sta,
3481 wl1271_debug(DEBUG_CRYPT, "CMD: 0x%x sta: %p", cmd, sta);
3488 if (sta) {
3489 struct wl1271_station *wl_sta = (void *)sta->drv_priv;
3495 hlid = wlvif->sta.hlid;
3534 tx_seq_32, tx_seq_16, sta, is_pairwise);
3545 (sta || key_type == KEY_WEP) &&
3560 0, 0, sta, is_pairwise);
3608 wlvif->sta.hlid);
4343 struct ieee80211_sta *sta;
4396 sta = ieee80211_find_sta(vif, bss_conf->bssid);
4397 if (sta) {
4398 u8 *rx_mask = sta->deflink.ht_cap.mcs.rx_mask;
4401 sta_rate_set = sta->deflink.supp_rates[wlvif->band];
4402 if (sta->deflink.ht_cap.ht_supported)
4406 sta_ht_cap = sta->deflink.ht_cap;
4524 wlvif->sta.hlid);
4546 wlvif->sta.qos = bss_conf->qos;
4969 struct ieee80211_sta *sta)
4980 wl_sta = (struct wl1271_station *)sta->drv_priv;
4991 memcpy(wl->links[wl_sta->hlid].addr, sta->addr, ETH_ALEN);
5024 struct ieee80211_sta *sta)
5030 wl1271_debug(DEBUG_MAC80211, "mac80211 add sta %d", (int)sta->aid);
5032 ret = wl1271_allocate_sta(wl, wlvif, sta);
5036 wl_sta = (struct wl1271_station *)sta->drv_priv;
5039 ret = wl12xx_cmd_add_peer(wl, wlvif, sta, hlid);
5048 struct ieee80211_sta *sta)
5053 wl1271_debug(DEBUG_MAC80211, "mac80211 remove sta %d", (int)sta->aid);
5055 wl_sta = (struct wl1271_station *)sta->drv_priv;
5129 struct ieee80211_sta *sta,
5138 wl_sta = (struct wl1271_station *)sta->drv_priv;
5144 ret = wl12xx_sta_add(wl, wlvif, sta);
5156 wl12xx_sta_remove(wl, wlvif, sta);
5169 ret = wl12xx_cmd_add_peer(wl, wlvif, sta, wl_sta->hlid);
5173 ret = wl1271_acx_set_ht_capabilities(wl, &sta->deflink.ht_cap,
5202 wlcore_save_freed_pkts(wl, wlvif, wlvif->sta.hlid, sta);
5236 struct ieee80211_sta *sta,
5244 wl1271_debug(DEBUG_MAC80211, "mac80211 sta %d state=%d->%d",
5245 sta->aid, old_state, new_state);
5258 ret = wl12xx_update_sta_state(wl, wlvif, sta, old_state, new_state);
5277 struct ieee80211_sta *sta = params->sta;
5297 hlid = wlvif->sta.hlid;
5301 wl_sta = (struct wl1271_station *)sta->drv_priv;
5710 struct ieee80211_sta *sta,
5721 wlvif->rc_update_bw = sta->deflink.bandwidth;
5722 memcpy(&wlvif->rc_ht_cap, &sta->deflink.ht_cap,
5723 sizeof(sta->deflink.ht_cap));
5729 struct ieee80211_sta *sta,
5764 struct ieee80211_sta *sta)
5766 struct wl1271_station *wl_sta = (struct wl1271_station *)sta->drv_priv;