iwlwifi: mvm: add PROTECTED_TWT firmware API
Add the PROTECTED_TWT bit to the MAC context data_policy enum. Define the PROTECTED_TWT TLV. Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Link: https://lore.kernel.org/r/iwlwifi.20200911204056.c80b994d6bf0.Ifd45dfd5066283886f969313c20ff81edde428ff@changeid Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
3d70247d34
commit
bbb95d37b7
|
@ -5,9 +5,8 @@
|
||||||
*
|
*
|
||||||
* GPL LICENSE SUMMARY
|
* GPL LICENSE SUMMARY
|
||||||
*
|
*
|
||||||
* Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
|
|
||||||
* Copyright(c) 2017 Intel Deutschland GmbH
|
* Copyright(c) 2017 Intel Deutschland GmbH
|
||||||
* Copyright(c) 2018 - 2019 Intel Corporation
|
* Copyright(c) 2012 - 2014, 2018 - 2020 Intel Corporation
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of version 2 of the GNU General Public License as
|
* it under the terms of version 2 of the GNU General Public License as
|
||||||
|
@ -27,9 +26,8 @@
|
||||||
*
|
*
|
||||||
* BSD LICENSE
|
* BSD LICENSE
|
||||||
*
|
*
|
||||||
* Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
|
|
||||||
* Copyright(c) 2017 Intel Deutschland GmbH
|
* Copyright(c) 2017 Intel Deutschland GmbH
|
||||||
* Copyright(c) 2018 - 2019 Intel Corporation
|
* Copyright(c) 2012 - 2014, 2018 - 2020 Intel Corporation
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -188,9 +186,17 @@ struct iwl_mac_data_ibss {
|
||||||
/**
|
/**
|
||||||
* enum iwl_mac_data_policy - policy of the data path for this MAC
|
* enum iwl_mac_data_policy - policy of the data path for this MAC
|
||||||
* @TWT_SUPPORTED: twt is supported
|
* @TWT_SUPPORTED: twt is supported
|
||||||
|
* @MORE_DATA_ACK_SUPPORTED: AP supports More Data Ack according to
|
||||||
|
* paragraph 9.4.1.17 in P802.11ax_D4 specification. Used for TWT
|
||||||
|
* early termination detection.
|
||||||
|
* @FLEXIBLE_TWT_SUPPORTED: AP supports flexible TWT schedule
|
||||||
|
* @PROTECTED_TWT_SUPPORTED: AP supports protected TWT frames (with 11w)
|
||||||
*/
|
*/
|
||||||
enum iwl_mac_data_policy {
|
enum iwl_mac_data_policy {
|
||||||
TWT_SUPPORTED = BIT(0),
|
TWT_SUPPORTED = BIT(0),
|
||||||
|
MORE_DATA_ACK_SUPPORTED = BIT(1),
|
||||||
|
FLEXIBLE_TWT_SUPPORTED = BIT(2),
|
||||||
|
PROTECTED_TWT_SUPPORTED = BIT(3),
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -405,8 +405,8 @@ typedef unsigned int __bitwise iwl_ucode_tlv_capa_t;
|
||||||
* to report the CSI information with (certain) RX frames
|
* to report the CSI information with (certain) RX frames
|
||||||
* @IWL_UCODE_TLV_CAPA_FTM_CALIBRATED: has FTM calibrated and thus supports both
|
* @IWL_UCODE_TLV_CAPA_FTM_CALIBRATED: has FTM calibrated and thus supports both
|
||||||
* initiator and responder
|
* initiator and responder
|
||||||
*
|
|
||||||
* @IWL_UCODE_TLV_CAPA_MLME_OFFLOAD: supports MLME offload
|
* @IWL_UCODE_TLV_CAPA_MLME_OFFLOAD: supports MLME offload
|
||||||
|
* @IWL_UCODE_TLV_CAPA_PROTECTED_TWT: Supports protection of TWT action frames
|
||||||
*
|
*
|
||||||
* @NUM_IWL_UCODE_TLV_CAPA: number of bits used
|
* @NUM_IWL_UCODE_TLV_CAPA: number of bits used
|
||||||
*/
|
*/
|
||||||
|
@ -451,6 +451,7 @@ enum iwl_ucode_tlv_capa {
|
||||||
IWL_UCODE_TLV_CAPA_SET_PPAG = (__force iwl_ucode_tlv_capa_t)52,
|
IWL_UCODE_TLV_CAPA_SET_PPAG = (__force iwl_ucode_tlv_capa_t)52,
|
||||||
IWL_UCODE_TLV_CAPA_TAS_CFG = (__force iwl_ucode_tlv_capa_t)53,
|
IWL_UCODE_TLV_CAPA_TAS_CFG = (__force iwl_ucode_tlv_capa_t)53,
|
||||||
IWL_UCODE_TLV_CAPA_SESSION_PROT_CMD = (__force iwl_ucode_tlv_capa_t)54,
|
IWL_UCODE_TLV_CAPA_SESSION_PROT_CMD = (__force iwl_ucode_tlv_capa_t)54,
|
||||||
|
IWL_UCODE_TLV_CAPA_PROTECTED_TWT = (__force iwl_ucode_tlv_capa_t)56,
|
||||||
|
|
||||||
/* set 2 */
|
/* set 2 */
|
||||||
IWL_UCODE_TLV_CAPA_EXTENDED_DTS_MEASURE = (__force iwl_ucode_tlv_capa_t)64,
|
IWL_UCODE_TLV_CAPA_EXTENDED_DTS_MEASURE = (__force iwl_ucode_tlv_capa_t)64,
|
||||||
|
|
Loading…
Reference in New Issue