mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: exclude disabled channels
This commit is contained in:
parent
a20fb139f5
commit
0193d13ca0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue