From ba2425f0085ab6e04d887c012204460cad102913 Mon Sep 17 00:00:00 2001 From: Pranav Jerry Date: Sun, 27 Jun 2021 14:25:36 +0530 Subject: [PATCH] initial implementation of iwd api iwd.py is used to communicate with iwd via d-bus --- naxalnet/iwd.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 naxalnet/iwd.py diff --git a/naxalnet/iwd.py b/naxalnet/iwd.py new file mode 100644 index 0000000..c173b07 --- /dev/null +++ b/naxalnet/iwd.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python3 + +"""Manage wifi adapter via iwd D-Bus api""" + + +class IWD: + """Manage iwd via dbus""" + + def __init__(self): + pass + + def get_devices(self): + """ + returns list of device names as str + example: ["wlan0", "wlan1"] + """ + + def get_adapters(self): + """ + returns list of adapters + example: ["phy0","phy1"] + """ + + +class Device: + """control devices with iwd""" + + def __init__(self, name: str): + pass