Some drivers don't support it. Just ignore the error to get correct
signal strength.
Tested-by: youling257 <youling257@gmail.com>
return false;
}
if (!sta_info.GetAttributeValue(NL80211_STA_INFO_TX_FAILED, &tx_bad)) {
- LOG(ERROR) << "Failed to get NL80211_STA_INFO_TX_FAILED";
- return false;
+ static bool logged = false;
+ if (!logged) {
+ PLOG(ERROR) << "Failed to get NL80211_STA_INFO_TX_FAILED";
+ logged = true;
+ }
+ tx_bad = 0;
}
int8_t current_rssi;
if (!sta_info.GetAttributeValue(NL80211_STA_INFO_SIGNAL, ¤t_rssi)) {