Lines Matching refs:sta

336 			       struct sta_info *sta,  in ieee80211_config_bw()  argument
360 if (WARN_ON_ONCE(!sta)) in ieee80211_config_bw()
437 if (new_sta_bw > sta->cur_max_bandwidth) in ieee80211_config_bw()
438 new_sta_bw = sta->cur_max_bandwidth; in ieee80211_config_bw()
440 if (new_sta_bw < sta->sta.bandwidth) { in ieee80211_config_bw()
441 sta->sta.bandwidth = new_sta_bw; in ieee80211_config_bw()
442 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
454 if (new_sta_bw > sta->sta.bandwidth) { in ieee80211_config_bw()
455 sta->sta.bandwidth = new_sta_bw; in ieee80211_config_bw()
456 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
1455 struct sta_info *sta = NULL; in ieee80211_powersave_allowed() local
1474 sta = sta_info_get(sdata, mgd->bssid); in ieee80211_powersave_allowed()
1475 if (sta) in ieee80211_powersave_allowed()
1476 authorized = test_sta_flag(sta, WLAN_STA_AUTHORIZED); in ieee80211_powersave_allowed()
2579 struct sta_info *sta; in ieee80211_rx_mgmt_auth() local
2661 sta = sta_info_get(sdata, bssid); in ieee80211_rx_mgmt_auth()
2662 if (!sta) { in ieee80211_rx_mgmt_auth()
2666 if (sta_info_move_state(sta, IEEE80211_STA_AUTH)) { in ieee80211_rx_mgmt_auth()
2862 struct sta_info *sta; in ieee80211_assoc_success() local
2993 sta = sta_info_get(sdata, cbss->bssid); in ieee80211_assoc_success()
2994 if (WARN_ON(!sta)) { in ieee80211_assoc_success()
3005 elems.ht_cap_elem, sta); in ieee80211_assoc_success()
3009 elems.vht_cap_elem, sta); in ieee80211_assoc_success()
3030 sta->sta.rx_nss = nss; in ieee80211_assoc_success()
3033 rate_control_rate_init(sta); in ieee80211_assoc_success()
3036 set_sta_flag(sta, WLAN_STA_MFP); in ieee80211_assoc_success()
3037 sta->sta.mfp = true; in ieee80211_assoc_success()
3039 sta->sta.mfp = false; in ieee80211_assoc_success()
3042 sta->sta.wme = elems.wmm_param && local->hw.queues >= IEEE80211_NUM_ACS; in ieee80211_assoc_success()
3044 err = sta_info_move_state(sta, IEEE80211_STA_ASSOC); in ieee80211_assoc_success()
3046 err = sta_info_move_state(sta, IEEE80211_STA_AUTHORIZED); in ieee80211_assoc_success()
3050 sta->sta.addr); in ieee80211_assoc_success()
3051 WARN_ON(__sta_info_destroy(sta)); in ieee80211_assoc_success()
3297 struct sta_info *sta; in ieee80211_rx_mgmt_beacon() local
3566 sta = sta_info_get(sdata, bssid); in ieee80211_rx_mgmt_beacon()
3568 if (ieee80211_config_bw(sdata, sta, in ieee80211_rx_mgmt_beacon()
3581 if (sta && elems.opmode_notif) in ieee80211_rx_mgmt_beacon()
3582 ieee80211_vht_handle_opmode(sdata, sta, *elems.opmode_notif, in ieee80211_rx_mgmt_beacon()
4387 new_sta->sta.supp_rates[cbss->channel->band] = rates; in ieee80211_prep_connection()