aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_drv_ops.c
diff options
context:
space:
mode:
authorAshok Kumar Ponnaiah <aponnaia@qti.qualcomm.com>2015-03-24 13:05:43 (GMT)
committerJouni Malinen <j@w1.fi>2015-03-24 13:05:43 (GMT)
commit1de071007e04fc11984adb2c47037d6684472a1f (patch)
treee3b63754ef326aa9fc6fa7b942b7d067fa938538 /src/ap/ap_drv_ops.c
parent857d94225a94cdb3b843ce29ad231a842b6229b2 (diff)
downloadhostap-1de071007e04fc11984adb2c47037d6684472a1f.zip
hostap-1de071007e04fc11984adb2c47037d6684472a1f.tar.gz
hostap-1de071007e04fc11984adb2c47037d6684472a1f.tar.bz2
atheros: Clear WPS appie during deinit
The WPS IE(s) need to be cleared from the driver explicitly. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/ap/ap_drv_ops.c')
-rw-r--r--src/ap/ap_drv_ops.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index aae544f..9ee88b4 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -217,6 +217,15 @@ void hostapd_free_ap_extra_ies(struct hostapd_data *hapd,
}
+int hostapd_reset_ap_wps_ie(struct hostapd_data *hapd)
+{
+ if (hapd->driver == NULL || hapd->driver->set_ap_wps_ie == NULL)
+ return 0;
+
+ return hapd->driver->set_ap_wps_ie(hapd->drv_priv, NULL, NULL, NULL);
+}
+
+
int hostapd_set_ap_wps_ie(struct hostapd_data *hapd)
{
struct wpabuf *beacon, *proberesp, *assocresp;