mirror of
https://github.com/open-sdr/openwifi.git
synced 2024-12-18 21:28:07 +00:00
Avoid rfkill turn off wifi after manual tx attenuation setting
This commit is contained in:
parent
17f1faaf26
commit
1e61d26112
@ -112,7 +112,8 @@ static bool openwifi_is_radio_enabled(struct openwifi_priv *priv)
|
|||||||
else
|
else
|
||||||
reg = ad9361_get_tx_atten(priv->ad9361_phy, 2);
|
reg = ad9361_get_tx_atten(priv->ad9361_phy, 2);
|
||||||
|
|
||||||
if (reg == (AD9361_RADIO_ON_TX_ATT+priv->rf_reg_val[RF_TX_REG_IDX_ATT]))
|
// if (reg == (AD9361_RADIO_ON_TX_ATT+priv->rf_reg_val[RF_TX_REG_IDX_ATT]))
|
||||||
|
if (reg < AD9361_RADIO_OFF_TX_ATT)
|
||||||
return true;// 0 off, 1 on
|
return true;// 0 off, 1 on
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user