wifi: Add idle shutdown for p2p interface.

In android S, if some system service (ex: Wfd) or privileged
application(ex: OEM application) init P2P without close it.
It will cause 3rd Nan application can't use because it owns
lower priority than system and privileged app.

Add idle shutdown p2p interface mechanism to avoid application
occupy the resource.

Bug: 184504089
Test: atest -c FrameworksWifiTests
Test: Manael to enable Wifi Direct page and check it will shutdown after
timeout.

Change-Id: I01db2cffb402a2fdc70f0ec60b8cae1078d8051d
2 files changed