summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy/wifi.h
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2013-05-30 10:49:15 -0700
committerDmitry Shmidt <dimitrysh@google.com>2013-05-30 10:49:15 -0700
commit77cc5e292598b2c12c4e7bc9fd490b1d00f0a9cf (patch)
treeceedd38acbbb099ae64a11b4566ef4dc5103094e /include/hardware_legacy/wifi.h
parentde9abffc3815449cbd8d756937030cb0353fb9f2 (diff)
downloadhardware_libhardware_legacy-77cc5e292598b2c12c4e7bc9fd490b1d00f0a9cf.zip
hardware_libhardware_legacy-77cc5e292598b2c12c4e7bc9fd490b1d00f0a9cf.tar.gz
hardware_libhardware_legacy-77cc5e292598b2c12c4e7bc9fd490b1d00f0a9cf.tar.bz2
wifi: Add command buffer length parameter to wifi_command()
Change-Id: I832bc51279e0fb7d3002298f87a35b816b666ad5 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'include/hardware_legacy/wifi.h')
-rw-r--r--include/hardware_legacy/wifi.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/hardware_legacy/wifi.h b/include/hardware_legacy/wifi.h
index be6a83e..a437617 100644
--- a/include/hardware_legacy/wifi.h
+++ b/include/hardware_legacy/wifi.h
@@ -97,7 +97,8 @@ int wifi_wait_for_event(const char *iface, char *buf, size_t len);
* driver commands that are supported
*
* @param iface is the interface on which command is sent
- * @param command is the string command
+ * @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
* @param reply_len on entry, this is the maximum length of
* the reply buffer. On exit, the number of
@@ -105,7 +106,8 @@ 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, const char *command, char *reply, size_t *reply_len);
+int wifi_command(const char *iface, char *command, size_t commandlen,
+ char *reply, size_t *reply_len);
/**
* do_dhcp_request() issues a dhcp request and returns the acquired