WifiController: fix high perf lock sometimes not respected

When the device screen is turned off, the state is DeviceActive for
15 minutes. In this time, high perf lock is not respected and
Wi-Fi power-saving mode will be turned on because screen is off.

Fix by adding a new DeviceActiveHighPerfState.

Change-Id: I71074beec4d41286dea0861107d7931da205aca2
JIRA: CYAN-2860
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
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