mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
do not swallow err on settxpower
This commit is contained in:
parent
ed4239fad5
commit
68924c34c4
3 changed files with 4 additions and 31 deletions
|
@ -550,7 +550,7 @@ func (mod *WiFiModule) Configure() error {
|
|||
|
||||
if mod.txPower > 0 {
|
||||
if err := network.SetInterfaceTxPower(ifName, mod.txPower); err != nil {
|
||||
mod.Warning("could not set interface %s txpower to %d, 'Set Tx Power' requests not supported", ifName, mod.txPower)
|
||||
mod.Warning("could not set interface %s txpower to %d, 'Set Tx Power' requests not supported: %v", ifName, mod.txPower, err)
|
||||
} else {
|
||||
mod.Debug("interface %s txpower set to %d", ifName, mod.txPower)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue