From 69e94ce171e0a937a5e40229aafd8f1a65a0a671 Mon Sep 17 00:00:00 2001 From: Dedy Lansky Date: Thu, 10 Sep 2015 17:09:49 +0300 Subject: wifi: generalize ensure_config_file_exists() ensure_config_file_exists gets config_file_template as argument instead of using hard coded SUPP_CONFIG_TEMPLATE Change-Id: I52b0c21d47254b5fa62e53ac71552d5dbfc445df --- include/hardware_legacy/wifi.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/hardware_legacy/wifi.h') diff --git a/include/hardware_legacy/wifi.h b/include/hardware_legacy/wifi.h index 93f0383..a60718d 100644 --- a/include/hardware_legacy/wifi.h +++ b/include/hardware_legacy/wifi.h @@ -150,6 +150,11 @@ int wifi_change_fw_path(const char *fwpath); #define WIFI_ENTROPY_FILE "/data/misc/wifi/entropy.bin" int ensure_entropy_file_exists(); +/** +* Check and create if necessary the desired configuration file +*/ +int ensure_config_file_exists(const char *config_file, const char *config_file_template); + #if __cplusplus }; // extern "C" #endif -- cgit v1.1