From a9008e43e555816aaf1f5a31d1cd22ad671b2e76 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 5 May 2013 02:46:41 +0300 Subject: [PATCH] wpadebug: Add generic control interface command mechanism Signed-hostap: Jouni Malinen --- wpadebug/AndroidManifest.xml | 4 + wpadebug/README | 3 + wpadebug/res/layout/main.xml | 36 +----- wpadebug/res/raw/wpa_commands.txt | 5 + wpadebug/src/w1/fi/wpadebug/MainActivity.java | 31 +---- .../fi/wpadebug/WpaCommandListActivity.java | 106 ++++++++++++++++++ 6 files changed, 127 insertions(+), 58 deletions(-) create mode 100644 wpadebug/res/raw/wpa_commands.txt create mode 100644 wpadebug/src/w1/fi/wpadebug/WpaCommandListActivity.java diff --git a/wpadebug/AndroidManifest.xml b/wpadebug/AndroidManifest.xml index f351b0829..227f1825f 100644 --- a/wpadebug/AndroidManifest.xml +++ b/wpadebug/AndroidManifest.xml @@ -32,5 +32,9 @@ android:label="Command list" android:parentActivityName="w1.fi.wpadebug.MainActivity"> + + diff --git a/wpadebug/README b/wpadebug/README index ada07babe..5d91fb7b7 100644 --- a/wpadebug/README +++ b/wpadebug/README @@ -50,6 +50,9 @@ arbitrary shell commands to be executed. This text file need to be in example: version@cat /proc/version +Similarly, /data/local/wpadebug.wpacmds can be used to define additional +wpa_supplicant control interface commands. + Uninstallation -------------- diff --git a/wpadebug/res/layout/main.xml b/wpadebug/res/layout/main.xml index b3337e470..76841b149 100644 --- a/wpadebug/res/layout/main.xml +++ b/wpadebug/res/layout/main.xml @@ -1,6 +1,6 @@ @@ -38,36 +38,6 @@ android:layout_height="wrap_content" android:text="wpa_supplicant commands" /> - -