From: "Gustavo F. Padovan" <padovan(a)profusion.mobi>
---
plugins/sap.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/plugins/sap.c b/plugins/sap.c
index 678addc..308d28f 100644
--- a/plugins/sap.c
+++ b/plugins/sap.c
@@ -316,6 +316,7 @@ done:
static int sap_disable(struct ofono_modem *modem)
{
struct sap_data *data = ofono_modem_get_data(modem);
+ struct bluetooth_sap_driver *sap_driver;
int status;
char str[] = "sap";
char *s = str;
@@ -328,6 +329,12 @@ static int sap_disable(struct ofono_modem *modem)
DBUS_TIMEOUT, DBUS_TYPE_STRING,
&s, DBUS_TYPE_INVALID);
+ sap_driver = g_hash_table_lookup(sap_hw_hash, data->hw_modem);
+ if (!sap_driver)
+ return -EINVAL;
+
+ sap_driver->disable(data->hw_modem);
+
if (status < 0)
return -EINVAL;
--
1.7.6.1