]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/p2p/p2p.c
P2P: Use P2P Device ID attribute if Device Info not available
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 30 Mar 2012 12:50:33 +0000 (15:50 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 30 Mar 2012 12:50:33 +0000 (15:50 +0300)
commit526ec4aee84ed1ab25930d4445161a02aa5937cb
treeaa4581cf16be482fda2fd4f248f2729a351c5eba
parent1f6c0ab87229222e8f2f4bd933a85ff0c9e89bdd
P2P: Use P2P Device ID attribute if Device Info not available

The "BSS p2p_dev_addr=address" command uses p2p_parse_dev_addr() to
figure out the P2P Device Address of the GO from scan results. This used
to work only if the P2P IE was received from Probe Response frames since
only those include the P2P Device Info attribute. Make this work with
Beacon frames, too, by using P2P Device ID attribute if the P2P Device
Info attribute is not present.

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