]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Do not allow peer update to clear config_methods
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 12 Feb 2013 16:14:48 +0000 (18:14 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 12 Feb 2013 16:14:48 +0000 (18:14 +0200)
commit954ee628eee7dd09d99ad7c15ba1164a10a1d219
tree71cc64e64882441cfa81339fc7cbb5d9a03312fd
parente47588279af1af78ccdc88cf93df83003c01061b
P2P: Do not allow peer update to clear config_methods

It could be possible for the scan results to include two entries for a
peer, one from the Listen state and the second one from the GO role. The
latter could be based on a Beason frame. If that happens and the entry
from GO is processed last, the P2P peer config_methods value could
potentially get cleared since Beacon frames do not include this
information in either WPS or P2P element. Avoid this by allowing the
config_methods value for P2P peers to be updated only if the new value
is non-zero.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p.c