Stop using NetworkAgentConfig in wifi.

The code default-constructs a NetworkAgentConfig object, but
never actually uses it except to pass it to the NetworkAgent
constructor.

Passing a default-constructed NetworkAgentConfig is equivalent to
not specifying any NetworkAgentConfig at all. It results in
passing null to ConnectivityService#registerNetworkAgent. This
then just calls new NetworkAgentConfig(null), which is equivalent
to returning a default-constructed NetworkAgentConfig.

Bug: 138306002
Test: builds, boots, wifi works, telephony works
Test: atest FrameworksWifiTests
Change-Id: I2bcecd366211848a237e7eb467b4f3354fb96457
2 files changed
tree: 22f0fadf34dd788b38bfc16e31bc759f59e935e7
  1. apex/
  2. service/
  3. PREUPLOAD.cfg