summaryrefslogtreecommitdiffstats
path: root/libwifi_hal/include
diff options
context:
space:
mode:
authorChristopher Wiley <wiley@google.com>2016-09-09 13:28:03 -0700
committerChristopher Wiley <wiley@google.com>2016-09-09 15:56:28 -0700
commitf41e52f5ad89310d867a00c12f2cf146703ad574 (patch)
tree4a08129e1b38a1747464261ccc9428cf20e0f14f /libwifi_hal/include
parent09044adabba28c56b48922d105994d30e7ab015e (diff)
downloadandroid_frameworks_opt_net_wifi-f41e52f5ad89310d867a00c12f2cf146703ad574.tar.gz
android_frameworks_opt_net_wifi-f41e52f5ad89310d867a00c12f2cf146703ad574.tar.bz2
android_frameworks_opt_net_wifi-f41e52f5ad89310d867a00c12f2cf146703ad574.zip
Expose a method to take control of firmware path
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
Diffstat (limited to 'libwifi_hal/include')
-rw-r--r--libwifi_hal/include/wifi_hal/driver_tool.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libwifi_hal/include/wifi_hal/driver_tool.h b/libwifi_hal/include/wifi_hal/driver_tool.h
index 376d17d93..e0941c0f9 100644
--- a/libwifi_hal/include/wifi_hal/driver_tool.h
+++ b/libwifi_hal/include/wifi_hal/driver_tool.h
@@ -27,7 +27,9 @@ class DriverTool {
static const int kFirmwareModeAp;
static const int kFirmwareModeP2p;
- static const char kFirmwareReloadPath[];
+ // Change the owner of the firmware reload path to wifi:wifi if
+ // firmware reload is supported.
+ static bool TakeOwnershipOfFirmwareReload();
DriverTool() = default;
virtual ~DriverTool() = default;