[WCNCR00144638] p2p: Add support to report all bss networks in p2p scan

[Description]
Add support to report all bss networks in p2p scan.

In mt7668 original design, when scan request is triggered from p2p
interface, only P2P networks will be reported to cfg80211 kernel in
scan result. For example "wpa_cli -i p2p0 scan" will only found P2P
devices in scan result.

And this change adds support to report all BSS networks found during scan
to cfg80211 kernel even scan request is trigger from p2p interface.
Usually it is fine to report all BSS networks to kernel as because
wpa_supplicant will filter P2P devices when doing P2P connections.
To set this feature, modify the new option: "CFG_P2P_SCAN_REPORT_ALL_BSS"
either in Makefile* or in config.h.
And the default behavior is "disable".

Change-Id: Ic6e3561ac7df2661ef7fb6261fa58b74ede63869
Signed-off-by: Sarick Jiang <sarick.jiang@mediatek.com>
CR-Id: WCNCR00144638
Feature: p2p
7 files changed