hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/wireless/intel/iwlwifi/mvm/binding.c
....@@ -5,7 +5,7 @@
55 *
66 * GPL LICENSE SUMMARY
77 *
8
- * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
8
+ * Copyright(c) 2012 - 2014, 2020 Intel Corporation. All rights reserved.
99 * Copyright(c) 2016 Intel Deutschland GmbH
1010 *
1111 * This program is free software; you can redistribute it and/or modify
....@@ -17,11 +17,6 @@
1717 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1818 * General Public License for more details.
1919 *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,
23
- * USA
24
- *
2520 * The full GNU General Public License is included in this distribution
2621 * in the file called COPYING.
2722 *
....@@ -31,7 +26,7 @@
3126 *
3227 * BSD LICENSE
3328 *
34
- * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
29
+ * Copyright(c) 2012 - 2014, 2020 Intel Corporation. All rights reserved.
3530 * Copyright(c) 2016 Intel Deutschland GmbH
3631 * All rights reserved.
3732 *
....@@ -91,11 +86,8 @@
9186 if (fw_has_capa(&mvm->fw->ucode_capa,
9287 IWL_UCODE_TLV_CAPA_BINDING_CDB_SUPPORT)) {
9388 size = sizeof(cmd);
94
- if (phyctxt->channel->band == NL80211_BAND_2GHZ ||
95
- !iwl_mvm_is_cdb_supported(mvm))
96
- cmd.lmac_id = cpu_to_le32(IWL_LMAC_24G_INDEX);
97
- else
98
- cmd.lmac_id = cpu_to_le32(IWL_LMAC_5G_INDEX);
89
+ cmd.lmac_id = cpu_to_le32(iwl_mvm_get_lmac_id(mvm->fw,
90
+ phyctxt->channel->band));
9991 } else {
10092 size = IWL_BINDING_CMD_SIZE_V1;
10193 }