aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpas_glue.c
diff options
context:
space:
mode:
authorVidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>2017-03-30 13:57:15 (GMT)
committerJouni Malinen <j@w1.fi>2017-04-07 14:03:35 (GMT)
commit6fbb54140be2710be43ddc9d257e094aa5e6d496 (patch)
tree14c6b4b11fd62305b11bf00e826bb6562d510c67 /wpa_supplicant/wpas_glue.c
parentad295f3b85756a188d4c18f98f59bfce1a28efeb (diff)
downloadhostap-6fbb54140be2710be43ddc9d257e094aa5e6d496.zip
hostap-6fbb54140be2710be43ddc9d257e094aa5e6d496.tar.gz
hostap-6fbb54140be2710be43ddc9d257e094aa5e6d496.tar.bz2
driver: Move add_pmkid() and remove_pmkid() arguments into a struct
This makes it easier to add more arguments to these wpa_driver_ops functions. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wpas_glue.c')
-rw-r--r--wpa_supplicant/wpas_glue.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/wpa_supplicant/wpas_glue.c b/wpa_supplicant/wpas_glue.c
index 52904d3..71dfbc3 100644
--- a/wpa_supplicant/wpas_glue.c
+++ b/wpa_supplicant/wpas_glue.c
@@ -534,12 +534,17 @@ static int wpa_supplicant_add_pmkid(void *_wpa_s, void *network_ctx,
{
struct wpa_supplicant *wpa_s = _wpa_s;
struct wpa_ssid *ssid;
+ struct wpa_pmkid_params params;
+ os_memset(&params, 0, sizeof(params));
ssid = wpas_get_network_ctx(wpa_s, network_ctx);
if (ssid)
wpa_msg(wpa_s, MSG_INFO, PMKSA_CACHE_ADDED MACSTR " %d",
MAC2STR(bssid), ssid->id);
- return wpa_drv_add_pmkid(wpa_s, bssid, pmkid);
+ params.bssid = bssid;
+ params.pmkid = pmkid;
+
+ return wpa_drv_add_pmkid(wpa_s, &params);
}
@@ -548,12 +553,18 @@ static int wpa_supplicant_remove_pmkid(void *_wpa_s, void *network_ctx,
{
struct wpa_supplicant *wpa_s = _wpa_s;
struct wpa_ssid *ssid;
+ struct wpa_pmkid_params params;
+ os_memset(&params, 0, sizeof(params));
ssid = wpas_get_network_ctx(wpa_s, network_ctx);
if (ssid)
wpa_msg(wpa_s, MSG_INFO, PMKSA_CACHE_REMOVED MACSTR " %d",
MAC2STR(bssid), ssid->id);
- return wpa_drv_remove_pmkid(wpa_s, bssid, pmkid);
+
+ params.bssid = bssid;
+ params.pmkid = pmkid;
+
+ return wpa_drv_remove_pmkid(wpa_s, &params);
}