def delete_connection(self): ssid = nm.get_active_ssid(modemgr.get_link_device()) nm.del_connection_by_ssid(ssid) states.set_state('HOTSPOT')
def run_cmds(cmds): outdev = nm.device_name(modemgr.get_link_device()) for cmd in cmds: subprocess.call(cmd.format(outdev), shell=True)
def init_nmmon(): set_device_listeners(modemgr.get_ap_device(), modemgr.get_link_device())
def run_cmds(cmds): linkdev = nm.device_name(modemgr.get_link_device()) apdev = nm.device_name(modemgr.get_ap_device()) for cmd in cmds: subprocess.call(cmd.format(link=linkdev, ap=apdev), shell=True)