]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Advertise IP Address Allocation only if it is enabled on GO
authorJouni Malinen <j@w1.fi>
Sun, 20 Mar 2016 09:46:04 +0000 (11:46 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 20 Mar 2016 15:37:53 +0000 (17:37 +0200)
commitf7648c8679b35916e0d94a2d36d787de90147838
treeb27aebb733aedba0cd1d7539717d77d5972c0f9d
parent7f46ad9ee56e814eb06445d4eb5f93260a757528
P2P: Advertise IP Address Allocation only if it is enabled on GO

This group capability bit was previously added unconditionally which
could result in the P2P Client assuming the functionality is available
even though the GO would always reject the request (not reply to it with
an assigned IP address) during the 4-way handshake.

Fix this by advertising the capability only if the GO configuration
allow IP address assignment to be completed.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/p2p/p2p.h
src/p2p/p2p_group.c
wpa_supplicant/p2p_supplicant.c