Lines Matching refs:mgd
106 if (!timer_pending(&sdata->u.mgd.timer) || in run_again()
107 time_before(timeout, sdata->u.mgd.timer.expires)) in run_again()
108 mod_timer(&sdata->u.mgd.timer, timeout); in run_again()
119 mod_timer(&sdata->u.mgd.bcn_mon_timer, in ieee80211_sta_reset_beacon_monitor()
120 round_jiffies_up(jiffies + sdata->u.mgd.beacon_timeout)); in ieee80211_sta_reset_beacon_monitor()
125 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_sta_reset_conn_monitor()
420 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_config_bw()
431 if (link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HT || !ht_oper) in ieee80211_config_bw()
435 if (link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_VHT) in ieee80211_config_bw()
439 if (link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HE || in ieee80211_config_bw()
447 if (link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_EHT || in ieee80211_config_bw()
467 link->u.mgd.conn_flags, in ieee80211_config_bw()
480 if (link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_80P80MHZ && in ieee80211_config_bw()
483 if (link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_160MHZ && in ieee80211_config_bw()
486 if (link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_40MHZ && in ieee80211_config_bw()
495 link->u.mgd.bssid, chandef.chan->center_freq, in ieee80211_config_bw()
500 if (flags != (link->u.mgd.conn_flags & in ieee80211_config_bw()
512 link->u.mgd.bssid, flags, ifmgd->flags); in ieee80211_config_bw()
521 link->u.mgd.bssid); in ieee80211_config_bw()
960 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_assoc_link_elems()
985 else if (sdata->u.mgd.powersave) in ieee80211_assoc_link_elems()
1136 link->u.mgd.conn_flags = assoc_data->link[link_id].conn_flags; in ieee80211_assoc_link_elems()
1200 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_assoc_add_ml_elem()
1304 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_send_assoc()
1421 !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HE) && in ieee80211_send_assoc()
1547 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_send_nullfunc()
1591 memcpy(nullfunc->addr1, sdata->deflink.u.mgd.bssid, ETH_ALEN); in ieee80211_send_4addr_nullfunc()
1593 memcpy(nullfunc->addr3, sdata->deflink.u.mgd.bssid, ETH_ALEN); in ieee80211_send_4addr_nullfunc()
1605 container_of(work, struct ieee80211_link_data, u.mgd.chswitch_work); in ieee80211_chswitch_work()
1608 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_chswitch_work()
1662 link->u.mgd.csa_waiting_bcn = true; in ieee80211_chswitch_work()
1677 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_chswitch_post_beacon()
1691 link->u.mgd.csa_waiting_bcn = false; in ieee80211_chswitch_post_beacon()
1696 link->u.mgd.beacon_crc_valid = false; in ieee80211_chswitch_post_beacon()
1713 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_chswitch_done()
1726 &sdata->deflink.u.mgd.chswitch_work); in ieee80211_chswitch_done()
1734 from_timer(link, t, u.mgd.chswitch_timer); in ieee80211_chswitch_timer()
1737 &link->u.mgd.chswitch_work); in ieee80211_chswitch_timer()
1775 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_sta_process_chanswitch()
1776 struct cfg80211_bss *cbss = link->u.mgd.bss; in ieee80211_sta_process_chanswitch()
1797 link->u.mgd.conn_flags, in ieee80211_sta_process_chanswitch()
1798 link->u.mgd.bssid, &csa_ie); in ieee80211_sta_process_chanswitch()
1813 !link->u.mgd.csa_waiting_bcn) { in ieee80211_sta_process_chanswitch()
1828 link->u.mgd.bssid, in ieee80211_sta_process_chanswitch()
1841 link->u.mgd.bssid, in ieee80211_sta_process_chanswitch()
1853 if (link->u.mgd.csa_ignored_same_chan) in ieee80211_sta_process_chanswitch()
1857 link->u.mgd.bssid); in ieee80211_sta_process_chanswitch()
1858 link->u.mgd.csa_ignored_same_chan = true; in ieee80211_sta_process_chanswitch()
1908 link->u.mgd.csa_ignored_same_chan = false; in ieee80211_sta_process_chanswitch()
1909 link->u.mgd.beacon_crc_valid = false; in ieee80211_sta_process_chanswitch()
1927 ieee80211_queue_work(&local->hw, &link->u.mgd.chswitch_work); in ieee80211_sta_process_chanswitch()
1929 mod_timer(&link->u.mgd.chswitch_timer, in ieee80211_sta_process_chanswitch()
2087 link->u.mgd.bssid); in ieee80211_handle_pwr_constr()
2096 pwr_level_cisco, link->u.mgd.bssid); in ieee80211_handle_pwr_constr()
2152 struct ieee80211_if_managed *mgd = &sdata->u.mgd; in ieee80211_powersave_allowed() local
2156 if (!mgd->powersave) in ieee80211_powersave_allowed()
2159 if (mgd->broken_ap) in ieee80211_powersave_allowed()
2162 if (!mgd->associated) in ieee80211_powersave_allowed()
2165 if (mgd->flags & IEEE80211_STA_CONNECTION_POLL) in ieee80211_powersave_allowed()
2169 !sdata->deflink.u.mgd.have_beacon) in ieee80211_powersave_allowed()
2212 u8 dtimper = found->deflink.u.mgd.dtim_period; in ieee80211_recalc_ps()
2273 ifmgd = &sdata->u.mgd; in ieee80211_dynamic_ps_enable_work()
2358 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in __ieee80211_sta_handle_tspec_ac_params()
2445 u.mgd.tx_tspec_wk.work); in ieee80211_sta_handle_tspec_ac_params_wk()
2453 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_mgd_set_link_qos_params()
2481 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_sta_wmm_params()
2508 if (count == link->u.mgd.wmm_last_param_set && in ieee80211_sta_wmm_params()
2509 mu_edca_count == link->u.mgd.mu_edca_last_param_set) in ieee80211_sta_wmm_params()
2511 link->u.mgd.wmm_last_param_set = count; in ieee80211_sta_wmm_params()
2512 link->u.mgd.mu_edca_last_param_set = mu_edca_count; in ieee80211_sta_wmm_params()
2617 sdata->u.mgd.flags &= ~IEEE80211_STA_CONNECTION_POLL; in __ieee80211_stop_poll()
2682 sdata->u.mgd.beacon_timeout = in ieee80211_link_set_associated()
2693 link->u.mgd.bss = cbss; in ieee80211_link_set_associated()
2694 memcpy(link->u.mgd.bssid, cbss->bssid, ETH_ALEN); in ieee80211_link_set_associated()
2711 link->u.mgd.p2p_noa_index = in ieee80211_link_set_associated()
2719 if (link->u.mgd.have_beacon) { in ieee80211_link_set_associated()
2726 bss_conf->dtim_period = link->u.mgd.dtim_period ?: 1; in ieee80211_link_set_associated()
2751 sdata->u.mgd.associated = true; in ieee80211_set_associated()
2820 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_set_disassoc()
2841 sdata->deflink.u.mgd.bss = NULL; in ieee80211_set_disassoc()
2880 !sdata->deflink.u.mgd.have_beacon) { in ieee80211_set_disassoc()
2896 eth_zero_addr(sdata->deflink.u.mgd.bssid); in ieee80211_set_disassoc()
2912 sdata->deflink.u.mgd.p2p_noa_index = -1; in ieee80211_set_disassoc()
2956 del_timer_sync(&sdata->u.mgd.conn_mon_timer); in ieee80211_set_disassoc()
2957 del_timer_sync(&sdata->u.mgd.bcn_mon_timer); in ieee80211_set_disassoc()
2958 del_timer_sync(&sdata->u.mgd.timer); in ieee80211_set_disassoc()
2959 del_timer_sync(&sdata->deflink.u.mgd.chswitch_timer); in ieee80211_set_disassoc()
2964 sdata->deflink.u.mgd.have_beacon = false; in ieee80211_set_disassoc()
2965 sdata->deflink.u.mgd.tracking_signal_avg = false; in ieee80211_set_disassoc()
2966 sdata->deflink.u.mgd.disable_wmm_tracking = false; in ieee80211_set_disassoc()
2969 sdata->deflink.u.mgd.conn_flags = 0; in ieee80211_set_disassoc()
2982 sdata->deflink.u.mgd.csa_waiting_bcn = false; in ieee80211_set_disassoc()
2983 sdata->deflink.u.mgd.csa_ignored_same_chan = false; in ieee80211_set_disassoc()
3005 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_reset_ap_probe()
3039 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_sta_tx_wmm_ac_notify()
3083 !sdata->u.mgd.probe_send_count) in ieee80211_sta_tx_notify()
3087 sdata->u.mgd.probe_send_count = 0; in ieee80211_sta_tx_notify()
3089 sdata->u.mgd.nullfunc_failed = true; in ieee80211_sta_tx_notify()
3109 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_mgd_probe_ap_send()
3149 sdata->deflink.u.mgd.bss->channel); in ieee80211_mgd_probe_ap_send()
3159 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_mgd_probe_ap()
3230 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_ap_probereq_get()
3243 cbss = sdata->deflink.u.mgd.bss; in ieee80211_ap_probereq_get()
3291 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in __ieee80211_disconnect()
3322 cfg80211_unlink_bss(local->hw.wiphy, link->u.mgd.bss); in __ieee80211_disconnect()
3323 link->u.mgd.bss = NULL; in __ieee80211_disconnect()
3335 sdata->deflink.u.mgd.csa_waiting_bcn = false; in __ieee80211_disconnect()
3355 u.mgd.beacon_connection_loss_work); in ieee80211_beacon_connection_loss_work()
3356 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_beacon_connection_loss_work()
3371 sdata->deflink.u.mgd.beacon_loss_count++; in ieee80211_beacon_connection_loss_work()
3380 u.mgd.csa_connection_drop_work); in ieee80211_csa_connection_drop_work()
3392 sdata->u.mgd.connection_loss = false; in ieee80211_beacon_loss()
3393 ieee80211_queue_work(hw, &sdata->u.mgd.beacon_connection_loss_work); in ieee80211_beacon_loss()
3404 sdata->u.mgd.connection_loss = true; in ieee80211_connection_loss()
3405 ieee80211_queue_work(hw, &sdata->u.mgd.beacon_connection_loss_work); in ieee80211_connection_loss()
3419 sdata->u.mgd.driver_disconnect = true; in ieee80211_disconnect()
3420 sdata->u.mgd.reconnect = reconnect; in ieee80211_disconnect()
3421 ieee80211_queue_work(hw, &sdata->u.mgd.beacon_connection_loss_work); in ieee80211_disconnect()
3428 struct ieee80211_mgd_auth_data *auth_data = sdata->u.mgd.auth_data; in ieee80211_destroy_auth_data()
3438 del_timer_sync(&sdata->u.mgd.timer); in ieee80211_destroy_auth_data()
3442 sdata->deflink.u.mgd.conn_flags = 0; in ieee80211_destroy_auth_data()
3443 eth_zero_addr(sdata->deflink.u.mgd.bssid); in ieee80211_destroy_auth_data()
3446 sdata->u.mgd.flags = 0; in ieee80211_destroy_auth_data()
3456 sdata->u.mgd.auth_data = NULL; in ieee80211_destroy_auth_data()
3469 struct ieee80211_mgd_assoc_data *assoc_data = sdata->u.mgd.assoc_data; in ieee80211_destroy_assoc_data()
3479 del_timer_sync(&sdata->u.mgd.timer); in ieee80211_destroy_assoc_data()
3482 sdata->deflink.u.mgd.conn_flags = 0; in ieee80211_destroy_assoc_data()
3483 eth_zero_addr(sdata->deflink.u.mgd.bssid); in ieee80211_destroy_assoc_data()
3486 sdata->u.mgd.flags = 0; in ieee80211_destroy_assoc_data()
3514 sdata->u.mgd.assoc_data = NULL; in ieee80211_destroy_assoc_data()
3521 struct ieee80211_mgd_auth_data *auth_data = sdata->u.mgd.auth_data; in ieee80211_auth_challenge()
3549 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_mark_sta_auth()
3582 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_rx_mgmt_auth()
3747 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_rx_mgmt_deauth()
3791 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_rx_mgmt_disassoc()
3923 struct ieee80211_mgd_assoc_data *assoc_data = sdata->u.mgd.assoc_data; in ieee80211_assoc_config_link()
3954 link->u.mgd.tdls_chan_switch_prohibited = in ieee80211_assoc_config_link()
3967 (!(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HT) && in ieee80211_assoc_config_link()
3969 (!(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_VHT) && in ieee80211_assoc_config_link()
4005 !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HT)) { in ieee80211_assoc_config_link()
4011 !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HT)) { in ieee80211_assoc_config_link()
4017 !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_VHT)) { in ieee80211_assoc_config_link()
4023 !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_VHT)) { in ieee80211_assoc_config_link()
4036 if (!is_6ghz && !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HT) && in ieee80211_assoc_config_link()
4044 if (!is_6ghz && !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_VHT) && in ieee80211_assoc_config_link()
4052 if (is_6ghz && !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HE) && in ieee80211_assoc_config_link()
4066 if (!(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HE) && in ieee80211_assoc_config_link()
4075 if (elems->ht_cap_elem && !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HT)) in ieee80211_assoc_config_link()
4080 if (elems->vht_cap_elem && !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_VHT)) in ieee80211_assoc_config_link()
4085 if (elems->he_operation && !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HE) && in ieee80211_assoc_config_link()
4105 !(link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_EHT)) { in ieee80211_assoc_config_link()
4193 link->u.mgd.wmm_last_param_set = -1; in ieee80211_assoc_config_link()
4194 link->u.mgd.mu_edca_last_param_set = -1; in ieee80211_assoc_config_link()
4196 if (link->u.mgd.disable_wmm_tracking) { in ieee80211_assoc_config_link()
4210 link->u.mgd.disable_wmm_tracking = true; in ieee80211_assoc_config_link()
4313 if (link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HT) in ieee80211_max_rx_chains()
4326 if (link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_VHT) in ieee80211_max_rx_chains()
4345 if (link->u.mgd.conn_flags & IEEE80211_CONN_DISABLE_HE) in ieee80211_max_rx_chains()
4861 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_assoc_success()
4926 &link->u.mgd.dtim_period); in ieee80211_assoc_success()
4927 link->conf->dtim_period = link->u.mgd.dtim_period ?: 1; in ieee80211_assoc_success()
4932 &link->u.mgd.conn_flags); in ieee80211_assoc_success()
5015 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_rx_mgmt_assoc_resp()
5261 ifmgd = &sdata->u.mgd; in ieee80211_rx_mgmt_probe_resp()
5289 ether_addr_equal(mgmt->bssid, link->u.mgd.bssid)) in ieee80211_rx_mgmt_probe_resp()
5327 if (!link->u.mgd.tracking_signal_avg) { in ieee80211_handle_beacon_sig()
5328 link->u.mgd.tracking_signal_avg = true; in ieee80211_handle_beacon_sig()
5329 ewma_beacon_signal_init(&link->u.mgd.ave_beacon_signal); in ieee80211_handle_beacon_sig()
5330 link->u.mgd.last_cqm_event_signal = 0; in ieee80211_handle_beacon_sig()
5331 link->u.mgd.count_beacon_signal = 1; in ieee80211_handle_beacon_sig()
5332 link->u.mgd.last_ave_beacon_signal = 0; in ieee80211_handle_beacon_sig()
5334 link->u.mgd.count_beacon_signal++; in ieee80211_handle_beacon_sig()
5337 ewma_beacon_signal_add(&link->u.mgd.ave_beacon_signal, in ieee80211_handle_beacon_sig()
5341 link->u.mgd.count_beacon_signal >= IEEE80211_SIGNAL_AVE_MIN_COUNT) { in ieee80211_handle_beacon_sig()
5342 int sig = -ewma_beacon_signal_read(&link->u.mgd.ave_beacon_signal); in ieee80211_handle_beacon_sig()
5343 int last_sig = link->u.mgd.last_ave_beacon_signal; in ieee80211_handle_beacon_sig()
5354 link->u.mgd.last_ave_beacon_signal = sig; in ieee80211_handle_beacon_sig()
5360 link->u.mgd.last_ave_beacon_signal = sig; in ieee80211_handle_beacon_sig()
5367 link->u.mgd.count_beacon_signal >= IEEE80211_SIGNAL_AVE_MIN_COUNT && in ieee80211_handle_beacon_sig()
5369 int sig = -ewma_beacon_signal_read(&link->u.mgd.ave_beacon_signal); in ieee80211_handle_beacon_sig()
5370 int last_event = link->u.mgd.last_cqm_event_signal; in ieee80211_handle_beacon_sig()
5376 link->u.mgd.last_cqm_event_signal = sig; in ieee80211_handle_beacon_sig()
5383 link->u.mgd.last_cqm_event_signal = sig; in ieee80211_handle_beacon_sig()
5392 link->u.mgd.count_beacon_signal >= IEEE80211_SIGNAL_AVE_MIN_COUNT) { in ieee80211_handle_beacon_sig()
5393 int sig = -ewma_beacon_signal_read(&link->u.mgd.ave_beacon_signal); in ieee80211_handle_beacon_sig()
5394 int last_event = link->u.mgd.last_cqm_event_signal; in ieee80211_handle_beacon_sig()
5400 link->u.mgd.last_cqm_event_signal = sig; in ieee80211_handle_beacon_sig()
5407 link->u.mgd.last_cqm_event_signal = sig; in ieee80211_handle_beacon_sig()
5431 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_rx_mgmt_beacon()
5499 link->u.mgd.dtim_period = elems->dtim_period; in ieee80211_rx_mgmt_beacon()
5500 link->u.mgd.have_beacon = true; in ieee80211_rx_mgmt_beacon()
5531 !ieee80211_rx_our_beacon(bssid, link->u.mgd.bss)) in ieee80211_rx_mgmt_beacon()
5533 bssid = link->u.mgd.bssid; in ieee80211_rx_mgmt_beacon()
5558 parse_params.bss = link->u.mgd.bss; in ieee80211_rx_mgmt_beacon()
5575 } else if (!local->pspolling && sdata->u.mgd.powersave) { in ieee80211_rx_mgmt_beacon()
5600 if (link->u.mgd.p2p_noa_index != noa.index) { in ieee80211_rx_mgmt_beacon()
5602 link->u.mgd.p2p_noa_index = noa.index; in ieee80211_rx_mgmt_beacon()
5609 link->u.mgd.beacon_crc_valid = false; in ieee80211_rx_mgmt_beacon()
5611 } else if (link->u.mgd.p2p_noa_index != -1) { in ieee80211_rx_mgmt_beacon()
5613 link->u.mgd.p2p_noa_index = -1; in ieee80211_rx_mgmt_beacon()
5616 link->u.mgd.beacon_crc_valid = false; in ieee80211_rx_mgmt_beacon()
5620 if (link->u.mgd.csa_waiting_bcn) in ieee80211_rx_mgmt_beacon()
5640 if ((ncrc == link->u.mgd.beacon_crc && link->u.mgd.beacon_crc_valid) || in ieee80211_rx_mgmt_beacon()
5643 link->u.mgd.beacon_crc = ncrc; in ieee80211_rx_mgmt_beacon()
5644 link->u.mgd.beacon_crc_valid = true; in ieee80211_rx_mgmt_beacon()
5652 if (!link->u.mgd.disable_wmm_tracking && in ieee80211_rx_mgmt_beacon()
5662 if (!link->u.mgd.have_beacon) { in ieee80211_rx_mgmt_beacon()
5667 link->u.mgd.have_beacon = true; in ieee80211_rx_mgmt_beacon()
5865 from_timer(sdata, t, u.mgd.timer); in ieee80211_sta_timer()
5885 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_auth()
5959 struct ieee80211_mgd_assoc_data *assoc_data = sdata->u.mgd.assoc_data; in ieee80211_do_assoc()
6007 sdata->u.mgd.status_fc = fc; in ieee80211_mgd_conn_tx_status()
6008 sdata->u.mgd.status_acked = acked; in ieee80211_mgd_conn_tx_status()
6009 sdata->u.mgd.status_received = true; in ieee80211_mgd_conn_tx_status()
6017 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_sta_work()
6085 !sdata->deflink.u.mgd.have_beacon) || in ieee80211_sta_work()
6101 u8 *bssid = sdata->deflink.u.mgd.bssid; in ieee80211_sta_work()
6161 from_timer(sdata, t, u.mgd.bcn_mon_timer); in ieee80211_sta_bcn_mon_timer()
6167 !sdata->deflink.u.mgd.csa_waiting_bcn) in ieee80211_sta_bcn_mon_timer()
6173 sdata->u.mgd.connection_loss = false; in ieee80211_sta_bcn_mon_timer()
6175 &sdata->u.mgd.beacon_connection_loss_work); in ieee80211_sta_bcn_mon_timer()
6181 from_timer(sdata, t, u.mgd.conn_mon_timer); in ieee80211_sta_conn_mon_timer()
6182 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_sta_conn_mon_timer()
6191 !sdata->deflink.u.mgd.csa_waiting_bcn) in ieee80211_sta_conn_mon_timer()
6218 u.mgd.monitor_work); in ieee80211_sta_monitor_work()
6231 &sdata->u.mgd.monitor_work); in ieee80211_restart_sta_timer()
6238 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_mgd_quiesce()
6300 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_sta_restart()
6335 u.mgd.request_smps_work); in ieee80211_request_smps_mgd_work()
6339 link->u.mgd.driver_smps_mode); in ieee80211_request_smps_mgd_work()
6346 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_sta_setup_sdata()
6377 link->u.mgd.p2p_noa_index = -1; in ieee80211_mgd_setup_link()
6378 link->u.mgd.conn_flags = 0; in ieee80211_mgd_setup_link()
6379 link->conf->bssid = link->u.mgd.bssid; in ieee80211_mgd_setup_link()
6381 INIT_WORK(&link->u.mgd.request_smps_work, in ieee80211_mgd_setup_link()
6384 link->u.mgd.req_smps = IEEE80211_SMPS_AUTOMATIC; in ieee80211_mgd_setup_link()
6386 link->u.mgd.req_smps = IEEE80211_SMPS_OFF; in ieee80211_mgd_setup_link()
6388 INIT_WORK(&link->u.mgd.chswitch_work, ieee80211_chswitch_work); in ieee80211_mgd_setup_link()
6389 timer_setup(&link->u.mgd.chswitch_timer, ieee80211_chswitch_timer, 0); in ieee80211_mgd_setup_link()
6391 if (sdata->u.mgd.assoc_data) in ieee80211_mgd_setup_link()
6393 sdata->u.mgd.assoc_data->link[link_id].addr); in ieee80211_mgd_setup_link()
6418 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_prep_connection()
6516 memcpy(link->u.mgd.bssid, cbss->bssid, ETH_ALEN); in ieee80211_prep_connection()
6547 &link->u.mgd.conn_flags); in ieee80211_prep_connection()
6577 WARN_ON_ONCE(!ether_addr_equal(link->u.mgd.bssid, cbss->bssid)); in ieee80211_prep_connection()
6596 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_mgd_auth()
6743 eth_zero_addr(sdata->deflink.u.mgd.bssid); in ieee80211_mgd_auth()
6823 link->u.mgd.beacon_crc_valid = false; in ieee80211_setup_assoc_link()
6824 link->u.mgd.dtim_period = 0; in ieee80211_setup_assoc_link()
6825 link->u.mgd.have_beacon = false; in ieee80211_setup_assoc_link()
6842 &link->u.mgd.dtim_period); in ieee80211_setup_assoc_link()
6844 sdata->deflink.u.mgd.have_beacon = true; in ieee80211_setup_assoc_link()
6884 if (link->u.mgd.req_smps == IEEE80211_SMPS_AUTOMATIC) { in ieee80211_setup_assoc_link()
6885 if (sdata->u.mgd.powersave) in ieee80211_setup_assoc_link()
6890 link->smps_mode = link->u.mgd.req_smps; in ieee80211_setup_assoc_link()
6901 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_mgd_assoc()
6917 if (sdata->u.mgd.use_4addr && req->link_id >= 0) in ieee80211_mgd_assoc()
7117 conn_flags |= link->u.mgd.conn_flags; in ieee80211_mgd_assoc()
7120 override = link->u.mgd.conn_flags != conn_flags; in ieee80211_mgd_assoc()
7121 link->u.mgd.conn_flags |= conn_flags; in ieee80211_mgd_assoc()
7188 link->u.mgd.conn_flags; in ieee80211_mgd_assoc()
7202 link->u.mgd.bssid); in ieee80211_mgd_assoc()
7214 eth_zero_addr(sdata->deflink.u.mgd.bssid); in ieee80211_mgd_assoc()
7226 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_mgd_deauth()
7296 if (!sdata->u.mgd.associated || in ieee80211_mgd_disassoc()
7317 cancel_work_sync(&link->u.mgd.request_smps_work); in ieee80211_mgd_stop_link()
7318 cancel_work_sync(&link->u.mgd.chswitch_work); in ieee80211_mgd_stop_link()
7323 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_mgd_stop()
7391 sdata->u.mgd.rssi_min_thold = rssi_min_thold*16; in _ieee80211_enable_rssi_reports()
7392 sdata->u.mgd.rssi_max_thold = rssi_max_thold*16; in _ieee80211_enable_rssi_reports()