From 39c2609065875885ba04a000c1eac7a31d090366 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Wed, 15 Mar 2017 16:28:02 -0700 Subject: [PATCH] supplicant(interface): Add support for disabling auto connect Adding a new API to prevent wpa_supplicant from initiating auto reconnects. Bug: 36282386 Test: Compiles & manual tests. Change-Id: I81d7b1a3677cb26c6e9dc35b7302cc6b00d9a6a2 --- wifi/supplicant/1.0/ISupplicantStaIface.hal | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/wifi/supplicant/1.0/ISupplicantStaIface.hal b/wifi/supplicant/1.0/ISupplicantStaIface.hal index 68eb179eec..f89017cb16 100644 --- a/wifi/supplicant/1.0/ISupplicantStaIface.hal +++ b/wifi/supplicant/1.0/ISupplicantStaIface.hal @@ -460,4 +460,19 @@ interface ISupplicantStaIface extends ISupplicantIface { * |SupplicantStatusCode.FAILURE_UNKNOWN| */ removeExtRadioWork(uint32_t id) generates (SupplicantStatus status); + + /** + * Enable/Disable auto reconnect to networks. + * Use this to prevent wpa_supplicant from trying to connect to networks + * on its own. + * + * @param enable true to enable, false to disable. + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_IFACE_INVALID|, + * |SupplicantStatusCode.FAILURE_IFACE_DISABLED| + */ + enableAutoReconnect(bool enable) generates (SupplicantStatus status); };