.. | .. |
---|
5 | 5 | * |
---|
6 | 6 | * GPL LICENSE SUMMARY |
---|
7 | 7 | * |
---|
8 | | - * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. |
---|
| 8 | + * Copyright(c) 2012 - 2014, 2020 Intel Corporation. All rights reserved. |
---|
9 | 9 | * Copyright(c) 2016 Intel Deutschland GmbH |
---|
10 | 10 | * |
---|
11 | 11 | * This program is free software; you can redistribute it and/or modify |
---|
.. | .. |
---|
17 | 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
18 | 18 | * General Public License for more details. |
---|
19 | 19 | * |
---|
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 | | - * |
---|
25 | 20 | * The full GNU General Public License is included in this distribution |
---|
26 | 21 | * in the file called COPYING. |
---|
27 | 22 | * |
---|
.. | .. |
---|
31 | 26 | * |
---|
32 | 27 | * BSD LICENSE |
---|
33 | 28 | * |
---|
34 | | - * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. |
---|
| 29 | + * Copyright(c) 2012 - 2014, 2020 Intel Corporation. All rights reserved. |
---|
35 | 30 | * Copyright(c) 2016 Intel Deutschland GmbH |
---|
36 | 31 | * All rights reserved. |
---|
37 | 32 | * |
---|
.. | .. |
---|
91 | 86 | if (fw_has_capa(&mvm->fw->ucode_capa, |
---|
92 | 87 | IWL_UCODE_TLV_CAPA_BINDING_CDB_SUPPORT)) { |
---|
93 | 88 | 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)); |
---|
99 | 91 | } else { |
---|
100 | 92 | size = IWL_BINDING_CMD_SIZE_V1; |
---|
101 | 93 | } |
---|