From 53ae8ea1cf38c908e6d62c73e6c09d81ffaa2e33 Mon Sep 17 00:00:00 2001 From: dadav <33197631+dadav@users.noreply.github.com> Date: Fri, 1 Nov 2019 18:13:38 +0100 Subject: [PATCH] Add check if connected but no interface created --- pwnagotchi/plugins/default/bt-tether.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pwnagotchi/plugins/default/bt-tether.py b/pwnagotchi/plugins/default/bt-tether.py index 2115c72..52306bd 100644 --- a/pwnagotchi/plugins/default/bt-tether.py +++ b/pwnagotchi/plugins/default/bt-tether.py @@ -515,6 +515,11 @@ class BTTether(plugins.Plugin): device.network, success = BTNap.nap(dev_remote) if success: + if device.interface() is None: + ui.set('bluetooth', 'BE') + logging.info('BT-TETHER: Could not establish nap connection with %s', device.name) + continue + logging.info('BT-TETHER: Created interface (%s)', device.interface()) ui.set('bluetooth', 'C') any_device_connected = True