do not swallow err on settxpower

This commit is contained in:
firefart 2022-04-23 22:43:27 +02:00
commit 68924c34c4
3 changed files with 4 additions and 31 deletions

View file

@ -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)
}