diff options
Diffstat (limited to 'plugins/telit.c')
-rw-r--r-- | plugins/telit.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/telit.c b/plugins/telit.c index 9c8eb0d3..18cf0c40 100644 --- a/plugins/telit.c +++ b/plugins/telit.c @@ -54,6 +54,8 @@ #include <drivers/atmodem/atutil.h> #include <drivers/atmodem/vendor.h> +#include "bluetooth.h" + static const char *none_prefix[] = { NULL }; static const char *qss_prefix[] = { "#QSS:", NULL }; @@ -63,6 +65,10 @@ struct telit_data { guint sim_inserted_source; }; +static struct bluetooth_sap_driver sap_driver = { + .name = "telit", +}; + static void telit_debug(const char *str, void *user_data) { const char *prefix = user_data; @@ -82,6 +88,8 @@ static int telit_probe(struct ofono_modem *modem) ofono_modem_set_data(modem, data); + bluetooth_sap_client_register(&sap_driver, modem); + return 0; } @@ -91,6 +99,8 @@ static void telit_remove(struct ofono_modem *modem) DBG("%p", modem); + bluetooth_sap_client_unregister(modem); + ofono_modem_set_data(modem, NULL); if (data->sim_inserted_source > 0) |