Commit 77cc5e29 authored by Dmitry Shmidt's avatar Dmitry Shmidt
Browse files

wifi: Add command buffer length parameter to wifi_command()


Change-Id: I832bc51279e0fb7d3002298f87a35b816b666ad5
Signed-off-by: default avatarDmitry Shmidt <dimitrysh@google.com>
parent de9abffc
......@@ -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
......
......@@ -834,7 +834,8 @@ void wifi_close_supplicant_connection(const char *ifname)
}
}
int wifi_command(const char *ifname, const char *command, char *reply, size_t *reply_len)
int wifi_command(const char *ifname, char *command, size_t commandlen,
char *reply, size_t *reply_len)
{
if (is_primary_interface(ifname)) {
return wifi_send_command(PRIMARY, command, reply, reply_len);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment