Do not execute iwgetid if the interface is recognized as tunnel

This commit is contained in:
tobias.hannaske 2020-06-22 10:33:49 +02:00
parent df9a1f9a4f
commit 3558176044

View file

@ -125,7 +125,7 @@ class Module(core.module.Module):
widget.set("state", state) widget.set("state", state)
def get_ssid(self, intf): def get_ssid(self, intf):
if self._iswlan(intf) and self.iwgetid: if self._iswlan(intf) and not self._istunnel(intf) and self.iwgetid:
return util.cli.execute( return util.cli.execute(
"{} -r {}".format(self.iwgetid, intf), ignore_errors=True "{} -r {}".format(self.iwgetid, intf), ignore_errors=True
) )