Lines Matching refs:mvmvif
24 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_set_rekey_data() local
28 mvmvif->rekey_data.kek_len = data->kek_len; in iwl_mvm_set_rekey_data()
29 mvmvif->rekey_data.kck_len = data->kck_len; in iwl_mvm_set_rekey_data()
30 memcpy(mvmvif->rekey_data.kek, data->kek, data->kek_len); in iwl_mvm_set_rekey_data()
31 memcpy(mvmvif->rekey_data.kck, data->kck, data->kck_len); in iwl_mvm_set_rekey_data()
32 mvmvif->rekey_data.akm = data->akm & 0xFF; in iwl_mvm_set_rekey_data()
33 mvmvif->rekey_data.replay_ctr = in iwl_mvm_set_rekey_data()
35 mvmvif->rekey_data.valid = true; in iwl_mvm_set_rekey_data()
45 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_ipv6_addr_change() local
49 memset(mvmvif->tentative_addrs, 0, sizeof(mvmvif->tentative_addrs)); in iwl_mvm_ipv6_addr_change()
53 mvmvif->target_ipv6_addrs[idx] = ifa->addr; in iwl_mvm_ipv6_addr_change()
55 __set_bit(idx, mvmvif->tentative_addrs); in iwl_mvm_ipv6_addr_change()
62 mvmvif->num_target_ipv6_addrs = idx; in iwl_mvm_ipv6_addr_change()
69 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_set_default_unicast_key() local
71 mvmvif->tx_key_idx = idx; in iwl_mvm_set_default_unicast_key()
116 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_wowlan_program_keys() local
128 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_wowlan_program_keys()
129 mvmvif->color)), in iwl_mvm_wowlan_program_keys()
146 if (key->keyidx == mvmvif->tx_key_idx) { in iwl_mvm_wowlan_program_keys()
455 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_wowlan_config_rsc_tsc() local
473 data.rsc->sta_id = cpu_to_le32(mvmvif->ap_sta_id); in iwl_mvm_wowlan_config_rsc_tsc()
496 data.rsc_tsc->sta_id = cpu_to_le32(mvmvif->ap_sta_id); in iwl_mvm_wowlan_config_rsc_tsc()
667 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_send_patterns() local
689 pattern_cmd->sta_id = mvmvif->ap_sta_id; in iwl_mvm_send_patterns()
716 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_d3_reprogram() local
730 if (WARN_ON(!mvmvif->phy_ctxt)) in iwl_mvm_d3_reprogram()
744 ret = iwl_mvm_phy_ctxt_add(mvm, mvmvif->phy_ctxt, &chandef, in iwl_mvm_d3_reprogram()
750 mvmvif->uploaded = false; in iwl_mvm_d3_reprogram()
761 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->phy_ctxt->id, in iwl_mvm_d3_reprogram()
762 mvmvif->phy_ctxt->color)); in iwl_mvm_d3_reprogram()
765 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->phy_ctxt->id, in iwl_mvm_d3_reprogram()
766 mvmvif->phy_ctxt->color)); in iwl_mvm_d3_reprogram()
767 binding_cmd.macs[0] = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_d3_reprogram()
768 mvmvif->color)); in iwl_mvm_d3_reprogram()
789 rcu_assign_pointer(mvm->fw_id_to_mac_id[mvmvif->ap_sta_id], ap_sta); in iwl_mvm_d3_reprogram()
798 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->phy_ctxt->id, in iwl_mvm_d3_reprogram()
799 mvmvif->phy_ctxt->color)); in iwl_mvm_d3_reprogram()
822 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_get_last_nonqos_seq() local
826 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_get_last_nonqos_seq()
827 mvmvif->color)), in iwl_mvm_get_last_nonqos_seq()
858 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_set_last_nonqos_seq() local
862 cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_set_last_nonqos_seq()
863 mvmvif->color)), in iwl_mvm_set_last_nonqos_seq()
864 .value = cpu_to_le16(mvmvif->seqno), in iwl_mvm_set_last_nonqos_seq()
868 if (!mvmvif->seqno_valid) in iwl_mvm_set_last_nonqos_seq()
871 mvmvif->seqno_valid = false; in iwl_mvm_set_last_nonqos_seq()
910 struct ieee80211_vif *vif, struct iwl_mvm_vif *mvmvif, in iwl_mvm_get_wowlan_config() argument
987 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_wowlan_config_key_params() local
1025 cpu_to_le32(mvmvif->ap_sta_id); in iwl_mvm_wowlan_config_key_params()
1048 if (mvmvif->rekey_data.valid) { in iwl_mvm_wowlan_config_key_params()
1066 memcpy(kek_kck_cmd.kck, mvmvif->rekey_data.kck, in iwl_mvm_wowlan_config_key_params()
1067 mvmvif->rekey_data.kck_len); in iwl_mvm_wowlan_config_key_params()
1068 kek_kck_cmd.kck_len = cpu_to_le16(mvmvif->rekey_data.kck_len); in iwl_mvm_wowlan_config_key_params()
1069 memcpy(kek_kck_cmd.kek, mvmvif->rekey_data.kek, in iwl_mvm_wowlan_config_key_params()
1070 mvmvif->rekey_data.kek_len); in iwl_mvm_wowlan_config_key_params()
1071 kek_kck_cmd.kek_len = cpu_to_le16(mvmvif->rekey_data.kek_len); in iwl_mvm_wowlan_config_key_params()
1072 kek_kck_cmd.replay_ctr = mvmvif->rekey_data.replay_ctr; in iwl_mvm_wowlan_config_key_params()
1073 kek_kck_cmd.akm = cpu_to_le32(mvmvif->rekey_data.akm); in iwl_mvm_wowlan_config_key_params()
1074 kek_kck_cmd.sta_id = cpu_to_le32(mvmvif->ap_sta_id); in iwl_mvm_wowlan_config_key_params()
1091 mvmvif->rekey_data.akm); in iwl_mvm_wowlan_config_key_params()
1106 struct ieee80211_vif *vif, struct iwl_mvm_vif *mvmvif, in iwl_mvm_wowlan_config() argument
1223 struct iwl_mvm_vif *mvmvif = NULL; in __iwl_mvm_suspend() local
1265 mvmvif = iwl_mvm_vif_from_mac80211(vif); in __iwl_mvm_suspend()
1267 if (mvmvif->ap_sta_id == IWL_MVM_INVALID_STA) { in __iwl_mvm_suspend()
1283 wowlan_config_cmd.sta_id = mvmvif->ap_sta_id; in __iwl_mvm_suspend()
1286 mvm->fw_id_to_mac_id[mvmvif->ap_sta_id], in __iwl_mvm_suspend()
1294 vif, mvmvif, ap_sta); in __iwl_mvm_suspend()
1298 vif, mvmvif, ap_sta); in __iwl_mvm_suspend()
1851 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_setup_connection_keep() local
1939 mvmvif->seqno_valid = true; in iwl_mvm_setup_connection_keep()
1941 mvmvif->seqno = status->non_qos_seq_ctr + 0x10; in iwl_mvm_setup_connection_keep()
2199 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_query_wakeup_reasons() local
2205 status = iwl_mvm_get_wakeup_status(mvm, mvmvif->ap_sta_id); in iwl_mvm_query_wakeup_reasons()