]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Handle P2P-not-supported without segfaults
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 24 Feb 2011 19:13:30 +0000 (21:13 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 24 Feb 2011 19:13:30 +0000 (21:13 +0200)
commit9526fd293f98c4df91a0453a11efd8eeaa86b6db
tree34cb0f0462f7c18890baa409cccc032e00f3f4cf
parent24d75245bdade189ac20ee276403ac4572e62cd9
P2P: Handle P2P-not-supported without segfaults

Previous code was assuming that the P2P module is always initialized.
However, that is not the case anymore with drivers that do not support
P2P. Add verification of whether P2P is enabled before trying to execute
P2P commands.
wpa_supplicant/ctrl_iface.c
wpa_supplicant/p2p_supplicant.c