/net/mac80211/ |
D | sta_info.c | 359 if (link_sta != &sta->deflink) in sta_remove_link() 371 if (link_sta != &sta->deflink) in sta_remove_link() 439 sta_info_free_link(&sta->deflink); in sta_info_free() 546 if (sta_info_alloc_link(local, &sta->deflink, gfp)) in __sta_info_alloc() 550 sta_info_add_link(sta, link_id, &sta->deflink, in __sta_info_alloc() 551 &sta->sta.deflink); in __sta_info_alloc() 554 sta_info_add_link(sta, 0, &sta->deflink, &sta->sta.deflink); in __sta_info_alloc() 557 sta->sta.cur = &sta->sta.deflink.agg; in __sta_info_alloc() 580 memcpy(sta->deflink.addr, link_addr, ETH_ALEN); in __sta_info_alloc() 581 memcpy(sta->sta.deflink.addr, link_addr, ETH_ALEN); in __sta_info_alloc() [all …]
|
D | status.c | 75 sta->deflink.status_stats.filtered++; in ieee80211_handle_filtered_frame() 226 sdata->deflink.smps_mode = smps_mode; in ieee80211_frame_acked() 808 sta->deflink.status_stats.lost_packets++; in ieee80211_lost_packet() 821 if (sta->deflink.status_stats.lost_packets < pkt_thr || in ieee80211_lost_packet() 822 !time_after(jiffies, sta->deflink.status_stats.last_pkt_time + pkt_time)) in ieee80211_lost_packet() 826 sta->deflink.status_stats.lost_packets, in ieee80211_lost_packet() 828 sta->deflink.status_stats.lost_packets = 0; in ieee80211_lost_packet() 960 sta->deflink.tx_stats.last_rate = in __ieee80211_tx_status() 1006 sta->deflink.status_stats.msdu_failed[tid]++; in __ieee80211_tx_status() 1008 sta->deflink.status_stats.msdu_retries[tid] += in __ieee80211_tx_status() [all …]
|
D | ocb.c | 76 sta->sta.deflink.supp_rates[band] = ieee80211_mandatory_rates(sband); in ieee80211_ocb_rx_no_sta() 181 sdata->deflink.operating_11g_mode = true; in ieee80211_ocb_join() 182 sdata->deflink.smps_mode = IEEE80211_SMPS_OFF; in ieee80211_ocb_join() 183 sdata->deflink.needed_rx_chains = sdata->local->rx_chains; in ieee80211_ocb_join() 186 err = ieee80211_link_use_channel(&sdata->deflink, &setup->chandef, in ieee80211_ocb_join() 229 ieee80211_link_release_channel(&sdata->deflink); in ieee80211_ocb_leave()
|
D | cfg.c | 41 return &sdata->deflink; in ieee80211_link_or_deflink() 66 ieee80211_link_info_change_notify(sdata, &sdata->deflink, in ieee80211_set_mu_mimo_follow() 239 sta = sta_info_get(sdata, sdata->deflink.u.mgd.bssid); in ieee80211_change_iface() 584 struct ieee80211_link_data *link = &sdata->deflink; in ieee80211_lookup_key() 608 link_sta = &sta->deflink; in ieee80211_lookup_key() 925 ieee80211_link_release_channel(&sdata->deflink); in ieee80211_set_monitor_channel() 926 ret = ieee80211_link_use_channel(&sdata->deflink, in ieee80211_set_monitor_channel() 1967 !sdata->deflink.u.mgd.tdls_chan_switch_prohibited && in sta_apply_parameters() 2601 ieee80211_link_info_change_notify(sdata, &sdata->deflink, in ieee80211_update_mesh_config() 2650 sdata->deflink.smps_mode = IEEE80211_SMPS_OFF; in ieee80211_join_mesh() [all …]
|
D | ibss.c | 303 if (ieee80211_link_use_channel(&sdata->deflink, &chandef, in __ieee80211_sta_join_ibss() 311 sdata->deflink.radar_required = radar_required; in __ieee80211_sta_join_ibss() 354 sdata->deflink.operating_11g_mode = in __ieee80211_sta_join_ibss() 357 ieee80211_set_wmm_default(&sdata->deflink, true, false); in __ieee80211_sta_join_ibss() 371 ieee80211_link_release_channel(&sdata->deflink); in __ieee80211_sta_join_ibss() 548 cbss->channel = sdata->deflink.csa_chandef.chan; in ieee80211_ibss_finish_csa() 553 ifibss->chandef = sdata->deflink.csa_chandef; in ieee80211_ibss_finish_csa() 640 sta->sta.deflink.supp_rates[band] = supp_rates | in ieee80211_ibss_add_sta() 727 ieee80211_link_release_channel(&sdata->deflink); in ieee80211_ibss_disconnect() 1008 prev_rates = sta->sta.deflink.supp_rates[band]; in ieee80211_update_sta_info() [all …]
|
D | iface.c | 63 if (sdata->deflink.user_power_level != IEEE80211_UNSET_POWER_LEVEL) in __ieee80211_recalc_txpower() 64 power = min(power, sdata->deflink.user_power_level); in __ieee80211_recalc_txpower() 66 if (sdata->deflink.ap_power_level != IEEE80211_UNSET_POWER_LEVEL) in __ieee80211_recalc_txpower() 67 power = min(power, sdata->deflink.ap_power_level); in __ieee80211_recalc_txpower() 83 ieee80211_link_info_change_notify(sdata, &sdata->deflink, in ieee80211_recalc_txpower() 552 sdata->deflink.u.mgd.csa_waiting_bcn = false; in ieee80211_do_stop() 553 if (sdata->deflink.csa_block_tx) { in ieee80211_do_stop() 556 sdata->deflink.csa_block_tx = false; in ieee80211_do_stop() 561 cancel_work_sync(&sdata->deflink.csa_finalize_work); in ieee80211_do_stop() 562 cancel_work_sync(&sdata->deflink.color_change_finalize_work); in ieee80211_do_stop() [all …]
|
D | mesh_plink.c | 64 (s8)-ewma_signal_read(&sta->deflink.rx_stats_avg.signal) > in rssi_threshold_check() 129 if (erp_rates & sta->sta.deflink.supp_rates[sband->band]) in mesh_set_short_slot_time() 179 if (sta->sta.deflink.bandwidth > IEEE80211_STA_RX_BW_20) in mesh_set_ht_prot_mode() 182 if (!sta->sta.deflink.ht_cap.ht_supported) { in mesh_set_ht_prot_mode() 426 enum ieee80211_sta_rx_bandwidth bw = sta->sta.deflink.bandwidth; in mesh_sta_info_init() 436 sta->deflink.rx_stats.last_rx = jiffies; in mesh_sta_info_init() 444 if (sta->sta.deflink.supp_rates[sband->band] != rates) in mesh_sta_info_init() 446 sta->sta.deflink.supp_rates[sband->band] = rates; in mesh_sta_info_init() 450 &sta->deflink)) in mesh_sta_info_init() 455 &sta->deflink); in mesh_sta_info_init() [all …]
|
D | link.c | 26 bool deflink = link_id < 0; in ieee80211_link_init() local 51 if (!deflink) { in ieee80211_link_init() 96 link = &sdata->deflink; in ieee80211_tear_down_links() 224 if (rcu_access_pointer(sdata->link[link_id]) != &sdata->deflink) { in ieee80211_vif_update_links() 241 rcu_access_pointer(sdata->link[link_id]) == &sdata->deflink); in ieee80211_vif_update_links() 249 ieee80211_link_init(sdata, -1, &sdata->deflink, in ieee80211_vif_update_links() 288 ieee80211_link_init(sdata, -1, &sdata->deflink, in ieee80211_vif_update_links()
|
D | tdls.c | 299 txq = &sdata->deflink.tx_conf[ieee80211_ac_from_wmm(i)]; in ieee80211_tdls_add_wmm_param_ie() 315 ieee80211_sta_cap_chan_bw(&sta->deflink); in ieee80211_tdls_chandef_vht_upgrade() 465 ht_cap.ht_supported && sta->sta.deflink.ht_cap.ht_supported) { in ieee80211_tdls_add_setup_start_ies() 467 memcpy(&ht_cap, &sta->sta.deflink.ht_cap, sizeof(ht_cap)); in ieee80211_tdls_add_setup_start_ies() 520 vht_cap.vht_supported && sta->sta.deflink.vht_cap.vht_supported) { in ieee80211_tdls_add_setup_start_ies() 522 memcpy(&vht_cap, &sta->sta.deflink.vht_cap, sizeof(vht_cap)); in ieee80211_tdls_add_setup_start_ies() 680 if (!ap_sta->sta.deflink.ht_cap.ht_supported && sta->sta.deflink.ht_cap.ht_supported) { in ieee80211_tdls_add_setup_cfm_ies() 686 ieee80211_ie_build_ht_oper(pos, &sta->sta.deflink.ht_cap, in ieee80211_tdls_add_setup_cfm_ies() 695 sta->sta.deflink.vht_cap.vht_supported) { in ieee80211_tdls_add_setup_cfm_ies() 704 ieee80211_ie_build_vht_oper(pos, &sta->sta.deflink.vht_cap, in ieee80211_tdls_add_setup_cfm_ies() [all …]
|
D | agg-rx.c | 247 if (sta->sta.deflink.he_cap.has_he && addbaext) in ieee80211_send_addba_resp() 280 if (!sta->sta.deflink.ht_cap.ht_supported && in ___ieee80211_start_rx_ba_session() 281 !sta->sta.deflink.he_cap.has_he) { in ___ieee80211_start_rx_ba_session() 296 if (sta->sta.deflink.eht_cap.has_eht) in ___ieee80211_start_rx_ba_session() 298 else if (sta->sta.deflink.he_cap.has_he) in ___ieee80211_start_rx_ba_session() 308 (!(sta->sta.deflink.ht_cap.cap & IEEE80211_HT_CAP_DELAY_BA))) || in ___ieee80211_start_rx_ba_session() 491 if (sta->sta.deflink.eht_cap.has_eht && elems && elems->addba_ext_ie) { in ieee80211_process_addba_request()
|
D | mlme.c | 1667 memcpy(nullfunc->addr1, sdata->deflink.u.mgd.bssid, ETH_ALEN); in ieee80211_send_4addr_nullfunc() 1669 memcpy(nullfunc->addr3, sdata->deflink.u.mgd.bssid, ETH_ALEN); in ieee80211_send_4addr_nullfunc() 1804 &sdata->deflink.u.mgd.chswitch_work, in ieee80211_chswitch_done() 2238 !sdata->deflink.u.mgd.have_beacon) in ieee80211_powersave_allowed() 2281 u8 dtimper = found->deflink.u.mgd.dtim_period; in ieee80211_recalc_ps() 2453 if (drv_conf_tx(local, &sdata->deflink, ac, in __ieee80211_sta_handle_tspec_ac_params() 2454 &sdata->deflink.tx_conf[ac])) in __ieee80211_sta_handle_tspec_ac_params() 2455 link_err(&sdata->deflink, in __ieee80211_sta_handle_tspec_ac_params() 2483 if (drv_conf_tx(local, &sdata->deflink, ac, in __ieee80211_sta_handle_tspec_ac_params() 2484 &sdata->deflink.tx_conf[non_acm_ac])) in __ieee80211_sta_handle_tspec_ac_params() [all …]
|
D | ethtool.c | 108 sta = sta_info_get_bss(sdata, sdata->deflink.u.mgd.bssid); in ieee80211_get_stats() 117 ADD_STA_STATS(&sta->deflink); in ieee80211_get_stats() 143 ADD_STA_STATS(&sta->deflink); in ieee80211_get_stats()
|
D | rc80211_minstrel_ht.c | 677 if (!mi->sta->deflink.ht_cap.ht_supported) in minstrel_ht_prob_rate_reduce_streams() 1067 bool ht_supported = mi->sta->deflink.ht_cap.ht_supported; in minstrel_ht_update_stats() 1482 (mi->sta->deflink.smps_mode == IEEE80211_SMPS_DYNAMIC && in minstrel_ht_set_rate() 1542 if (!mi->sta->deflink.vht_cap.vht_supported) in minstrel_ht_get_max_amsdu_len() 1573 mi->sta->deflink.agg.max_rc_amsdu_len = minstrel_ht_get_max_amsdu_len(mi); in minstrel_ht_update_rates() 1661 if (sta->deflink.ht_cap.ht_supported && in minstrel_ht_update_cck() 1684 if (sta->deflink.ht_cap.ht_supported) in minstrel_ht_update_ofdm() 1704 struct ieee80211_mcs_info *mcs = &sta->deflink.ht_cap.mcs; in minstrel_ht_update_caps() 1705 u16 ht_cap = sta->deflink.ht_cap.cap; in minstrel_ht_update_caps() 1706 struct ieee80211_sta_vht_cap *vht_cap = &sta->deflink.vht_cap; in minstrel_ht_update_caps() [all …]
|
D | debugfs_key.c | 398 if (sdata->deflink.default_multicast_key) { in ieee80211_debugfs_key_update_default() 400 sdata->deflink.default_multicast_key); in ieee80211_debugfs_key_update_default() 417 sdata->deflink.default_mgmt_key); in ieee80211_debugfs_key_add_mgmt_default() 446 sdata->deflink.default_beacon_key); in ieee80211_debugfs_key_add_beacon_default()
|
D | s1g.c | 14 sta->deflink.tx_stats.last_rate.flags |= IEEE80211_TX_RC_S1G_MCS; in ieee80211_s1g_sta_rate_init() 15 sta->deflink.rx_stats.last_rate = in ieee80211_s1g_sta_rate_init()
|
D | tx.c | 152 if (tx->sdata->deflink.operating_11g_mode) in ieee80211_duration() 590 link = &tx->sdata->deflink; in ieee80211_select_link_key() 797 tx->sta->deflink.tx_stats.last_rate = txrc.reported_rate; in ieee80211_tx_h_rate_ctrl() 799 tx->sta->deflink.tx_stats.last_rate = txrc.reported_rate; in ieee80211_tx_h_rate_ctrl() 876 tx->sta->deflink.tx_stats.msdu[IEEE80211_NUM_TIDS]++; in ieee80211_tx_h_sequence() 890 tx->sta->deflink.tx_stats.msdu[tid]++; in ieee80211_tx_h_sequence() 1043 tx->sta->deflink.tx_stats.bytes[ac] += skb->len; in ieee80211_tx_h_stats() 1046 tx->sta->deflink.tx_stats.packets[ac]++; in ieee80211_tx_h_stats() 1192 if (!sta || !sta->sta.deflink.ht_cap.ht_supported || in ieee80211_aggr_check() 2658 link_id = sta->deflink.link_id; in ieee80211_build_hdr() [all …]
|
D | rate.c | 40 ieee80211_sta_init_nss(&sta->deflink); in rate_control_rate_init() 383 sta ? sta->deflink.supp_rates[sband->band] : -1, in __rate_control_send_low() 793 *mask &= sta->deflink.supp_rates[sband->band]; in rate_control_cap_mask() 795 mcs_mask[i] &= sta->deflink.ht_cap.mcs.rx_mask[i]; in rate_control_cap_mask() 797 sta_vht_cap = sta->deflink.vht_cap.vht_mcs.rx_mcs_map; in rate_control_cap_mask()
|
D | key.c | 448 struct link_sta_info *link_sta = sta ? &sta->deflink : NULL; in ieee80211_key_replace() 490 link = &sdata->deflink; in ieee80211_key_replace() 879 struct link_sta_info *link_sta = &sta->deflink; in ieee80211_key_link() 1180 for (i = 0; i < ARRAY_SIZE(sta->deflink.gtk); i++) { in ieee80211_free_sta_keys() 1181 key = key_mtx_dereference(local, sta->deflink.gtk[i]); in ieee80211_free_sta_keys() 1405 err = ieee80211_key_link(key, &sdata->deflink, NULL); in ieee80211_gtk_rekey_add()
|
D | debugfs_netdev.c | 259 IEEE80211_IF_FILE(bssid, deflink.u.mgd.bssid, MAC); 368 memcpy(hdr->addr1, sdata->deflink.u.mgd.bssid, ETH_ALEN); in ieee80211_if_parse_tkip_mic_test() 900 add_link_files(&sdata->deflink, sdata->vif.debugfs_dir); in ieee80211_debugfs_add_netdev() 957 WARN_ON(link != &link->sdata->deflink); in ieee80211_link_debugfs_remove()
|
D | offchannel.c | 122 sdata, &sdata->deflink, in ieee80211_offchannel_stop_vifs() 160 sdata, &sdata->deflink, in ieee80211_offchannel_return() 928 beacon = rcu_dereference(sdata->deflink.u.ap.beacon); in ieee80211_mgmt_tx()
|
D | util.c | 194 if (sdata->deflink.operating_11g_mode) in ieee80211_generic_frame_duration() 228 if (sdata->deflink.operating_11g_mode) in ieee80211_rts_duration() 271 if (sdata->deflink.operating_11g_mode) in ieee80211_ctstoself_duration() 2641 ieee80211_assign_chanctx(local, sdata, &sdata->deflink); in ieee80211_reconfig() 2715 drv_conf_tx(local, &sdata->deflink, i, in ieee80211_reconfig() 2716 &sdata->deflink.tx_conf[i]); in ieee80211_reconfig() 2734 if (sdata->deflink.u.mgd.have_beacon) in ieee80211_reconfig() 2787 if (rcu_access_pointer(sdata->deflink.u.ap.beacon)) in ieee80211_reconfig() 2789 sdata->deflink.conf); in ieee80211_reconfig() 4144 return -ewma_beacon_signal_read(&sdata->deflink.u.mgd.ave_beacon_signal); in ieee80211_ave_rssi() [all …]
|
D | agg-tx.c | 476 if (sta->sta.deflink.he_cap.has_he) { in ieee80211_send_addba_with_timeout() 618 if (!pubsta->deflink.ht_cap.ht_supported && in ieee80211_start_tx_ba_session() 671 !sta->sta.deflink.ht_cap.ht_supported) { in ieee80211_start_tx_ba_session()
|
D | airtime.c | 653 struct ieee80211_tx_rate *tx_rate = &sta->deflink.tx_stats.last_rate; in ieee80211_calc_expected_tx_airtime() 654 struct rate_info *ri = &sta->deflink.tx_stats.last_rate_info; in ieee80211_calc_expected_tx_airtime()
|
D | mesh.c | 638 ieee80211_ie_build_he_6ghz_cap(sdata, sdata->deflink.smps_mode, skb); in mesh_add_he_6ghz_cap_ie() 1224 ieee80211_link_info_change_notify(sdata, &sdata->deflink, changed); in ieee80211_start_mesh() 1248 ieee80211_link_info_change_notify(sdata, &sdata->deflink, in ieee80211_stop_mesh() 1747 ieee80211_link_info_change_notify(sdata, &sdata->deflink, changed); in mesh_bss_info_changed()
|
D | rx.c | 234 sta->deflink.rx_stats.packets++; in __ieee80211_queue_skb_to_iface() 3289 if (!ether_addr_equal(mgmt->sa, sdata->deflink.u.mgd.bssid) || in ieee80211_process_sa_query_req() 3290 !ether_addr_equal(mgmt->bssid, sdata->deflink.u.mgd.bssid)) { in ieee80211_process_sa_query_req() 3308 memcpy(resp->bssid, sdata->deflink.u.mgd.bssid, ETH_ALEN); in ieee80211_process_sa_query_req() 3593 if (!ether_addr_equal(mgmt->bssid, sdata->deflink.u.mgd.bssid)) in ieee80211_rx_h_action() 3694 bssid = sdata->deflink.u.mgd.bssid; in ieee80211_rx_h_action() 4218 rx->link_sta = &sta->deflink; in ieee80211_rx_data_set_sta() 4224 rx->link = &rx->sdata->deflink; in ieee80211_rx_data_set_sta() 4716 link_sta = &sta->deflink; in ieee80211_rx_8023()
|