wifi_hal_stub: add stubs for packet fate
If the vendor's Wifi HAL does not provide packet fate
functions, then WifiServiceImpl (and hence, system server)
will crash when WifiLogger calls packet fate functions.
Fix this, by providing stub implementations. These will
be automatically overriden by vendor-provided implementations.
BUG=28565646
TEST=manual
Manual test:
- repeat for angler and bullhead:
- try to connect to WPA-2 network with wrong password
$ adb shell dumpsys > /tmp/dumpsys
- verify that dumpsys contains "Last failed connection fates"
- verify that dumpsys shows Authentication messages
- on bullhead
- hack up HAL, so that packet fate functions are not registered
$ adb logcat -d | grep 'Failed to start packet fate'
-> should see matching lines
(with the hacked up HAL, and without this patch, the call to
startPktFateMonitoring() causes a SIGSEGV, instead of just a
clean failure message)
Change-Id: I86ce34784dea396f9e8741353395cab1ec6e0913
1 file changed