Cherry-pick: Fail RSSI polling if wifi is not associated
am: b3fb231cee
Change-Id: I14372022b36b3abd9cb8d1310c888aae763343d3
diff --git a/client_interface_impl.cpp b/client_interface_impl.cpp
index 974ff17..9a1785c 100644
--- a/client_interface_impl.cpp
+++ b/client_interface_impl.cpp
@@ -199,6 +199,11 @@
}
bool ClientInterfaceImpl::SignalPoll(vector<int32_t>* out_signal_poll_results) {
+ if (!IsAssociated()) {
+ LOG(INFO) << "Fail RSSI polling because wifi is not associated.";
+ return false;
+ }
+
StationInfo station_info;
if (!netlink_utils_->GetStationInfo(interface_index_,
bssid_,