From 206934789d617d02321e922665b2677f2563865c Mon Sep 17 00:00:00 2001 From: src-dev Date: Mon, 11 Mar 2024 05:10:21 -0500 Subject: [PATCH] Fixed parsing of frequency and channel Fixed parsing of frequency and channel in some occurrences of 5GHz networks. --- iwlist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iwlist.py b/iwlist.py index bec4ced..ef771b5 100644 --- a/iwlist.py +++ b/iwlist.py @@ -6,7 +6,8 @@ re.compile(r"^ESSID:\"(?P.*)\"$"), re.compile(r"^Protocol:(?P.+)$"), re.compile(r"^Mode:(?P.+)$"), - re.compile(r"^Frequency:(?P[\d.]+) (?P.+) \(Channel (?P\d+)\)$"), + re.compile(r"^Frequency:(?P[\d.]+) (?P.+)( \(Channel \d+\))?$"), + re.compile(r"^Channel:(?P\d+)$"), re.compile(r"^Encryption key:(?P.+)$"), re.compile(r"^Quality=(?P\d+)/(?P\d+)\s+Signal level=(?P.+) d.+$"), re.compile(r"^Signal level=(?P\d+)/(?P\d+).*$"),