mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
Merge pull request #709 from skooch/skooch-txpower-fix
Fix iw txpower syntax
This commit is contained in:
commit
a39a0018eb
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ func ActivateInterface(name string) error {
|
|||
func SetInterfaceTxPower(name string, txpower int) error {
|
||||
if core.HasBinary("iw") {
|
||||
Debug("SetInterfaceTxPower(%s, %d) iw based", name, txpower)
|
||||
if _, err := core.Exec("iw", []string{"dev", name, "set", "txpower", fmt.Sprintf("%dmBm",
|
||||
if _, err := core.Exec("iw", []string{"dev", name, "set", "txpower", "fixed", fmt.Sprintf("%d",
|
||||
txpower)}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue