Lines Matching refs:sta

343 			       struct sta_info *sta,  in ieee80211_config_bw()  argument
367 if (WARN_ON_ONCE(!sta)) in ieee80211_config_bw()
444 if (new_sta_bw > sta->cur_max_bandwidth) in ieee80211_config_bw()
445 new_sta_bw = sta->cur_max_bandwidth; in ieee80211_config_bw()
447 if (new_sta_bw < sta->sta.bandwidth) { in ieee80211_config_bw()
448 sta->sta.bandwidth = new_sta_bw; in ieee80211_config_bw()
449 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
461 if (new_sta_bw > sta->sta.bandwidth) { in ieee80211_config_bw()
462 sta->sta.bandwidth = new_sta_bw; in ieee80211_config_bw()
463 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw()
1419 struct sta_info *sta = NULL; in ieee80211_powersave_allowed() local
1438 sta = sta_info_get(sdata, mgd->bssid); in ieee80211_powersave_allowed()
1439 if (sta) in ieee80211_powersave_allowed()
1440 authorized = test_sta_flag(sta, WLAN_STA_AUTHORIZED); in ieee80211_powersave_allowed()
2416 struct sta_info *sta; in ieee80211_beacon_connection_loss_work() local
2420 sta = sta_info_get(sdata, ifmgd->bssid); in ieee80211_beacon_connection_loss_work()
2421 if (sta) in ieee80211_beacon_connection_loss_work()
2422 sta->beacon_loss_count++; in ieee80211_beacon_connection_loss_work()
2529 struct sta_info *sta; in ieee80211_rx_mgmt_auth() local
2611 sta = sta_info_get(sdata, bssid); in ieee80211_rx_mgmt_auth()
2612 if (!sta) { in ieee80211_rx_mgmt_auth()
2616 if (sta_info_move_state(sta, IEEE80211_STA_AUTH)) { in ieee80211_rx_mgmt_auth()
2826 struct sta_info *sta; in ieee80211_assoc_success() local
2957 sta = sta_info_get(sdata, cbss->bssid); in ieee80211_assoc_success()
2958 if (WARN_ON(!sta)) { in ieee80211_assoc_success()
2969 elems.ht_cap_elem, sta); in ieee80211_assoc_success()
2973 elems.vht_cap_elem, sta); in ieee80211_assoc_success()
2994 sta->sta.rx_nss = nss; in ieee80211_assoc_success()
2997 rate_control_rate_init(sta); in ieee80211_assoc_success()
3000 set_sta_flag(sta, WLAN_STA_MFP); in ieee80211_assoc_success()
3001 sta->sta.mfp = true; in ieee80211_assoc_success()
3003 sta->sta.mfp = false; in ieee80211_assoc_success()
3006 sta->sta.wme = elems.wmm_param && local->hw.queues >= IEEE80211_NUM_ACS; in ieee80211_assoc_success()
3008 err = sta_info_move_state(sta, IEEE80211_STA_ASSOC); in ieee80211_assoc_success()
3010 err = sta_info_move_state(sta, IEEE80211_STA_AUTHORIZED); in ieee80211_assoc_success()
3014 sta->sta.addr); in ieee80211_assoc_success()
3015 WARN_ON(__sta_info_destroy(sta)); in ieee80211_assoc_success()
3261 struct sta_info *sta; in ieee80211_rx_mgmt_beacon() local
3536 sta = sta_info_get(sdata, bssid); in ieee80211_rx_mgmt_beacon()
3538 if (ieee80211_config_bw(sdata, sta, in ieee80211_rx_mgmt_beacon()
3551 if (sta && elems.opmode_notif) in ieee80211_rx_mgmt_beacon()
3552 ieee80211_vht_handle_opmode(sdata, sta, *elems.opmode_notif, in ieee80211_rx_mgmt_beacon()
4392 new_sta->sta.supp_rates[cbss->channel->band] = rates; in ieee80211_prep_connection()