| .. | .. |
|---|
| 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) 2013 - 2015 Intel Mobile Communications GmbH |
|---|
| 10 | 10 | * Copyright(c) 2016 - 2017 Intel Deutschland GmbH |
|---|
| 11 | 11 | * |
|---|
| .. | .. |
|---|
| 27 | 27 | * |
|---|
| 28 | 28 | * BSD LICENSE |
|---|
| 29 | 29 | * |
|---|
| 30 | | - * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved. |
|---|
| 30 | + * Copyright(c) 2012 - 2014, 2020 Intel Corporation. All rights reserved. |
|---|
| 31 | 31 | * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH |
|---|
| 32 | 32 | * Copyright(c) 2016 - 2017 Intel Deutschland GmbH |
|---|
| 33 | 33 | * All rights reserved. |
|---|
| .. | .. |
|---|
| 59 | 59 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|---|
| 60 | 60 | * |
|---|
| 61 | 61 | *****************************************************************************/ |
|---|
| 62 | | - |
|---|
| 63 | 62 | #ifndef __iwl_fw_api_binding_h__ |
|---|
| 64 | 63 | #define __iwl_fw_api_binding_h__ |
|---|
| 64 | + |
|---|
| 65 | +#include <fw/file.h> |
|---|
| 66 | +#include <fw/img.h> |
|---|
| 65 | 67 | |
|---|
| 66 | 68 | #define MAX_MACS_IN_BINDING (3) |
|---|
| 67 | 69 | #define MAX_BINDINGS (4) |
|---|
| .. | .. |
|---|
| 112 | 114 | #define IWL_LMAC_24G_INDEX 0 |
|---|
| 113 | 115 | #define IWL_LMAC_5G_INDEX 1 |
|---|
| 114 | 116 | |
|---|
| 117 | +static inline u32 iwl_mvm_get_lmac_id(const struct iwl_fw *fw, |
|---|
| 118 | + enum nl80211_band band){ |
|---|
| 119 | + if (!fw_has_capa(&fw->ucode_capa, IWL_UCODE_TLV_CAPA_CDB_SUPPORT) || |
|---|
| 120 | + band == NL80211_BAND_2GHZ) |
|---|
| 121 | + return IWL_LMAC_24G_INDEX; |
|---|
| 122 | + return IWL_LMAC_5G_INDEX; |
|---|
| 123 | +} |
|---|
| 124 | + |
|---|
| 115 | 125 | /* The maximal number of fragments in the FW's schedule session */ |
|---|
| 116 | 126 | #define IWL_MVM_MAX_QUOTA 128 |
|---|
| 117 | 127 | |
|---|