]> git.ipfire.org Git - thirdparty/hostap.git/commit
WFD: Properly match group for WFD element in Invitation Response
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 5 Sep 2012 13:39:19 +0000 (16:39 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 5 Sep 2012 13:39:19 +0000 (16:39 +0300)
commita05126d6200377f19aa5517318b124a1d9cfbbd0
tree3e09f243dd5bc951f57f36280c2f554679a3e290
parent0e9c66c22d0a44afedead5c4a34d4c4a0fca1118
WFD: Properly match group for WFD element in Invitation Response

The group matching should be done by comparing the P2P Interface Address
(which the group_bssid here is) to the group's BSSID and not the group
ID (which uses P2P Device Address and would have also needed the SSID).
Though, it should be noted that this case cannot really happen since a
GO in an active group would never be invited to join another group in
its GO role (i.e., if it receives an Invitation Request, it will reply
in P2P Device role). As such, this fix does not really change any
observable behavior, but anyway, it is good to keep the implementation
here consistent with the Invitation Request case.

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