summaryrefslogtreecommitdiffstats
path: root/libwifi_hal/driver_tool.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Wifi HIDL HAL: Removed unused function in DriverToolQuang Luong2018-09-181-38/+0
| | | | | | | | Removed DriverTool::TakeOwnershipOfFirmwareReload Bug: 33434584 Test: build, unit tests Change-Id: I2250419a4cd29564d8e2a0ce2a1b16f1d26eaf6c
* Use getpwnam and getgrnam in libwifi_hal am: bddd3ef5c1 am: a1df98147eColin Cross2018-09-061-2/+27
|\ | | | | | | | | | | am: b12f48bf47 Change-Id: I148977dba7f19dbcacdcedcb3a33bb90adbfd5ac
| * Use getpwnam and getgrnam in libwifi_halColin Cross2018-09-061-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | libwifi_hal is a vendor module, but it was accidentally getting the core version of the libcutils headers which included private/android_filesystem_config.h. Change it to using getpwnam("wifi") and getgrnam("wifi") instead of AID_WIFI. Test: m checkbuild Bug: 63135587 Bug: 114238698 Change-Id: I28f20fd9f4868c0d1e25fda64f477f6d551cc1dd
* | Fix the DriverTool::IsDriverLoaded()Ahmed ElArabawy2018-08-101-1/+1
|/ | | | | | | | | | | | | In current implementation, the method DriverTool::IsDriverLoaded() implementation calls wifi_unload_driver() which is not right. This method is supposed to just check on the status of the driver, and not change its state. This commit changes this implementation Bug: 112425027 Test: Manual code inspection. Method not called within the code. Change-Id: Icf88a9094f6891753a6d672e41f6ada38656e011
* 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.