qcacmn: add crypto api to reset params for vdev
Add api 'wlan_crypto_reset_vdev_params' to reset params for specified vdev. Change-Id: Ie85a07605fb95b8614ca6e25fbe9fc06cd7877ef CRs-Fixed: 2828764
This commit is contained in:
parent
19b0f038d4
commit
ee46808595
@ -926,6 +926,16 @@ QDF_STATUS wlan_crypto_set_key_req(struct wlan_objmgr_vdev *vdev,
|
|||||||
* Return: None
|
* Return: None
|
||||||
*/
|
*/
|
||||||
void wlan_crypto_free_vdev_key(struct wlan_objmgr_vdev *vdev);
|
void wlan_crypto_free_vdev_key(struct wlan_objmgr_vdev *vdev);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* wlan_crypto_reset_vdev_params - Reset params for vdev
|
||||||
|
* @vdev: vdev object
|
||||||
|
*
|
||||||
|
* This function reset params stored in vdev crypto object.
|
||||||
|
*
|
||||||
|
* Return: None
|
||||||
|
*/
|
||||||
|
void wlan_crypto_reset_vdev_params(struct wlan_objmgr_vdev *vdev);
|
||||||
#else
|
#else
|
||||||
static inline void wlan_crypto_update_set_key_peer(
|
static inline void wlan_crypto_update_set_key_peer(
|
||||||
struct wlan_objmgr_vdev *vdev,
|
struct wlan_objmgr_vdev *vdev,
|
||||||
@ -959,6 +969,10 @@ QDF_STATUS wlan_crypto_set_key_req(struct wlan_objmgr_vdev *vdev,
|
|||||||
static inline void wlan_crypto_free_vdev_key(struct wlan_objmgr_vdev *vdev)
|
static inline void wlan_crypto_free_vdev_key(struct wlan_objmgr_vdev *vdev)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void wlan_crypto_reset_vdev_prarams(struct wlan_objmgr_vdev *vdev)
|
||||||
|
{
|
||||||
|
}
|
||||||
#endif /* CRYPTO_SET_KEY_CONVERGED */
|
#endif /* CRYPTO_SET_KEY_CONVERGED */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4651,6 +4651,22 @@ void wlan_crypto_set_sae_single_pmk_bss_cap(struct wlan_objmgr_vdev *vdev,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void wlan_crypto_reset_vdev_params(struct wlan_objmgr_vdev *vdev)
|
||||||
|
{
|
||||||
|
struct wlan_crypto_comp_priv *crypto_priv;
|
||||||
|
|
||||||
|
crypto_debug("reset params for vdev %d", wlan_vdev_get_id(vdev));
|
||||||
|
crypto_priv = (struct wlan_crypto_comp_priv *)
|
||||||
|
wlan_get_vdev_crypto_obj(vdev);
|
||||||
|
|
||||||
|
if (!crypto_priv) {
|
||||||
|
crypto_err("crypto_priv NULL");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
wlan_crypto_reset_prarams(&crypto_priv->crypto_params);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WLAN_FEATURE_FILS_SK
|
#ifdef WLAN_FEATURE_FILS_SK
|
||||||
|
Loading…
Reference in New Issue
Block a user