]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/p2p_supplicant.c
P2P: Add deinit_p2p_cli op to clear P2P client driver state
authorEliad Peller <eliad@wizery.com>
Sun, 1 Apr 2012 18:41:23 +0000 (21:41 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 1 Apr 2012 18:41:23 +0000 (21:41 +0300)
commit3c29244eb7a2dfd62d80ba4e6176de2889a5dca4
tree36adc7e4813b7717e5fa937c15395ce72c5999ba
parente19fded66eca272b095704d3dded23a4e4819ff8
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
src/drivers/driver.h
src/drivers/driver_nl80211.c
wpa_supplicant/driver_i.h
wpa_supplicant/p2p_supplicant.c