P2P: Fix setting of P2P Client Discoverability bit
authorMasashi Honma <masashi.honma@gmail.com>
Sat, 16 Jun 2012 16:54:47 +0000 (19:54 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 16 Jun 2012 16:54:47 +0000 (19:54 +0300)
commit18485b5469c5eeea6a552264fbfaabb089a0a557
tree2ab0ec0c5ac36ade932f4fa900ffb8ef1883c4a3
parent1cebaabd80db8f346b3f2d996b5d7d1629029be3
P2P: Fix setting of P2P Client Discoverability bit

In the P2P specification v1.1, the P2P Client Discoverability bit is
described in Table 12 "Device Capability Bitmap definition". The table
says "Within a P2P Group Info attribute and a (Re)association request
frame the P2P Client Discoverability field shall be set to 1 when the
P2P Device supports P2P Client Discoverability, and is set to 0
otherwise. This field shall be reserved and set to 0 in all other frames
or uses.". To match with this, filter out P2P Client Discoverability bit
from frames where its use is reserved.

Signed-hostap: Masashi Honma <masashi.honma@gmail.com>
src/p2p/p2p.c
src/p2p/p2p_go_neg.c
src/p2p/p2p_pd.c