tohojo commented on this pull request. > @@ -514,3 +514,27 @@ def get_module_versions(): module_versions[m] = v return module_versions + +def get_wifi_data(iface): + wifi_data = {} + unwanted_keys = ["Interface", "ifindex", "wdev", "wiphy"] + output = get_command_output("iw dev %s info" % iface) + if output is not None: + for line in output.splitlines(): + parts = line.split() + + if parts[0] in unwanted_keys: + continue + k,v = parts[0], parts[1] + if parts[0] == 'txpower': + v = float(parts[1]) + if parts[0] == 'channel': No, I meant the 'channel' line... -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/tohojo/flent/pull/188#discussion_r346839149