156 int wifi_command(
const char *command,
char *reply,
size_t *reply_len);
175 int *dns1,
int *dns2,
int *server,
int *lease);
185 #define WIFI_GET_FW_PATH_STA 0
186 #define WIFI_GET_FW_PATH_AP 1
187 #define WIFI_GET_FW_PATH_P2P 2
198 #define WIFI_ENTROPY_FILE "/data/misc/wifi/entropy.bin"
int wifi_stop_supplicant()
Stop supplicant.
int wifi_wait_for_event(char *buf, size_t len)
wifi_wait_for_event() performs a blocking call to get a Wi-Fi event and returns a string representing...
int wifi_command(const char *command, char *reply, size_t *reply_len)
wifi_command() issues a command to the Wi-Fi driver.
const char * wifi_get_fw_path(int fw_type)
int do_dhcp_request(int *ipaddr, int *gateway, int *mask, int *dns1, int *dns2, int *server, int *lease)
do_dhcp_request() issues a dhcp request and returns the acquired information.
int wifi_change_fw_path(const char *fwpath)
Change the path to firmware for the wlan driver.
int wifi_start_p2p_supplicant()
Start supplicant for p2p operation.
int ensure_entropy_file_exists()
void wifi_close_supplicant_connection()
Close connection supplicant.
int wifi_unload_driver()
Unload the Wi-Fi driver.
int is_wifi_driver_loaded()
Check if the Wi-Fi driver is loaded.
int wifi_start_supplicant()
Start supplicant.
int wifi_connect_to_supplicant()
Open a connection to supplicant.
int wifi_load_driver()
Load the Wi-Fi driver.
const char * get_dhcp_error_string()
Return the error string of the last do_dhcp_request().