aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2011-05-09 14:17:09 -0700
committerArik Nemtsov <arik@wizery.com>2012-08-02 13:03:58 +0300
commit9d6f60d345bc1037138c428e566e4c07c5808f1b (patch)
tree902952012d5867af3f1d9883fefaa3233858729f /src
parent8645e3b3a41e61d01355d12e12719735fefb94b4 (diff)
downloadexternal_wpa_supplicant_8_ti-9d6f60d345bc1037138c428e566e4c07c5808f1b.zip
external_wpa_supplicant_8_ti-9d6f60d345bc1037138c428e566e4c07c5808f1b.tar.gz
external_wpa_supplicant_8_ti-9d6f60d345bc1037138c428e566e4c07c5808f1b.tar.bz2
Add extended 'driver' command
Change-Id: Ib589f44f471c1198973ee0a0695b90097fcc9b33 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index 5fef4d0..7afbda1 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -2576,6 +2576,17 @@ struct wpa_driver_ops {
* avoid frequency conflict in single channel concurrency.
*/
int (*switch_channel)(void *priv, unsigned int freq);
+
+ /**
+ * driver_cmd - execute driver-specific command
+ * @priv: private driver interface data
+ * @cmd: command to execute
+ * @buf: return buffer
+ * @buf_len: buffer length
+ *
+ * Returns: 0 on success, -1 on failure
+ */
+ int (*driver_cmd)(void *priv, char *cmd, char *buf, size_t buf_len);
};