qcacmn: Add support to send PASN commands
Add support to send below PASN commands: WMI_RTT_PASN_AUTH_STATUS_CMD WMI_RTT_PASN_DEAUTH_CMD WMI_VDEV_SET_LTF_KEY_SEED_CMDID Change-Id: I5a50a634317d0a692feee5be5a36da22b4c5d713 CRs-Fixed: 3154530
This commit is contained in:

committed by
Madan Koyyalamudi

szülő
e3e178489d
commit
b7fa703306
@@ -104,8 +104,12 @@ static inline void wlan_crypto_put_be64(u8 *a, u64 val)
|
||||
((tx_ops)->crypto_tx_ops.defaultkey)
|
||||
#define WLAN_CRYPTO_TX_OPS_SET_KEY(tx_ops) \
|
||||
((tx_ops)->crypto_tx_ops.set_key)
|
||||
#define WLAN_CRYPTO_TX_OPS_SET_VDEV_PARAM(tx_ops) \
|
||||
((tx_ops)->crypto_tx_ops.set_vdev_param)
|
||||
#define WLAN_CRYPTO_TX_OPS_GETPN(tx_ops) \
|
||||
((tx_ops)->crypto_tx_ops.getpn)
|
||||
#define WLAN_CRYPTO_TX_OPS_SET_LTF_KEYSEED(tx_ops) \
|
||||
((tx_ops)->crypto_tx_ops.set_ltf_keyseed)
|
||||
#define WLAN_CRYPTO_TX_OPS_REGISTER_EVENTS(tx_ops) \
|
||||
((tx_ops)->crypto_tx_ops.register_events)
|
||||
#define WLAN_CRYPTO_TX_OPS_DEREGISTER_EVENTS(tx_ops) \
|
||||
|
@@ -4803,3 +4803,46 @@ QDF_STATUS wlan_crypto_create_fils_rik(uint8_t *rrk, uint8_t rrk_len,
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif /* WLAN_FEATURE_FILS_SK */
|
||||
|
||||
#if defined(WIFI_POS_CONVERGED) && defined(WLAN_FEATURE_RTT_11AZ_SUPPORT)
|
||||
QDF_STATUS
|
||||
wlan_crypto_set_ltf_keyseed(struct wlan_objmgr_psoc *psoc,
|
||||
struct wlan_crypto_ltf_keyseed_data *data)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
struct wlan_lmac_if_tx_ops *tx_ops;
|
||||
|
||||
tx_ops = wlan_psoc_get_lmac_if_txops(psoc);
|
||||
if (!tx_ops) {
|
||||
crypto_err("tx_ops is NULL");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
if (WLAN_CRYPTO_TX_OPS_SET_LTF_KEYSEED(tx_ops))
|
||||
status = WLAN_CRYPTO_TX_OPS_SET_LTF_KEYSEED(tx_ops)(psoc, data);
|
||||
|
||||
return status;
|
||||
}
|
||||
#endif
|
||||
|
||||
QDF_STATUS
|
||||
wlan_crypto_vdev_set_param(struct wlan_objmgr_psoc *psoc, uint32_t vdev_id,
|
||||
uint32_t param_id, uint32_t param_value)
|
||||
{
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
struct wlan_lmac_if_tx_ops *tx_ops;
|
||||
|
||||
tx_ops = wlan_psoc_get_lmac_if_txops(psoc);
|
||||
if (!tx_ops) {
|
||||
crypto_err("tx_ops is NULL");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
if (WLAN_CRYPTO_TX_OPS_SET_VDEV_PARAM(tx_ops))
|
||||
status = WLAN_CRYPTO_TX_OPS_SET_VDEV_PARAM(tx_ops) (psoc,
|
||||
vdev_id,
|
||||
param_id,
|
||||
param_value);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
Reference in New Issue
Block a user