mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
Merge pull request #923 from xrayid/master
fix: exclude disabled channels
This commit is contained in:
commit
b9a546ec9d
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