diff options
author | Vinit Deshapnde <vinitd@google.com> | 2013-08-08 10:39:25 -0700 |
---|---|---|
committer | Vinit Deshpande <vinitd@google.com> | 2013-08-08 18:31:38 +0000 |
commit | 0f330488afcfff031bc0ba88de826f998f7cfaf9 (patch) | |
tree | eecd0cfecb7cfddcf016c440cc0daaa705503691 /include | |
parent | a527ffd3c2ce72048a8fae51cd399024af4439b9 (diff) | |
download | hardware_libhardware_legacy-0f330488afcfff031bc0ba88de826f998f7cfaf9.zip hardware_libhardware_legacy-0f330488afcfff031bc0ba88de826f998f7cfaf9.tar.gz hardware_libhardware_legacy-0f330488afcfff031bc0ba88de826f998f7cfaf9.tar.bz2 |
Use a single socket to communicate with supplicant
This helps to preapre for future updates from external sources.
Bug: 9298955
Change-Id: I4c63ad5fc1ea3564aab38cfce955de19bad75c0c
(cherry picked from commit 759cc323cb586192d591a815b0fb9d839536fcd6)
Diffstat (limited to 'include')
-rw-r--r-- | include/hardware_legacy/wifi.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/include/hardware_legacy/wifi.h b/include/hardware_legacy/wifi.h index a437617..7a64d52 100644 --- a/include/hardware_legacy/wifi.h +++ b/include/hardware_legacy/wifi.h @@ -58,25 +58,24 @@ int wifi_start_supplicant(int p2pSupported); int wifi_stop_supplicant(int p2pSupported); /** - * Open a connection to supplicant on interface + * Open a connection to supplicant * * @return 0 on success, < 0 on failure. */ -int wifi_connect_to_supplicant(const char *ifname); +int wifi_connect_to_supplicant(); /** - * Close connection to supplicant on interface + * Close connection to supplicant * * @return 0 on success, < 0 on failure. */ -void wifi_close_supplicant_connection(const char *ifname); +void wifi_close_supplicant_connection(); /** * wifi_wait_for_event() performs a blocking call to * get a Wi-Fi event and returns a string representing * a Wi-Fi event when it occurs. * - * @param iface is the interface on which event is received * @param buf is the buffer that receives the event * @param len is the maximum length of the buffer * @@ -84,7 +83,7 @@ void wifi_close_supplicant_connection(const char *ifname); * event (for instance, no connection), and less than 0 * if there is an error. */ -int wifi_wait_for_event(const char *iface, char *buf, size_t len); +int wifi_wait_for_event(char *buf, size_t len); /** * wifi_command() issues a command to the Wi-Fi driver. @@ -96,7 +95,6 @@ int wifi_wait_for_event(const char *iface, char *buf, size_t len); * See wifi/java/android/net/wifi/WifiNative.java for the details of * driver commands that are supported * - * @param iface is the interface on which command is sent * @param command is the string command (preallocated with 32 bytes) * @param commandlen is command buffer length * @param reply is a buffer to receive a reply string @@ -106,8 +104,7 @@ int wifi_wait_for_event(const char *iface, char *buf, size_t len); * * @return 0 if successful, < 0 if an error. */ -int wifi_command(const char *iface, char *command, size_t commandlen, - char *reply, size_t *reply_len); +int wifi_command(const char *command, char *reply, size_t *reply_len); /** * do_dhcp_request() issues a dhcp request and returns the acquired |