diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2013-07-16 12:41:22 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2013-07-16 12:41:22 -0700 |
commit | 5ab422bfa34f0fd64b6bef25287e7250f80de4ba (patch) | |
tree | 892fc2a8094c5d80c1b499d816f8c5a7b406798f /wifi/java | |
parent | 7b5c6170db013a4b4ff1a86d6f72842a1627bd57 (diff) | |
download | frameworks_base-5ab422bfa34f0fd64b6bef25287e7250f80de4ba.zip frameworks_base-5ab422bfa34f0fd64b6bef25287e7250f80de4ba.tar.gz frameworks_base-5ab422bfa34f0fd64b6bef25287e7250f80de4ba.tar.bz2 |
wifi: Add tdls_discover command to tdls enable call
Bug: 8539031
Change-Id: I29739e74f73b68fbf9ff73cfc19017a01655f9a4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'wifi/java')
-rw-r--r-- | wifi/java/android/net/wifi/WifiNative.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/wifi/java/android/net/wifi/WifiNative.java b/wifi/java/android/net/wifi/WifiNative.java index 7ee7085..b1dd2ce 100644 --- a/wifi/java/android/net/wifi/WifiNative.java +++ b/wifi/java/android/net/wifi/WifiNative.java @@ -371,10 +371,12 @@ public class WifiNative { } public void startTdls(String macAddr, boolean enable) { - if (enable) + if (enable) { + doBooleanCommand("TDLS_DISCOVER " + macAddr); doBooleanCommand("TDLS_SETUP " + macAddr); - else + } else { doBooleanCommand("TDLS_TEARDOWN " + macAddr); + } } /** Example output: |