From 0193d13ca0e533990cb290018de8ee4800c7e06a Mon Sep 17 00:00:00 2001 From: Mikhail Markov Date: Thu, 28 Oct 2021 01:06:03 +0300 Subject: [PATCH] fix: exclude disabled channels --- network/net_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/net_linux.go b/network/net_linux.go index dd0977ac..43dc013c 100644 --- a/network/net_linux.go +++ b/network/net_linux.go @@ -73,7 +73,7 @@ func iwlistSupportedFrequencies(iface string) ([]int, error) { } var iwPhyParser = regexp.MustCompile(`^\s*wiphy\s+(\d+)$`) -var iwFreqParser = regexp.MustCompile(`^\s+\*\s+(\d+)\s+MHz.+$`) +var iwFreqParser = regexp.MustCompile(`^\s+\*\s+(\d+)\s+MHz.+dBm.+$`) func iwSupportedFrequencies(iface string) ([]int, error) { // first determine phy index