mac80211.c (56f4f12ba8f6d8cb52f776dfcd261f2e1040d38c) | mac80211.c (03117f30b998430d83842057a1ecf0382618acfb) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2/* 3 * Copyright (C) 2012-2014, 2018-2022 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 6 */ 7#include <linux/kernel.h> 8#include <linux/slab.h> --- 1303 unchanged lines hidden (view full) --- 1312 len = sizeof(cmd.v3); 1313 1314 /* all structs have the same common part, add it */ 1315 len += sizeof(cmd.common); 1316 1317 return iwl_mvm_send_cmd_pdu(mvm, cmd_id, 0, len, &cmd); 1318} 1319 | 1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2/* 3 * Copyright (C) 2012-2014, 2018-2022 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 6 */ 7#include <linux/kernel.h> 8#include <linux/slab.h> --- 1303 unchanged lines hidden (view full) --- 1312 len = sizeof(cmd.v3); 1313 1314 /* all structs have the same common part, add it */ 1315 len += sizeof(cmd.common); 1316 1317 return iwl_mvm_send_cmd_pdu(mvm, cmd_id, 0, len, &cmd); 1318} 1319 |
1320static int iwl_mvm_post_channel_switch(struct ieee80211_hw *hw, 1321 struct ieee80211_vif *vif) | 1320int iwl_mvm_post_channel_switch(struct ieee80211_hw *hw, 1321 struct ieee80211_vif *vif) |
1322{ 1323 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); 1324 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); 1325 int ret; 1326 1327 mutex_lock(&mvm->mutex); 1328 1329 if (vif->type == NL80211_IFTYPE_STATION) { --- 4 unchanged lines hidden (view full) --- 1334 mvmvif->deflink.ap_sta_id); 1335 1336 if (WARN_ON(!mvmsta)) { 1337 ret = -EIO; 1338 goto out_unlock; 1339 } 1340 1341 iwl_mvm_sta_modify_disable_tx(mvm, mvmsta, false); | 1322{ 1323 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); 1324 struct iwl_mvm *mvm = IWL_MAC80211_GET_MVM(hw); 1325 int ret; 1326 1327 mutex_lock(&mvm->mutex); 1328 1329 if (vif->type == NL80211_IFTYPE_STATION) { --- 4 unchanged lines hidden (view full) --- 1334 mvmvif->deflink.ap_sta_id); 1335 1336 if (WARN_ON(!mvmsta)) { 1337 ret = -EIO; 1338 goto out_unlock; 1339 } 1340 1341 iwl_mvm_sta_modify_disable_tx(mvm, mvmsta, false); |
1342 if (mvm->mld_api_is_used) 1343 iwl_mvm_mld_mac_ctxt_changed(mvm, vif, false); 1344 else 1345 iwl_mvm_mac_ctxt_changed(mvm, vif, false, NULL); |
|
1342 | 1346 |
1343 iwl_mvm_mac_ctxt_changed(mvm, vif, false, NULL); 1344 | |
1345 if (!fw_has_capa(&mvm->fw->ucode_capa, 1346 IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD)) { 1347 ret = iwl_mvm_enable_beacon_filter(mvm, vif, 0); 1348 if (ret) 1349 goto out_unlock; 1350 1351 iwl_mvm_stop_session_protection(mvm, vif); 1352 } --- 4657 unchanged lines hidden --- | 1347 if (!fw_has_capa(&mvm->fw->ucode_capa, 1348 IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD)) { 1349 ret = iwl_mvm_enable_beacon_filter(mvm, vif, 0); 1350 if (ret) 1351 goto out_unlock; 1352 1353 iwl_mvm_stop_session_protection(mvm, vif); 1354 } --- 4657 unchanged lines hidden --- |