Avoid system crash on failed AP setup.

isV1_1() may return true, but getHostapdMockableV1_1() return null in
case when IHostapd crashed beforehand: apparently V1_1.IHostapd.castFrom
does runtime check that returns null if the binder died.

Bug: 36120314
Test: crash hostapd and try to enable tethering
Change-Id: I570c0264ea11208f33bc72f8f9ebd3ccdd161119
1 file changed