libwifi_hal: handle already-loaded kernel module

Sometimes the wifi HAL can get into a state where the module is already
loaded in a broken state and the wifi HAL isn't aware of this. When this
happens, try unloading and reloading the driver to unbreak wifi.

Before this failed with the following error:

  E android.hardware.wifi@1.0-service: finit_module return: -1: File exists

Issue: FP3-A11#415
Test: run sts-dynamic-develop -m StsHostTestCases -t android.security.sts.Poc19_04#testPocCVE_2018_11904_7
Change-Id: I78c19757b0d76ecd2ff1314f8522f80ba9548662
1 file changed