P2P: Update BSS entries in P2P group interface only if P2P IE is present
authorNeeraj Kumar Garg <neerajkg@broadcom.com>
Fri, 6 Apr 2012 11:58:22 +0000 (14:58 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 6 Apr 2012 11:58:22 +0000 (14:58 +0300)
commitc772ef43f6e91e2e90d610c5f3275d45ade286f6
treeff965fd4aa00435f1a487866fc1206ff653304d3
parent5a49459ee8efd685c8da923afa7da791d9319ee6
P2P: Update BSS entries in P2P group interface only if P2P IE is present

For concurrency scenarios we should not update the scan results without
P2P IE to P2P group interfaces. This patch is to take care if a scan has
been requested on STA interface and scan results are getting updated
from sibling to P2P group interface. A P2P GO Probe Response for a
legacy STA scan would be without P2P IE. So it will wrongly update the
BSS list of P2P group interface too when results are updated from
sibling.

Since P2P group interfaces are used only for connecting to a P2P group,
it is fine to filter out all non-P2P entries from their BSS table.

Signed-off-by: Neeraj Garg <neerajkg@broadcom.com>
wpa_supplicant/bss.c