summaryrefslogtreecommitdiffstats
path: root/libwifi_hal/driver_tool.cpp
Commit message (Collapse)AuthorAgeFilesLines
* driver_tool: query if firmware mode changd is neededRoshan Pius2016-11-171-0/+4
| | | | | | | | This is needed for the HIDL HAL to expose different modes of operation. Bug: 31997422 Test: Compiles Change-Id: I90e552dcaa8d34e2bd3a85439052effc7f060b5f
* Expose a method to take control of firmware pathChristopher Wiley2016-09-091-1/+18
| | | | | | | | | | | | | Rather than exposing the firmware path directly, expose a helper method. This method can be static, since we call it once from wificond's main() and cannot effectively unittest changing filesystem permissions. Hide the firmware path again after this change. Bug: 31225859 Test: Can connect to networks on bullhead with this change. Change-Id: I1b1640f552f78ede2adb7e1273d69cc606543c7b
* Allow wificond to run as wifi:wifiChristopher Wiley2016-08-221-0/+2
| | | | | | | | | | | | | | Expose the firmware path from libwifi_hal. We need to access this at wificond startup to chown the firmware reload path to wifi:wifi. Remove some superfluous chown calls. The callsites should only be used from wificond. Bug: 29870863 Test: wificond unit and integration tests pass Change-Id: If2fa38be252999a01f6d967ca8601d1789318103
* Allow some HAL interactions to be mockedChristopher Wiley2016-06-271-0/+54
Wrap them in a very thin class to simple mocking. While here, simplify the interface for consumers by exposing simple knobs to change the firmware mode. Bug: 29634806 Change-Id: I49f567f04f0d5b2bcbda3c308ceb4fdd37b3a8b2 Test: Compiles, wificond can consume this code in tests.