WiFi : Fix for  DHCP to Static IP configuration problem

WifiStateMachine shall update the IP address configuration to
the kernel through NetworkManagementService.This notification
from the kernel is again sent to the connectivity service
through the NetLinkStateTracker and WiFiStateMachine.
Thus ,if the interface is down during this IP address
reconfiguration (for the case of DHCP to Static IP configuration),
Connectivity service shall be notified with old IP address ,NULL(0)
IP address(signifying interface down) and the latest IP address.
This notification was done by updating the IP address using a local
variable , and hence the second notification on the interface down
is overridden by the last notification , resulting in missed
interface down notification to the connectivity service.This
resulted in failed data connection when IP address is changed from
DHCP to IP on the fly.
Hence ,this gerrit enhances the design and also pass the updated
IP address to the connectivity service.

Change-Id: Ib0b9fd02c488b709ca3cd9713d7a9d86243e0224
CRs-Fixed: 750277
P2P: reset mIsInvite flag when p2p transitions to inactive state

Commit Ifaeb6a8c5f9cddd7df96622056541e22aad74314 has set mIsInvite
to true when the invitation request is obtained from the peer to
ensure that the DUT does issue p2p connect with the intention to
join when the user accepts the invitation. However, this did  not
consider the case where the user has rejected the invitation request
which shall still set mIsInvite to true. This shall result in an issue
when the DUT shall initiate a GO Negotiation with a peer for the next
time. The DUT shall end up joining with the peer (because of the value
of mIsInvite being true) rather than doing a GO Negotiation. Thus reset
the value of mIsnivite whenever the transition happens to the InactiveState.

Change-Id: I9ff086da41cb85385a15699b851995df41cceb21
CRs-Fixed: 756312
Revert "wlan: Provide runtime option to enable or disable rssi threshold (opt)"

This reverts commit 9c5eeac30a1091bd4906a341ebcb83c5c5561d96.

RSSI threshold parameters are now user configurable.Below are the
parameters.
THRESHOLD_UNBLACKLIST_HARD_5G
THRESHOLD_UNBLACKLIST_SOFT_5G
THRESHOLD_UNBLACKLIST_HARD_24G
THRESHOLD_UNBLACKLIST_SOFT_24G
THRESHOLD_INITIAL_AUTO_JOIN_ATTEMPT_RSSI_MIN_5G
THRESHOLD_INITIAL_AUTO_JOIN_ATTEMPT_RSSI_MIN_24G
Hence reverting the gerrit

Change-Id: I4caeedb0ac209d9f8a6934d235e2f82390989187
CRs-Fixed: 757958
wifi: Provide fix for no connect status for a network with WPA-PSK followed by WPS

WifiConfigStore maintains the state of each configured Wifi profile.
These profiles are maintained to create a one-to-one mapping between
the profile and the IP configuration. The same list is also used
to display the connected profiles.

While creating list of valid network configurations, the profiles
with same SSID but different security and authentication credentials
are considered duplicate. Thus the profile created due to WPS
connection attempt is not added to the list maintained by WifiConfigStore.
This results in the framework not displaying the new network as connected,
as the supplicant shall give the connect indication on the new network id
which shall not get added. Thus, overwrite the previous duplicate-disabled
configuration to fix this issue.

CRs-Fixed: 760505
Change-Id: Id1dc26733b9b5ead402e3a2ae4aed3313568c727
Merge "P2P: reset mIsInvite flag when p2p transitions to inactive state"
Merge "WiFi : Fix for  DHCP to Static IP configuration problem"
Merge "Revert "wlan: Provide runtime option to enable or disable rssi threshold (opt)""
Merge "wifi: Provide fix for no connect status for a network with WPA-PSK followed by WPS"
wifi: Reduce the frequency of scans when in disconnected state and display ON

When STA is not connected, display is ON and there are no saved profiles then
reduce frequent scans due to scan alarm source by increasing scan alarm time
mCurrentScanAlarmMs to 5 minutes since there is already a periodic scan every
mSupplicantScanIntervalMs (15 seconds). If there are saved profiles then keep
mCurrentScanAlarmMs to 10 seconds.

Change-Id: Icc1ec5803b2048f2d12b47092894127be6626dcd
CRs-Fixed: 764660
Merge "wifi: Reduce the frequency of scans when in disconnected state and display ON"
Merge remote-tracking branch 'caf/LA.BF.1.1_rb1.16' into lp