[DTV00893855] p2p: Fix P2P GC connect fail due to PBC overlap
[Description]
Fix P2P GC connection failed by PBC overlap problem.
This problem only happens when "CFG_P2P_SCAN_REPORT_ALL_BSS=1"
has been enabled.
Change-Id: I6e37c8ba36dc5193d692181f691bf7a4c6048ee4
Signed-off-by: Sarick Jiang <sarick.jiang@mediatek.com>
CR-Id: DTV00893855
Feature: p2p
diff --git a/mgmt/scan.c b/mgmt/scan.c
index bc46d68..67e2a57 100644
--- a/mgmt/scan.c
+++ b/mgmt/scan.c
@@ -2550,7 +2550,7 @@
if ((prBssDesc->eBSSType == eBSSType)
#if CFG_ENABLE_WIFI_DIRECT
|| ((eBSSType == BSS_TYPE_P2P_DEVICE) &&
- (prBssDesc->fgIsP2PReport == TRUE ||
+ (prBssDesc->fgIsP2PReport == TRUE &&
prAdapter->p2p_scan_report_all_bss))
#endif
) {
@@ -2574,7 +2574,7 @@
}
} else {
#if CFG_ENABLE_WIFI_DIRECT
- if ((prBssDesc->fgIsP2PReport == TRUE ||
+ if ((prBssDesc->fgIsP2PReport == TRUE &&
prAdapter->p2p_scan_report_all_bss) &&
prBssDesc->u2RawLength != 0) {
#endif