Lines Matching +full:rates +full:- +full:cck
1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright (C) 2012-2014, 2018-2024 Intel Corporation
4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH
5 * Copyright (C) 2015-2017 Intel Deutschland GmbH
10 #include "iwl-io.h"
11 #include "iwl-prph.h"
12 #include "fw-api.h"
14 #include "time-event.h"
62 if (vif == data->vif) in iwl_mvm_mac_tsf_id_iter()
81 switch (data->vif->type) { in iwl_mvm_mac_tsf_id_iter()
91 if (vif->type != NL80211_IFTYPE_AP || in iwl_mvm_mac_tsf_id_iter()
92 data->preferred_tsf != NUM_TSF_IDS || in iwl_mvm_mac_tsf_id_iter()
93 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) in iwl_mvm_mac_tsf_id_iter()
96 min_bi = min(data->vif->bss_conf.beacon_int, in iwl_mvm_mac_tsf_id_iter()
97 vif->bss_conf.beacon_int); in iwl_mvm_mac_tsf_id_iter()
102 if ((data->vif->bss_conf.beacon_int - in iwl_mvm_mac_tsf_id_iter()
103 vif->bss_conf.beacon_int) % min_bi == 0) { in iwl_mvm_mac_tsf_id_iter()
104 data->preferred_tsf = mvmvif->tsf_id; in iwl_mvm_mac_tsf_id_iter()
119 if ((vif->type != NL80211_IFTYPE_AP && in iwl_mvm_mac_tsf_id_iter()
120 vif->type != NL80211_IFTYPE_STATION) || in iwl_mvm_mac_tsf_id_iter()
121 data->preferred_tsf != NUM_TSF_IDS || in iwl_mvm_mac_tsf_id_iter()
122 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) in iwl_mvm_mac_tsf_id_iter()
125 min_bi = min(data->vif->bss_conf.beacon_int, in iwl_mvm_mac_tsf_id_iter()
126 vif->bss_conf.beacon_int); in iwl_mvm_mac_tsf_id_iter()
131 if ((data->vif->bss_conf.beacon_int - in iwl_mvm_mac_tsf_id_iter()
132 vif->bss_conf.beacon_int) % min_bi == 0) { in iwl_mvm_mac_tsf_id_iter()
133 data->preferred_tsf = mvmvif->tsf_id; in iwl_mvm_mac_tsf_id_iter()
154 __clear_bit(mvmvif->tsf_id, data->available_tsf_ids); in iwl_mvm_mac_tsf_id_iter()
156 if (data->preferred_tsf == mvmvif->tsf_id) in iwl_mvm_mac_tsf_id_iter()
157 data->preferred_tsf = NUM_TSF_IDS; in iwl_mvm_mac_tsf_id_iter()
166 /* Iterator may already find the interface being added -- skip it */ in iwl_mvm_mac_iface_iterator()
167 if (vif == data->vif) { in iwl_mvm_mac_iface_iterator()
168 data->found_vif = true; in iwl_mvm_mac_iface_iterator()
178 __clear_bit(mvmvif->id, data->available_mac_ids); in iwl_mvm_mac_iface_iterator()
191 .available_tsf_ids = { (1 << NUM_TSF_IDS) - 1 }, in iwl_mvm_mac_ctxt_recalc_tsf_id()
197 mvm->hw, IEEE80211_IFACE_ITER_RESUME_ALL, in iwl_mvm_mac_ctxt_recalc_tsf_id()
201 mvmvif->tsf_id = data.preferred_tsf; in iwl_mvm_mac_ctxt_recalc_tsf_id()
202 else if (!test_bit(mvmvif->tsf_id, data.available_tsf_ids)) in iwl_mvm_mac_ctxt_recalc_tsf_id()
203 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, in iwl_mvm_mac_ctxt_recalc_tsf_id()
213 .available_mac_ids = { (1 << NUM_MAC_INDEX_DRIVER) - 1 }, in iwl_mvm_mac_ctxt_init()
214 .available_tsf_ids = { (1 << NUM_TSF_IDS) - 1 }, in iwl_mvm_mac_ctxt_init()
221 lockdep_assert_held(&mvm->mutex); in iwl_mvm_mac_ctxt_init()
239 /* MAC ID 0 should be used only for the managed/IBSS vif with non-MLO in iwl_mvm_mac_ctxt_init()
242 if (!mvm->mld_api_is_used) { in iwl_mvm_mac_ctxt_init()
243 switch (vif->type) { in iwl_mvm_mac_ctxt_init()
247 if (!vif->p2p) in iwl_mvm_mac_ctxt_init()
256 mvm->hw, IEEE80211_IFACE_ITER_RESUME_ALL, in iwl_mvm_mac_ctxt_init()
273 if (WARN_ON_ONCE(test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status))) in iwl_mvm_mac_ctxt_init()
274 return -EBUSY; in iwl_mvm_mac_ctxt_init()
276 mvmvif->id = find_first_bit(data.available_mac_ids, in iwl_mvm_mac_ctxt_init()
278 if (mvmvif->id == NUM_MAC_INDEX_DRIVER) { in iwl_mvm_mac_ctxt_init()
279 IWL_ERR(mvm, "Failed to init MAC context - no free ID!\n"); in iwl_mvm_mac_ctxt_init()
280 ret = -EIO; in iwl_mvm_mac_ctxt_init()
285 mvmvif->tsf_id = data.preferred_tsf; in iwl_mvm_mac_ctxt_init()
287 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, in iwl_mvm_mac_ctxt_init()
289 if (mvmvif->tsf_id == NUM_TSF_IDS) { in iwl_mvm_mac_ctxt_init()
290 IWL_ERR(mvm, "Failed to init MAC context - no free TSF!\n"); in iwl_mvm_mac_ctxt_init()
291 ret = -EIO; in iwl_mvm_mac_ctxt_init()
295 mvmvif->color = 0; in iwl_mvm_mac_ctxt_init()
297 INIT_LIST_HEAD(&mvmvif->time_event_data.list); in iwl_mvm_mac_ctxt_init()
298 mvmvif->time_event_data.id = TE_MAX; in iwl_mvm_mac_ctxt_init()
299 mvmvif->roc_activity = ROC_NUM_ACTIVITIES; in iwl_mvm_mac_ctxt_init()
301 mvmvif->deflink.bcast_sta.sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_mac_ctxt_init()
302 mvmvif->deflink.mcast_sta.sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_mac_ctxt_init()
303 mvmvif->deflink.ap_sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_mac_ctxt_init()
306 if (vif->type == NL80211_IFTYPE_P2P_DEVICE) in iwl_mvm_mac_ctxt_init()
310 if (vif->type == NL80211_IFTYPE_AP || in iwl_mvm_mac_ctxt_init()
311 vif->type == NL80211_IFTYPE_ADHOC) { in iwl_mvm_mac_ctxt_init()
316 mvmvif->deflink.cab_queue = IWL_MVM_DQA_GCAST_QUEUE; in iwl_mvm_mac_ctxt_init()
320 mvmvif->deflink.smps_requests[i] = IEEE80211_SMPS_AUTOMATIC; in iwl_mvm_mac_ctxt_init()
335 unsigned long basic = vif->bss_conf.basic_rates; in iwl_mvm_ack_rates()
338 u8 cck = 0; in iwl_mvm_ack_rates() local
342 sband = mvm->hw->wiphy->bands[band]; in iwl_mvm_ack_rates()
345 int hw = sband->bitrates[i].hw_value; in iwl_mvm_ack_rates()
347 ofdm |= BIT(hw - IWL_FIRST_OFDM_RATE); in iwl_mvm_ack_rates()
353 cck |= BIT(hw); in iwl_mvm_ack_rates()
360 * Now we've got the basic rates as bitmaps in the ofdm and cck in iwl_mvm_ack_rates()
362 * be all the right rates in the bitmap. E.g. if the only basic in iwl_mvm_ack_rates()
363 * rates are 5.5 Mbps and 11 Mbps, we still need to add 1 Mbps in iwl_mvm_ack_rates()
364 * and 6 Mbps because the 802.11-2007 standard says in 9.6: in iwl_mvm_ack_rates()
378 * As a consequence, we need to add all mandatory rates that are in iwl_mvm_ack_rates()
379 * lower than all of the basic rates to these bitmaps. in iwl_mvm_ack_rates()
390 * CCK is a bit more complex with DSSS vs. HR/DSSS vs. ERP. in iwl_mvm_ack_rates()
392 * - if no CCK rates are basic, it must be ERP since there must in iwl_mvm_ack_rates()
393 * be some basic rates at all, so they're OFDM => ERP PHY in iwl_mvm_ack_rates()
394 * (or we're in 5 GHz, and the cck bitmap will never be used) in iwl_mvm_ack_rates()
395 * - if 11M is a basic rate, it must be ERP as well, so add 5.5M in iwl_mvm_ack_rates()
396 * - if 5.5M is basic, 1M and 2M are mandatory in iwl_mvm_ack_rates()
397 * - if 2M is basic, 1M is mandatory in iwl_mvm_ack_rates()
398 * - if 1M is basic, that's the only valid ACK rate. in iwl_mvm_ack_rates()
400 * any lower rates to the ACK rate bitmap. in iwl_mvm_ack_rates()
403 cck |= IWL_RATE_BIT_MSK(11) >> IWL_FIRST_CCK_RATE; in iwl_mvm_ack_rates()
405 cck |= IWL_RATE_BIT_MSK(5) >> IWL_FIRST_CCK_RATE; in iwl_mvm_ack_rates()
407 cck |= IWL_RATE_BIT_MSK(2) >> IWL_FIRST_CCK_RATE; in iwl_mvm_ack_rates()
409 cck |= IWL_RATE_BIT_MSK(1) >> IWL_FIRST_CCK_RATE; in iwl_mvm_ack_rates()
411 *cck_rates = cck; in iwl_mvm_ack_rates()
423 chanctx = rcu_dereference(link_conf->chanctx_conf); in iwl_mvm_set_fw_basic_rates()
424 iwl_mvm_ack_rates(mvm, vif, chanctx ? chanctx->def.chan->band in iwl_mvm_set_fw_basic_rates()
441 u8 protection_mode = link_conf->ht_operation_mode & in iwl_mvm_set_fw_protection_flags()
443 bool ht_enabled = !!(link_conf->ht_operation_mode & in iwl_mvm_set_fw_protection_flags()
446 if (link_conf->use_cts_prot) in iwl_mvm_set_fw_protection_flags()
450 link_conf->use_cts_prot, in iwl_mvm_set_fw_protection_flags()
451 link_conf->ht_operation_mode); in iwl_mvm_set_fw_protection_flags()
458 * See section 9.23.3.1 of IEEE 80211-2012. in iwl_mvm_set_fw_protection_flags()
470 if (link_conf->chanreq.oper.width > NL80211_CHAN_WIDTH_20) in iwl_mvm_set_fw_protection_flags()
486 mvmvif->link[link_conf->link_id]; in iwl_mvm_set_fw_qos_params()
497 cpu_to_le16(mvm_link->queue_params[i].cw_min); in iwl_mvm_set_fw_qos_params()
499 cpu_to_le16(mvm_link->queue_params[i].cw_max); in iwl_mvm_set_fw_qos_params()
501 cpu_to_le16(mvm_link->queue_params[i].txop * 32); in iwl_mvm_set_fw_qos_params()
502 ac[ucode_ac].aifsn = mvm_link->queue_params[i].aifs; in iwl_mvm_set_fw_qos_params()
506 if (link_conf->qos) in iwl_mvm_set_fw_qos_params()
509 if (link_conf->chanreq.oper.width != NL80211_CHAN_WIDTH_20_NOHT) in iwl_mvm_set_fw_qos_params()
517 switch (vif->type) { in iwl_mvm_get_mac_type()
519 if (vif->p2p) in iwl_mvm_get_mac_type()
549 const u8 *bssid = bssid_override ?: vif->bss_conf.bssid; in iwl_mvm_mac_ctxt_cmd_common()
552 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_cmd_common()
553 mvmvif->color)); in iwl_mvm_mac_ctxt_cmd_common()
554 cmd->action = cpu_to_le32(action); in iwl_mvm_mac_ctxt_cmd_common()
555 cmd->mac_type = cpu_to_le32(iwl_mvm_get_mac_type(vif)); in iwl_mvm_mac_ctxt_cmd_common()
557 cmd->tsf_id = cpu_to_le32(mvmvif->tsf_id); in iwl_mvm_mac_ctxt_cmd_common()
559 memcpy(cmd->node_addr, vif->addr, ETH_ALEN); in iwl_mvm_mac_ctxt_cmd_common()
562 memcpy(cmd->bssid_addr, bssid, ETH_ALEN); in iwl_mvm_mac_ctxt_cmd_common()
564 eth_broadcast_addr(cmd->bssid_addr); in iwl_mvm_mac_ctxt_cmd_common()
566 iwl_mvm_set_fw_basic_rates(mvm, vif, &vif->bss_conf, &cmd->cck_rates, in iwl_mvm_mac_ctxt_cmd_common()
567 &cmd->ofdm_rates); in iwl_mvm_mac_ctxt_cmd_common()
569 cmd->cck_short_preamble = in iwl_mvm_mac_ctxt_cmd_common()
570 cpu_to_le32(vif->bss_conf.use_short_preamble ? in iwl_mvm_mac_ctxt_cmd_common()
572 cmd->short_slot = in iwl_mvm_mac_ctxt_cmd_common()
573 cpu_to_le32(vif->bss_conf.use_short_slot ? in iwl_mvm_mac_ctxt_cmd_common()
576 cmd->filter_flags = 0; in iwl_mvm_mac_ctxt_cmd_common()
578 iwl_mvm_set_fw_qos_params(mvm, vif, &vif->bss_conf, cmd->ac, in iwl_mvm_mac_ctxt_cmd_common()
579 &cmd->qos_flags); in iwl_mvm_mac_ctxt_cmd_common()
583 iwl_mvm_set_fw_protection_flags(mvm, vif, &vif->bss_conf, in iwl_mvm_mac_ctxt_cmd_common()
584 &cmd->protection_flags, in iwl_mvm_mac_ctxt_cmd_common()
595 le32_to_cpu(cmd->action), ret); in iwl_mvm_mac_ctxt_send_cmd()
614 * same offset in the frame -- the TSF is at the first symbol in iwl_mvm_set_fw_dtim_tbtt()
621 dtim_offs = link_conf->sync_dtim_count * in iwl_mvm_set_fw_dtim_tbtt()
622 link_conf->beacon_int; in iwl_mvm_set_fw_dtim_tbtt()
627 cpu_to_le64(link_conf->sync_tsf + dtim_offs); in iwl_mvm_set_fw_dtim_tbtt()
629 cpu_to_le32(link_conf->sync_device_ts + dtim_offs); in iwl_mvm_set_fw_dtim_tbtt()
631 cpu_to_le32(link_conf->sync_device_ts); in iwl_mvm_set_fw_dtim_tbtt()
643 &vif->bss_conf.p2p_noa_attr; in iwl_mvm_mac_ctxt_cmd_p2p_sta_get_oppps_ctwin()
645 return cpu_to_le32(noa->oppps_ctwindow & in iwl_mvm_mac_ctxt_cmd_p2p_sta_get_oppps_ctwin()
654 if (vif->bss_conf.twt_requester && IWL_MVM_USE_TWT) in iwl_mvm_mac_ctxt_cmd_sta_get_twt_policy()
656 if (vif->bss_conf.twt_protected) in iwl_mvm_mac_ctxt_cmd_sta_get_twt_policy()
658 if (vif->bss_conf.twt_broadcast) in iwl_mvm_mac_ctxt_cmd_sta_get_twt_policy()
672 WARN_ON(vif->type != NL80211_IFTYPE_STATION); in iwl_mvm_mac_ctxt_cmd_sta()
683 if (vif->p2p) { in iwl_mvm_mac_ctxt_cmd_sta()
693 if (vif->cfg.assoc && vif->bss_conf.dtim_period && in iwl_mvm_mac_ctxt_cmd_sta()
697 iwl_mvm_set_fw_dtim_tbtt(mvm, vif, &vif->bss_conf, in iwl_mvm_mac_ctxt_cmd_sta()
698 &ctxt_sta->dtim_tsf, in iwl_mvm_mac_ctxt_cmd_sta()
699 &ctxt_sta->dtim_time, in iwl_mvm_mac_ctxt_cmd_sta()
700 &ctxt_sta->assoc_beacon_arrive_time); in iwl_mvm_mac_ctxt_cmd_sta()
702 ctxt_sta->is_assoc = cpu_to_le32(1); in iwl_mvm_mac_ctxt_cmd_sta()
704 if (!mvmvif->authorized && in iwl_mvm_mac_ctxt_cmd_sta()
705 fw_has_capa(&mvm->fw->ucode_capa, in iwl_mvm_mac_ctxt_cmd_sta()
707 ctxt_sta->data_policy |= in iwl_mvm_mac_ctxt_cmd_sta()
710 ctxt_sta->is_assoc = cpu_to_le32(0); in iwl_mvm_mac_ctxt_cmd_sta()
718 ctxt_sta->bi = cpu_to_le32(vif->bss_conf.beacon_int); in iwl_mvm_mac_ctxt_cmd_sta()
719 ctxt_sta->dtim_interval = cpu_to_le32(vif->bss_conf.beacon_int * in iwl_mvm_mac_ctxt_cmd_sta()
720 vif->bss_conf.dtim_period); in iwl_mvm_mac_ctxt_cmd_sta()
722 ctxt_sta->listen_interval = cpu_to_le32(mvm->hw->conf.listen_interval); in iwl_mvm_mac_ctxt_cmd_sta()
723 ctxt_sta->assoc_id = cpu_to_le32(vif->cfg.aid); in iwl_mvm_mac_ctxt_cmd_sta()
725 if (vif->probe_req_reg && vif->cfg.assoc && vif->p2p) in iwl_mvm_mac_ctxt_cmd_sta()
728 if (vif->bss_conf.he_support && !iwlwifi_mod_params.disable_11ax) { in iwl_mvm_mac_ctxt_cmd_sta()
730 ctxt_sta->data_policy |= in iwl_mvm_mac_ctxt_cmd_sta()
746 WARN_ON(vif->type != NL80211_IFTYPE_MONITOR); in iwl_mvm_mac_ctxt_cmd_listener()
756 ieee80211_hw_set(mvm->hw, RX_INCLUDES_FCS); in iwl_mvm_mac_ctxt_cmd_listener()
760 * mvm->snif_queue isn't set here (it's still set to in iwl_mvm_mac_ctxt_cmd_listener()
764 tfd_queue_msk = BIT(mvm->snif_queue); in iwl_mvm_mac_ctxt_cmd_listener()
767 ret = iwl_mvm_allocate_int_sta(mvm, &mvm->snif_sta, tfd_queue_msk, in iwl_mvm_mac_ctxt_cmd_listener()
768 vif->type, IWL_STA_GENERAL_PURPOSE); in iwl_mvm_mac_ctxt_cmd_listener()
782 WARN_ON(vif->type != NL80211_IFTYPE_ADHOC); in iwl_mvm_mac_ctxt_cmd_ibss()
791 cmd.ibss.bi = cpu_to_le32(vif->bss_conf.beacon_int); in iwl_mvm_mac_ctxt_cmd_ibss()
794 cmd.ibss.beacon_template = cpu_to_le32(mvmvif->id); in iwl_mvm_mac_ctxt_cmd_ibss()
808 if (vif->type == NL80211_IFTYPE_AP && vif->p2p && in iwl_mvm_go_iterator()
809 mvmvif->ap_ibss_active) in iwl_mvm_go_iterator()
810 data->go_active = true; in iwl_mvm_go_iterator()
827 mvm->hw, IEEE80211_IFACE_ITER_RESUME_ALL, in iwl_mac_ctxt_p2p_dev_has_extended_disc()
839 WARN_ON(vif->type != NL80211_IFTYPE_P2P_DEVICE); in iwl_mvm_mac_ctxt_cmd_p2p_device()
860 * variable-length part of the beacon. */ in iwl_mvm_mac_ctxt_set_tim()
861 tim_idx = mgmt->u.beacon.variable - beacon; in iwl_mvm_mac_ctxt_set_tim()
863 /* Parse variable-length elements of beacon to find WLAN_EID_TIM */ in iwl_mvm_mac_ctxt_set_tim()
864 while ((tim_idx < (frame_size - 2)) && in iwl_mvm_mac_ctxt_set_tim()
869 if ((tim_idx < (frame_size - 1)) && (beacon[tim_idx] == WLAN_EID_TIM)) { in iwl_mvm_mac_ctxt_set_tim()
882 if (WARN_ON_ONCE(frame_size <= (mgmt->u.beacon.variable - beacon))) in iwl_mvm_find_ie_offset()
885 frame_size -= mgmt->u.beacon.variable - beacon; in iwl_mvm_find_ie_offset()
887 ie = cfg80211_find_ie(eid, mgmt->u.beacon.variable, frame_size); in iwl_mvm_find_ie_offset()
891 return ie - beacon; in iwl_mvm_find_ie_offset()
900 unsigned long basic = vif->bss_conf.basic_rates; in iwl_mvm_mac_ctxt_get_lowest_rate()
902 u32 link_id = u32_get_bits(info->control.flags, in iwl_mvm_mac_ctxt_get_lowest_rate()
904 u8 band = info->band; in iwl_mvm_mac_ctxt_get_lowest_rate()
909 for (i = 0; i < ARRAY_SIZE(mvmvif->link); i++) { in iwl_mvm_mac_ctxt_get_lowest_rate()
910 if (!mvmvif->link[i]) in iwl_mvm_mac_ctxt_get_lowest_rate()
922 link_conf = rcu_dereference(vif->link_conf[link_id]); in iwl_mvm_mac_ctxt_get_lowest_rate()
924 basic = link_conf->basic_rates; in iwl_mvm_mac_ctxt_get_lowest_rate()
925 if (link_conf->chanreq.oper.chan) in iwl_mvm_mac_ctxt_get_lowest_rate()
926 band = link_conf->chanreq.oper.chan->band; in iwl_mvm_mac_ctxt_get_lowest_rate()
931 sband = mvm->hw->wiphy->bands[band]; in iwl_mvm_mac_ctxt_get_lowest_rate()
933 u16 hw = sband->bitrates[i].hw_value; in iwl_mvm_mac_ctxt_get_lowest_rate()
943 if (band == NL80211_BAND_2GHZ && !vif->p2p && in iwl_mvm_mac_ctxt_get_lowest_rate()
944 vif->type != NL80211_IFTYPE_P2P_DEVICE && in iwl_mvm_mac_ctxt_get_lowest_rate()
945 !(info->flags & IEEE80211_TX_CTL_NO_CCK_RATE)) { in iwl_mvm_mac_ctxt_get_lowest_rate()
978 mvm->hw->wiphy->bands[info->band]; in iwl_mvm_mac_ctxt_get_beacon_rate()
979 u32 legacy = vif->bss_conf.beacon_tx_rate.control[info->band].legacy; in iwl_mvm_mac_ctxt_get_beacon_rate()
983 u32 rate = ffs(legacy) - 1; in iwl_mvm_mac_ctxt_get_beacon_rate()
985 return sband->bitrates[rate].hw_value; in iwl_mvm_mac_ctxt_get_beacon_rate()
1004 tx->len = cpu_to_le16((u16)beacon->len); in iwl_mvm_mac_ctxt_set_tx()
1005 tx->sta_id = mvmvif->deflink.bcast_sta.sta_id; in iwl_mvm_mac_ctxt_set_tx()
1006 tx->life_time = cpu_to_le32(TX_CMD_LIFE_TIME_INFINITE); in iwl_mvm_mac_ctxt_set_tx()
1009 iwl_mvm_bt_coex_tx_prio(mvm, (void *)beacon->data, info, 0) << in iwl_mvm_mac_ctxt_set_tx()
1011 tx->tx_flags = cpu_to_le32(tx_flags); in iwl_mvm_mac_ctxt_set_tx()
1013 if (!fw_has_capa(&mvm->fw->ucode_capa, in iwl_mvm_mac_ctxt_set_tx()
1015 iwl_mvm_toggle_tx_ant(mvm, &mvm->mgmt_last_antenna_idx); in iwl_mvm_mac_ctxt_set_tx()
1017 tx->rate_n_flags = in iwl_mvm_mac_ctxt_set_tx()
1018 cpu_to_le32(BIT(mvm->mgmt_last_antenna_idx) << in iwl_mvm_mac_ctxt_set_tx()
1024 tx->rate_n_flags |= in iwl_mvm_mac_ctxt_set_tx()
1025 cpu_to_le32(iwl_mvm_mac80211_idx_to_hwrate(mvm->fw, rate)); in iwl_mvm_mac_ctxt_set_tx()
1027 tx->rate_n_flags |= cpu_to_le32(RATE_MCS_CCK_MSK_V1); in iwl_mvm_mac_ctxt_set_tx()
1043 cmd.len[1] = beacon->len; in iwl_mvm_mac_ctxt_send_beacon_cmd()
1044 cmd.data[1] = beacon->data; in iwl_mvm_mac_ctxt_send_beacon_cmd()
1059 beacon_cmd.template_id = cpu_to_le32((u32)mvmvif->id); in iwl_mvm_mac_ctxt_send_beacon_v6()
1061 if (vif->type == NL80211_IFTYPE_AP) in iwl_mvm_mac_ctxt_send_beacon_v6()
1064 beacon->data, beacon->len); in iwl_mvm_mac_ctxt_send_beacon_v6()
1079 beacon_cmd.template_id = cpu_to_le32((u32)mvmvif->id); in iwl_mvm_mac_ctxt_send_beacon_v7()
1081 if (vif->type == NL80211_IFTYPE_AP) in iwl_mvm_mac_ctxt_send_beacon_v7()
1084 beacon->data, beacon->len); in iwl_mvm_mac_ctxt_send_beacon_v7()
1087 cpu_to_le32(iwl_mvm_find_ie_offset(beacon->data, in iwl_mvm_mac_ctxt_send_beacon_v7()
1089 beacon->len)); in iwl_mvm_mac_ctxt_send_beacon_v7()
1091 cpu_to_le32(iwl_mvm_find_ie_offset(beacon->data, in iwl_mvm_mac_ctxt_send_beacon_v7()
1093 beacon->len)); in iwl_mvm_mac_ctxt_send_beacon_v7()
1105 if (cfg80211_channel_is_psc(ctx->def.chan)) in iwl_mvm_enable_fils()
1108 return (ctx->def.chan->band == NL80211_BAND_6GHZ && in iwl_mvm_enable_fils()
1109 ctx->def.width >= NL80211_CHAN_WIDTH_80); in iwl_mvm_enable_fils()
1124 flags = iwl_mvm_mac_ctxt_get_beacon_flags(mvm->fw, rate); in iwl_mvm_mac_ctxt_send_beacon_v9()
1128 ctx = rcu_dereference(link_conf->chanctx_conf); in iwl_mvm_mac_ctxt_send_beacon_v9()
1129 channel = ieee80211_frequency_to_channel(ctx->def.chan->center_freq); in iwl_mvm_mac_ctxt_send_beacon_v9()
1132 flags |= iwl_fw_lookup_cmd_ver(mvm->fw, BEACON_TEMPLATE_CMD, in iwl_mvm_mac_ctxt_send_beacon_v9()
1137 cpu_to_le32(~crc32_le(~0, vif->cfg.ssid, in iwl_mvm_mac_ctxt_send_beacon_v9()
1138 vif->cfg.ssid_len)); in iwl_mvm_mac_ctxt_send_beacon_v9()
1143 beacon_cmd.byte_cnt = cpu_to_le16((u16)beacon->len); in iwl_mvm_mac_ctxt_send_beacon_v9()
1145 if (WARN_ON(!mvmvif->link[link_conf->link_id])) in iwl_mvm_mac_ctxt_send_beacon_v9()
1146 return -EINVAL; in iwl_mvm_mac_ctxt_send_beacon_v9()
1148 if (iwl_fw_lookup_cmd_ver(mvm->fw, BEACON_TEMPLATE_CMD, 0) > 12) in iwl_mvm_mac_ctxt_send_beacon_v9()
1150 cpu_to_le32(mvmvif->link[link_conf->link_id]->fw_link_id); in iwl_mvm_mac_ctxt_send_beacon_v9()
1152 beacon_cmd.link_id = cpu_to_le32((u32)mvmvif->id); in iwl_mvm_mac_ctxt_send_beacon_v9()
1154 if (vif->type == NL80211_IFTYPE_AP) in iwl_mvm_mac_ctxt_send_beacon_v9()
1157 beacon->data, beacon->len); in iwl_mvm_mac_ctxt_send_beacon_v9()
1160 cpu_to_le32(iwl_mvm_find_ie_offset(beacon->data, in iwl_mvm_mac_ctxt_send_beacon_v9()
1162 beacon->len)); in iwl_mvm_mac_ctxt_send_beacon_v9()
1164 cpu_to_le32(iwl_mvm_find_ie_offset(beacon->data, in iwl_mvm_mac_ctxt_send_beacon_v9()
1166 beacon->len)); in iwl_mvm_mac_ctxt_send_beacon_v9()
1168 if (vif->type == NL80211_IFTYPE_AP && in iwl_mvm_mac_ctxt_send_beacon_v9()
1169 iwl_fw_lookup_cmd_ver(mvm->fw, BEACON_TEMPLATE_CMD, 0) >= 14) in iwl_mvm_mac_ctxt_send_beacon_v9()
1171 cpu_to_le32(iwl_mvm_find_ie_offset(beacon->data, in iwl_mvm_mac_ctxt_send_beacon_v9()
1173 beacon->len)); in iwl_mvm_mac_ctxt_send_beacon_v9()
1185 return -EINVAL; in iwl_mvm_mac_ctxt_send_beacon()
1190 if (!fw_has_capa(&mvm->fw->ucode_capa, in iwl_mvm_mac_ctxt_send_beacon()
1194 if (fw_has_api(&mvm->fw->ucode_capa, in iwl_mvm_mac_ctxt_send_beacon()
1210 WARN_ON(vif->type != NL80211_IFTYPE_AP && in iwl_mvm_mac_ctxt_beacon_changed()
1211 vif->type != NL80211_IFTYPE_ADHOC); in iwl_mvm_mac_ctxt_beacon_changed()
1213 beacon = ieee80211_beacon_get_template(mvm->hw, vif, NULL, in iwl_mvm_mac_ctxt_beacon_changed()
1214 link_conf->link_id); in iwl_mvm_mac_ctxt_beacon_changed()
1216 return -ENOMEM; in iwl_mvm_mac_ctxt_beacon_changed()
1219 if (mvm->beacon_inject_active) { in iwl_mvm_mac_ctxt_beacon_changed()
1221 return -EBUSY; in iwl_mvm_mac_ctxt_beacon_changed()
1243 if (vif->type != NL80211_IFTYPE_STATION || !vif->cfg.assoc) in iwl_mvm_mac_ap_iterator()
1247 if (vif->p2p && data->beacon_device_ts) in iwl_mvm_mac_ap_iterator()
1250 data->beacon_device_ts = vif->bss_conf.sync_device_ts; in iwl_mvm_mac_ap_iterator()
1251 data->beacon_int = vif->bss_conf.beacon_int; in iwl_mvm_mac_ap_iterator()
1267 * wake-ups. in iwl_mvm_mac_ctxt_cmd_ap_set_filter_flags()
1270 if (mvmvif->ap_assoc_sta_count || !mvm->drop_bcn_ap_mode) { in iwl_mvm_mac_ctxt_cmd_ap_set_filter_flags()
1295 cmd->ac[IWL_MVM_TX_FIFO_VO].fifos_mask |= BIT(IWL_MVM_TX_FIFO_MCAST); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1298 &cmd->filter_flags, in iwl_mvm_mac_ctxt_cmd_fill_ap()
1302 ctxt_ap->bi = cpu_to_le32(vif->bss_conf.beacon_int); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1303 ctxt_ap->dtim_interval = cpu_to_le32(vif->bss_conf.beacon_int * in iwl_mvm_mac_ctxt_cmd_fill_ap()
1304 vif->bss_conf.dtim_period); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1306 if (!fw_has_api(&mvm->fw->ucode_capa, in iwl_mvm_mac_ctxt_cmd_fill_ap()
1308 ctxt_ap->mcast_qid = cpu_to_le32(mvmvif->deflink.cab_queue); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1312 * just modify the MAC then we should keep the time -- the firmware in iwl_mvm_mac_ctxt_cmd_fill_ap()
1322 mvm->hw, IEEE80211_IFACE_ITER_RESUME_ALL, in iwl_mvm_mac_ctxt_cmd_fill_ap()
1327 mvmvif->ap_beacon_time = data.beacon_device_ts + in iwl_mvm_mac_ctxt_cmd_fill_ap()
1331 mvmvif->ap_beacon_time = iwl_mvm_get_systime(mvm); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1335 ctxt_ap->beacon_time = cpu_to_le32(mvmvif->ap_beacon_time); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1336 ctxt_ap->beacon_tsf = 0; /* unused */ in iwl_mvm_mac_ctxt_cmd_fill_ap()
1339 ctxt_ap->beacon_template = cpu_to_le32(mvmvif->id); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1348 WARN_ON(vif->type != NL80211_IFTYPE_AP || vif->p2p); in iwl_mvm_mac_ctxt_cmd_ap()
1365 struct ieee80211_p2p_noa_attr *noa = &vif->bss_conf.p2p_noa_attr; in iwl_mvm_mac_ctxt_cmd_go()
1367 WARN_ON(vif->type != NL80211_IFTYPE_AP || !vif->p2p); in iwl_mvm_mac_ctxt_cmd_go()
1376 cmd.go.ctwin = cpu_to_le32(noa->oppps_ctwindow & in iwl_mvm_mac_ctxt_cmd_go()
1379 cpu_to_le32(!!(noa->oppps_ctwindow & in iwl_mvm_mac_ctxt_cmd_go()
1389 switch (vif->type) { in iwl_mvm_mac_ctx_send()
1395 if (!vif->p2p) in iwl_mvm_mac_ctx_send()
1409 return -EOPNOTSUPP; in iwl_mvm_mac_ctx_send()
1417 if (WARN_ONCE(mvmvif->uploaded, "Adding active MAC %pM/%d\n", in iwl_mvm_mac_ctxt_add()
1418 vif->addr, ieee80211_vif_type_p2p(vif))) in iwl_mvm_mac_ctxt_add()
1419 return -EIO; in iwl_mvm_mac_ctxt_add()
1429 mvmvif->uploaded = true; in iwl_mvm_mac_ctxt_add()
1438 if (WARN_ONCE(!mvmvif->uploaded, "Changing inactive MAC %pM/%d\n", in iwl_mvm_mac_ctxt_changed()
1439 vif->addr, ieee80211_vif_type_p2p(vif))) in iwl_mvm_mac_ctxt_changed()
1440 return -EIO; in iwl_mvm_mac_ctxt_changed()
1452 if (WARN_ONCE(!mvmvif->uploaded, "Removing inactive MAC %pM/%d\n", in iwl_mvm_mac_ctxt_remove()
1453 vif->addr, ieee80211_vif_type_p2p(vif))) in iwl_mvm_mac_ctxt_remove()
1454 return -EIO; in iwl_mvm_mac_ctxt_remove()
1458 cmd.id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_remove()
1459 mvmvif->color)); in iwl_mvm_mac_ctxt_remove()
1466 mvmvif->uploaded = false; in iwl_mvm_mac_ctxt_remove()
1468 if (vif->type == NL80211_IFTYPE_MONITOR) { in iwl_mvm_mac_ctxt_remove()
1469 __clear_bit(IEEE80211_HW_RX_INCLUDES_FCS, mvm->hw->flags); in iwl_mvm_mac_ctxt_remove()
1484 if (!tx_success && !mvmvif->csa_countdown) in iwl_mvm_csa_count_down()
1487 mvmvif->csa_countdown = true; in iwl_mvm_csa_count_down()
1493 &csa_vif->bss_conf); in iwl_mvm_csa_count_down()
1494 if (csa_vif->p2p && in iwl_mvm_csa_count_down()
1495 !iwl_mvm_te_scheduled(&mvmvif->time_event_data) && gp2 && in iwl_mvm_csa_count_down()
1498 csa_vif->bss_conf.beacon_int - in iwl_mvm_csa_count_down()
1503 IWL_MVM_CHANNEL_SWITCH_TIME_GO - in iwl_mvm_csa_count_down()
1507 } else if (!iwl_mvm_te_scheduled(&mvmvif->time_event_data)) { in iwl_mvm_csa_count_down()
1510 RCU_INIT_POINTER(mvm->csa_vif, NULL); in iwl_mvm_csa_count_down()
1519 struct iwl_extended_beacon_notif *beacon = (void *)pkt->data; in iwl_mvm_rx_beacon_notif()
1520 struct iwl_extended_beacon_notif_v5 *beacon_v5 = (void *)pkt->data; in iwl_mvm_rx_beacon_notif()
1526 lockdep_assert_held(&mvm->mutex); in iwl_mvm_rx_beacon_notif()
1528 mvm->ap_last_beacon_gp2 = le32_to_cpu(beacon->gp2); in iwl_mvm_rx_beacon_notif()
1532 &beacon_v5->beacon_notify_hdr; in iwl_mvm_rx_beacon_notif()
1537 mvm->ibss_manager = beacon_v5->ibss_mgr_status != 0; in iwl_mvm_rx_beacon_notif()
1539 status = le16_to_cpu(agg_status->status) & TX_STATUS_MSK; in iwl_mvm_rx_beacon_notif()
1542 status, beacon_notify_hdr->failure_frame, in iwl_mvm_rx_beacon_notif()
1543 le64_to_cpu(beacon->tsf), in iwl_mvm_rx_beacon_notif()
1544 mvm->ap_last_beacon_gp2, in iwl_mvm_rx_beacon_notif()
1545 le32_to_cpu(beacon_notify_hdr->initial_rate)); in iwl_mvm_rx_beacon_notif()
1550 mvm->ibss_manager = beacon->ibss_mgr_status != 0; in iwl_mvm_rx_beacon_notif()
1551 status = le32_to_cpu(beacon->status) & TX_STATUS_MSK; in iwl_mvm_rx_beacon_notif()
1554 status, le64_to_cpu(beacon->tsf), in iwl_mvm_rx_beacon_notif()
1555 mvm->ap_last_beacon_gp2); in iwl_mvm_rx_beacon_notif()
1558 csa_vif = rcu_dereference_protected(mvm->csa_vif, in iwl_mvm_rx_beacon_notif()
1559 lockdep_is_held(&mvm->mutex)); in iwl_mvm_rx_beacon_notif()
1560 if (unlikely(csa_vif && csa_vif->bss_conf.csa_active)) in iwl_mvm_rx_beacon_notif()
1561 iwl_mvm_csa_count_down(mvm, csa_vif, mvm->ap_last_beacon_gp2, in iwl_mvm_rx_beacon_notif()
1564 tx_blocked_vif = rcu_dereference_protected(mvm->csa_tx_blocked_vif, in iwl_mvm_rx_beacon_notif()
1565 lockdep_is_held(&mvm->mutex)); in iwl_mvm_rx_beacon_notif()
1575 if (!mvm->csa_tx_block_bcn_timeout) in iwl_mvm_rx_beacon_notif()
1576 mvm->csa_tx_block_bcn_timeout = in iwl_mvm_rx_beacon_notif()
1579 mvm->csa_tx_block_bcn_timeout--; in iwl_mvm_rx_beacon_notif()
1582 if (mvm->csa_tx_block_bcn_timeout == 0) { in iwl_mvm_rx_beacon_notif()
1584 RCU_INIT_POINTER(mvm->csa_tx_blocked_vif, NULL); in iwl_mvm_rx_beacon_notif()
1593 struct iwl_missed_beacons_notif *mb = (void *)pkt->data; in iwl_mvm_rx_missed_beacons_notif()
1600 u32 id = le32_to_cpu(mb->link_id); in iwl_mvm_rx_missed_beacons_notif()
1603 int link_id = -1; in iwl_mvm_rx_missed_beacons_notif()
1604 u8 notif_ver = iwl_fw_lookup_notif_ver(mvm->fw, LEGACY_GROUP, in iwl_mvm_rx_missed_beacons_notif()
1618 vif = bss_conf->vif; in iwl_mvm_rx_missed_beacons_notif()
1619 link_id = bss_conf->link_id; in iwl_mvm_rx_missed_beacons_notif()
1626 le32_to_cpu(mb->consec_missed_beacons), in iwl_mvm_rx_missed_beacons_notif()
1627 le32_to_cpu(mb->consec_missed_beacons_since_last_rx), in iwl_mvm_rx_missed_beacons_notif()
1628 le32_to_cpu(mb->num_recvd_beacons), in iwl_mvm_rx_missed_beacons_notif()
1629 le32_to_cpu(mb->num_expected_beacons)); in iwl_mvm_rx_missed_beacons_notif()
1638 mvm->trans->dbg.dump_file_name_ext_valid = true; in iwl_mvm_rx_missed_beacons_notif()
1639 snprintf(mvm->trans->dbg.dump_file_name_ext, IWL_FW_INI_MAX_NAME, in iwl_mvm_rx_missed_beacons_notif()
1642 rx_missed_bcon = le32_to_cpu(mb->consec_missed_beacons); in iwl_mvm_rx_missed_beacons_notif()
1644 le32_to_cpu(mb->consec_missed_beacons_since_last_rx); in iwl_mvm_rx_missed_beacons_notif()
1660 link_id >= 0 && hweight16(vif->active_links) > 1) { in iwl_mvm_rx_missed_beacons_notif()
1670 iwl_dbg_tlv_time_point(&mvm->fwrt, in iwl_mvm_rx_missed_beacons_notif()
1673 trigger = iwl_fw_dbg_trigger_on(&mvm->fwrt, ieee80211_vif_to_wdev(vif), in iwl_mvm_rx_missed_beacons_notif()
1678 bcon_trig = (void *)trigger->data; in iwl_mvm_rx_missed_beacons_notif()
1679 stop_trig_missed_bcon = le32_to_cpu(bcon_trig->stop_consec_missed_bcon); in iwl_mvm_rx_missed_beacons_notif()
1681 le32_to_cpu(bcon_trig->stop_consec_missed_bcon_since_rx); in iwl_mvm_rx_missed_beacons_notif()
1688 iwl_fw_dbg_collect_trig(&mvm->fwrt, trigger, NULL); in iwl_mvm_rx_missed_beacons_notif()
1690 iwl_fw_dbg_collect_trig(&mvm->fwrt, trigger, ""); in iwl_mvm_rx_missed_beacons_notif()
1699 struct iwl_stored_beacon_notif_common *sb = (void *)pkt->data; in iwl_mvm_rx_stored_beacon_notif()
1703 u32 size = le32_to_cpu(sb->byte_count); in iwl_mvm_rx_stored_beacon_notif()
1704 int ver = iwl_fw_lookup_cmd_ver(mvm->fw, in iwl_mvm_rx_stored_beacon_notif()
1711 /* handle per-version differences */ in iwl_mvm_rx_stored_beacon_notif()
1713 struct iwl_stored_beacon_notif_v2 *sb_v2 = (void *)pkt->data; in iwl_mvm_rx_stored_beacon_notif()
1718 data = sb_v2->data; in iwl_mvm_rx_stored_beacon_notif()
1720 struct iwl_stored_beacon_notif_v3 *sb_v3 = (void *)pkt->data; in iwl_mvm_rx_stored_beacon_notif()
1725 data = sb_v3->data; in iwl_mvm_rx_stored_beacon_notif()
1736 rx_status.mactime = le64_to_cpu(sb->tsf); in iwl_mvm_rx_stored_beacon_notif()
1739 rx_status.device_timestamp = le32_to_cpu(sb->system_time); in iwl_mvm_rx_stored_beacon_notif()
1741 (sb->band & cpu_to_le16(RX_RES_PHY_FLAGS_BAND_24)) ? in iwl_mvm_rx_stored_beacon_notif()
1744 ieee80211_channel_to_frequency(le16_to_cpu(sb->channel), in iwl_mvm_rx_stored_beacon_notif()
1752 ieee80211_rx_napi(mvm->hw, NULL, skb, NULL); in iwl_mvm_rx_stored_beacon_notif()
1759 struct iwl_probe_resp_data_notif *notif = (void *)pkt->data; in iwl_mvm_probe_resp_data_notif()
1761 u32 id = le32_to_cpu(notif->mac_id); in iwl_mvm_probe_resp_data_notif()
1766 notif->noa_active, notif->csa_counter); in iwl_mvm_probe_resp_data_notif()
1778 memcpy(&new_data->notif, notif, sizeof(new_data->notif)); in iwl_mvm_probe_resp_data_notif()
1781 new_data->noa_len = sizeof(struct ieee80211_vendor_ie) + in iwl_mvm_probe_resp_data_notif()
1782 sizeof(new_data->notif.noa_attr) - 1; in iwl_mvm_probe_resp_data_notif()
1788 if (new_data->notif.noa_attr.len_low == in iwl_mvm_probe_resp_data_notif()
1790 new_data->noa_len -= sizeof(struct ieee80211_p2p_noa_desc); in iwl_mvm_probe_resp_data_notif()
1792 old_data = rcu_dereference_protected(mvmvif->deflink.probe_resp_data, in iwl_mvm_probe_resp_data_notif()
1793 lockdep_is_held(&mvmvif->mvm->mutex)); in iwl_mvm_probe_resp_data_notif()
1794 rcu_assign_pointer(mvmvif->deflink.probe_resp_data, new_data); in iwl_mvm_probe_resp_data_notif()
1799 if (notif->csa_counter != IWL_PROBE_RESP_DATA_NO_CSA && in iwl_mvm_probe_resp_data_notif()
1800 notif->csa_counter >= 1) in iwl_mvm_probe_resp_data_notif()
1801 ieee80211_beacon_set_cntdwn(vif, notif->csa_counter); in iwl_mvm_probe_resp_data_notif()
1814 u8 notif_ver = iwl_fw_lookup_notif_ver(mvm->fw, MAC_CONF_GROUP, in iwl_mvm_channel_switch_start_notif()
1821 struct iwl_channel_switch_start_notif_v1 *notif = (void *)pkt->data; in iwl_mvm_channel_switch_start_notif()
1824 id_n_color = le32_to_cpu(notif->id_and_color); in iwl_mvm_channel_switch_start_notif()
1832 csa_active = vif->bss_conf.csa_active; in iwl_mvm_channel_switch_start_notif()
1834 struct iwl_channel_switch_start_notif *notif = (void *)pkt->data; in iwl_mvm_channel_switch_start_notif()
1835 u32 link_id = le32_to_cpu(notif->link_id); in iwl_mvm_channel_switch_start_notif()
1843 mac_link_id = bss_conf->link_id; in iwl_mvm_channel_switch_start_notif()
1844 vif = bss_conf->vif; in iwl_mvm_channel_switch_start_notif()
1845 csa_active = bss_conf->csa_active; in iwl_mvm_channel_switch_start_notif()
1850 id_n_color = FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color); in iwl_mvm_channel_switch_start_notif()
1852 switch (vif->type) { in iwl_mvm_channel_switch_start_notif()
1854 csa_vif = rcu_dereference(mvm->csa_vif); in iwl_mvm_channel_switch_start_notif()
1855 if (WARN_ON(!csa_vif || !csa_vif->bss_conf.csa_active || in iwl_mvm_channel_switch_start_notif()
1860 csa_id = FW_CMD_ID_AND_COLOR(csa_mvmvif->id, csa_mvmvif->color); in iwl_mvm_channel_switch_start_notif()
1868 schedule_delayed_work(&mvm->cs_tx_unblock_dwork, in iwl_mvm_channel_switch_start_notif()
1870 csa_vif->bss_conf.beacon_int)); in iwl_mvm_channel_switch_start_notif()
1876 RCU_INIT_POINTER(mvm->csa_vif, NULL); in iwl_mvm_channel_switch_start_notif()
1883 if (iwl_fw_lookup_notif_ver(mvm->fw, MAC_CONF_GROUP, in iwl_mvm_channel_switch_start_notif()
1892 cancel_delayed_work(&mvmvif->csa_work); in iwl_mvm_channel_switch_start_notif()
1908 struct iwl_channel_switch_error_notif *notif = (void *)pkt->data; in iwl_mvm_channel_switch_error_notif()
1910 u32 id = le32_to_cpu(notif->link_id); in iwl_mvm_channel_switch_error_notif()
1911 u32 csa_err_mask = le32_to_cpu(notif->csa_err_mask); in iwl_mvm_channel_switch_error_notif()
1933 struct iwl_missed_vap_notif *mb = (void *)pkt->data; in iwl_mvm_rx_missed_vap_notif()
1935 u32 id = le32_to_cpu(mb->mac_id); in iwl_mvm_rx_missed_vap_notif()
1939 le32_to_cpu(mb->mac_id), in iwl_mvm_rx_missed_vap_notif()
1940 mb->num_beacon_intervals_elapsed, in iwl_mvm_rx_missed_vap_notif()
1941 mb->profile_periodicity); in iwl_mvm_rx_missed_vap_notif()