]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/p2p/p2p.c
P2P: Fix P2P Client Discoverability bit updates
authorJouni Malinen <j@w1.fi>
Sat, 16 Jun 2012 17:17:39 +0000 (20:17 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 16 Jun 2012 17:17:39 +0000 (20:17 +0300)
commitf33bc035824a39017a25bedd7017a3ddf6bec866
tree6deaf9888d821001a88903a03930f798ce523b11
parent18485b5469c5eeea6a552264fbfaabb089a0a557
P2P: Fix P2P Client Discoverability bit updates

The P2P Client Discoverability bit is reserved in most frames and its
value in the local P2P peer table should only be updated based on P2P
Group Info attribute from a GO. Fix this by avoiding changes to this
dev_capab bit based on other P2P frames. It would be more correct to
track this separately for each group in which the peer is a member, but
since we do not do that for the other group specific information either,
this can do for now.

It should be noted that prior to commit
18485b5469c5eeea6a552264fbfaabb089a0a557 wpa_supplicant set this bit in
all P2P frames. However, that commit changed this to match the
specification, i.e., the bit is not set in frames which are received
from P2P Device role. As such, this fix is needed to be able to figure
out that a peer supports client discoverability capability after that
commit.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1
src/p2p/p2p.c