P2P: Fix for GO inviting a p2p device.

A p2p device on an invitation request from the peer invokes
p2p_peer command to know if the peer is a p2p device / GO.
Due to the cached entries there would be a possibility of
not getting the updated information, ending up in the wrong
negotiation with the invited peer. Thus do not rely on
p2p_peer command, rather assume that the peer is a GO on an
invitation request, provided there is no persistent network
configured.

CRs-Fixed: 486437.
Change-Id: Ifaeb6a8c5f9cddd7df96622056541e22aad74314
P2P: Change supplicant scan intervel during WFD session

During WFD session supplicant scan intervel is one minute. If
there are some saved profiles, then supplicant will issue a scan
for every one minute, this is causing some ping latency in WFD.
    Hence supplicant scan intervel should change to five minutes
to improve ping latency in WFD session only.

Change-Id: If827bab6f186ebeaac90f297935bc8b987eb4d09
CRs-Fixed: 669404
Wifi: Fix ap list issue while wifi turns on

Decrease the sleep time to resolve the synchronization issue
which happens between wpa_supplicant and Wifimonitor thread
when wifi turns on.

Change-Id: I4e2414301ace26a26351b6c1345e1ff6e7ab49a9
CRs-Fixed: 673012
wifi: update to blacklisting mechanism

Disable or Enable Auto Join for an Access Point blacklisted or
unblacklisted by WQE if wqe feature is enabled.

Change-Id: I6a655c9d0a6b21963c13f36e25ab7f74f98e97cc
CRs-Fixed: 728066
Regional: Customize wifi hotspot and wifi name

-Set WLAN hotspot's default security type to none.
-Customize hotspot ssid and pass.
-Customize wifi direct name for carrier.

Change-Id: If1613a8556908f372a70fbd859fa35e9315f9613
Merge "wifi: update to blacklisting mechanism"
Merge "Wifi: Fix ap list issue while wifi turns on"
Merge "P2P: Fix for GO inviting a p2p device."
Merge "P2P: Change supplicant scan intervel during WFD session"
Revert "Reenabling libwifi-hal-qcom"

This reverts commit b6a146a04ab2bd05c994b40514c43cdacf059a0f.

Change-Id: I03153b8efbe84e4b0fdb78019b05739367383cd6
Merge "Regional: Customize wifi hotspot and wifi name"
Revert "Revert "Reenabling libwifi-hal-qcom""

This reverts commit a6fded6e09cc986a37ec434186af240f963bd1e6.

Change-Id: I0eb33d2bdbe6e0a8b977efc8b45bb8720d97ccfa
wlan: Honour regular scan in case Preferred Network Offload scan fails

In suspend mode STA fails to connect to an AP if preferred network
offload configuration is failed to configure the saved profile.

Framework sets a scan alarm if the PNO configuration fails. This
scan alarm apparently fails to issue a scan for mCurrentScanAlarmMs
set to 0 . Thus, set this parameter to mDisconnectedScanPeriodMs for
the cases when PNO trigger fails.

Change-Id: Iaa793642fe3c9dd307b199438368baa26a33bd61
CRs-Fixed: 753999
Wi-Fi : Abort setWifiEnabled if WifiController not ready

While executing setWifiEnabled, it send commands to WifiController.
If WifiController is not started by this time, StateMachine reports
crash which creates device reboot.
Thus, check if WiFiController is started before invoking any
command to the same. Indicate a failure in such an instance

CRs-Fixed: 742857

Change-Id: Ic40eb82522b67f7e606d4739c41da3b8ba2f3590
wifi: Fix halutil build

 * We need to link libhardware_legacy too.

Change-Id: Ida6bd36d222a48782acbf8b15ec3aab9956cf558
Merge "wlan: Honour regular scan in case Preferred Network Offload scan fails"
wifi: Do a periodic scan for a PNO failure only on non zero sta profiles

The current framework shall ensure to do a periodic scan for the case
where the configured profiles are 0 but does not address the case of
PNO trigger failure.Hence,do a periodic scan for a failure in PNO
trigger on non zero configured profiles.

Change-Id: I4f5ce511baf0ae8695c52adf63bce13e7790117e
CRs-Fixed: 756529
Merge "wifi: Do a periodic scan for a PNO failure only on non zero sta profiles"
wifi: Set the mode at native layer

 * Set normal/AP mode so that the HAL can specify correct module
   arguments when loading the driver.

Change-Id: I6eee2cc53b5f1e70306e252e52c909833f220515
Merge "Wi-Fi : Abort setWifiEnabled if WifiController not ready"