]> git.ipfire.org Git - thirdparty/hostap.git/commit
Handle Wi-Fi Display commands more carefully if P2P is disabled
authorJouni Malinen <j@w1.fi>
Thu, 6 Feb 2014 14:03:42 +0000 (16:03 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 6 Feb 2014 14:03:42 +0000 (16:03 +0200)
commitbab6677a3105f15b19b6be4a189e7baf61b4f791
treea259570c92c7f8b62aad4a91eae7c8949c9253ff
parent334ec001bbd31c5bc83d6593e58dfbbf6b8785a2
Handle Wi-Fi Display commands more carefully if P2P is disabled

If P2P was disabled (e.g., due to driver not supporting it or through
p2p_disabled=1 configuration), setting Wi-Fi Display parameters could
result in segmentation fault when the WFD IE is updated without the P2P
module being initialized. Fix this by skipping the update if P2P module
is not in use. In addition, show Wi-Fi Display as disabled in "GET
wifi_display" and refuse to enable it with "SET wifi_display 1" if P2P
is not enabled.

Signed-hostap: Jouni Malinen <j@w1.fi>
wpa_supplicant/ctrl_iface.c
wpa_supplicant/wifi_display.c