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.

Change-Id: I3f0a49c22ee02e8971edb9ecd033e74342c318c0
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
1 file changed