aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2012-04-01 18:41:23 (GMT)
committerJouni Malinen <j@w1.fi>2012-04-01 18:41:23 (GMT)
commit3c29244eb7a2dfd62d80ba4e6176de2889a5dca4 (patch)
tree36adc7e4813b7717e5fa937c15395ce72c5999ba /wpa_supplicant/driver_i.h
parente19fded66eca272b095704d3dded23a4e4819ff8 (diff)
downloadhostap-3c29244eb7a2dfd62d80ba4e6176de2889a5dca4.zip
hostap-3c29244eb7a2dfd62d80ba4e6176de2889a5dca4.tar.gz
hostap-3c29244eb7a2dfd62d80ba4e6176de2889a5dca4.tar.bz2
P2P: Add deinit_p2p_cli op to clear P2P client driver state
On P2P group removal, the GO is deinitialized correctly (and the vif mode is set back to sta in case of nl80211), but the P2P client mode wasn't deinitialized, and the nl80211 vif stays in P2P client mode. Add a new deinit_p2p_cli op (similar to deinit_ap), which currently only sets the interface back to station mode. Signed-hostap: Eliad Peller <eliad@wizery.com> intended-for: hostap-1
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 5b10540..e1e921d 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -427,6 +427,13 @@ static inline int wpa_drv_deinit_ap(struct wpa_supplicant *wpa_s)
return 0;
}
+static inline int wpa_drv_deinit_p2p_cli(struct wpa_supplicant *wpa_s)
+{
+ if (wpa_s->driver->deinit_p2p_cli)
+ return wpa_s->driver->deinit_p2p_cli(wpa_s->drv_priv);
+ return 0;
+}
+
static inline void wpa_drv_suspend(struct wpa_supplicant *wpa_s)
{
if (wpa_s->driver->suspend)