P2PS: Fix P2PS-PROV-DONE event on GO
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Thu, 2 Jul 2015 07:45:04 +0000 (10:45 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 7 Jul 2015 17:34:14 +0000 (20:34 +0300)
commit23bb9828a3a0b6a03f3fe4b7a2844ac5c4084794
tree1ea671ec17223b1bc28b85fba62babb95d3bba52
parenta698d6c85fcd424dcb3f92e3495c00a51608bde3
P2PS: Fix P2PS-PROV-DONE event on GO

If after P2PS PD the device should become a GO it sends P2PS-PROV-DONE
event which contains the GO interface name. If the GO isn't running yet
the device may use pending interface name. However, when the GO is
started, pending interface name will be removed.

Fix the GO interface name in P2PS-PROV-DONE event by copying the
interface name instead of saving the pointer.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/p2p_supplicant.c