|
@@ -21432,7 +21432,6 @@ static int __wlan_hdd_cfg80211_set_pmksa(struct wiphy *wiphy,
|
|
|
{
|
|
|
struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
|
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
- mac_handle_t mac_handle;
|
|
|
QDF_STATUS result = QDF_STATUS_SUCCESS;
|
|
|
int status;
|
|
|
tPmkidCacheInfo *pmk_cache;
|
|
@@ -21470,8 +21469,6 @@ static int __wlan_hdd_cfg80211_set_pmksa(struct wiphy *wiphy,
|
|
|
if (!pmk_cache)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
- mac_handle = hdd_ctx->mac_handle;
|
|
|
-
|
|
|
hdd_fill_pmksa_info(adapter, pmk_cache, pmksa, false);
|
|
|
|
|
|
/*
|
|
@@ -21487,7 +21484,7 @@ static int __wlan_hdd_cfg80211_set_pmksa(struct wiphy *wiphy,
|
|
|
TRACE_CODE_HDD_CFG80211_SET_PMKSA,
|
|
|
adapter->vdev_id, result);
|
|
|
|
|
|
- sme_set_del_pmkid_cache(mac_handle, adapter->vdev_id,
|
|
|
+ sme_set_del_pmkid_cache(hdd_ctx->psoc, adapter->vdev_id,
|
|
|
pmk_cache, true);
|
|
|
|
|
|
qdf_mem_zero(pmk_cache, sizeof(pmk_cache));
|
|
@@ -21538,7 +21535,6 @@ static int __wlan_hdd_cfg80211_del_pmksa(struct wiphy *wiphy,
|
|
|
{
|
|
|
struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
|
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
- mac_handle_t mac_handle;
|
|
|
int status = 0;
|
|
|
tPmkidCacheInfo *pmk_cache;
|
|
|
|
|
@@ -21569,14 +21565,16 @@ static int __wlan_hdd_cfg80211_del_pmksa(struct wiphy *wiphy,
|
|
|
if (!pmk_cache)
|
|
|
return -ENOMEM;
|
|
|
|
|
|
- mac_handle = hdd_ctx->mac_handle;
|
|
|
-
|
|
|
qdf_mtrace(QDF_MODULE_ID_HDD, QDF_MODULE_ID_HDD,
|
|
|
TRACE_CODE_HDD_CFG80211_DEL_PMKSA,
|
|
|
adapter->vdev_id, 0);
|
|
|
|
|
|
hdd_fill_pmksa_info(adapter, pmk_cache, pmksa, true);
|
|
|
|
|
|
+ /* clear single_pmk_info information */
|
|
|
+ sme_clear_sae_single_pmk_info(hdd_ctx->psoc,adapter->vdev_id,
|
|
|
+ pmk_cache);
|
|
|
+
|
|
|
/* Delete the PMKID CSR cache */
|
|
|
if (QDF_STATUS_SUCCESS !=
|
|
|
wlan_hdd_del_pmksa_cache(adapter, pmk_cache)) {
|
|
@@ -21588,8 +21586,9 @@ static int __wlan_hdd_cfg80211_del_pmksa(struct wiphy *wiphy,
|
|
|
status = -EINVAL;
|
|
|
}
|
|
|
|
|
|
- sme_set_del_pmkid_cache(mac_handle, adapter->vdev_id, pmk_cache,
|
|
|
+ sme_set_del_pmkid_cache(hdd_ctx->psoc, adapter->vdev_id, pmk_cache,
|
|
|
false);
|
|
|
+
|
|
|
qdf_mem_zero(pmk_cache, sizeof(*pmk_cache));
|
|
|
qdf_mem_free(pmk_cache);
|
|
|
|
|
@@ -21637,7 +21636,6 @@ static int __wlan_hdd_cfg80211_flush_pmksa(struct wiphy *wiphy,
|
|
|
{
|
|
|
struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
|
|
|
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
|
|
- mac_handle_t mac_handle;
|
|
|
int errno;
|
|
|
QDF_STATUS status;
|
|
|
|
|
@@ -21658,15 +21656,13 @@ static int __wlan_hdd_cfg80211_flush_pmksa(struct wiphy *wiphy,
|
|
|
if (errno)
|
|
|
return errno;
|
|
|
|
|
|
- mac_handle = hdd_ctx->mac_handle;
|
|
|
-
|
|
|
status = wlan_hdd_flush_pmksa_cache(adapter);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
hdd_err("Cannot flush PMKIDCache");
|
|
|
errno = -EINVAL;
|
|
|
}
|
|
|
|
|
|
- sme_set_del_pmkid_cache(mac_handle, adapter->vdev_id, NULL, false);
|
|
|
+ sme_set_del_pmkid_cache(hdd_ctx->psoc, adapter->vdev_id, NULL, false);
|
|
|
hdd_exit();
|
|
|
return errno;
|
|
|
}
|