summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNingyuan Wang2017-09-20 15:59:16 -0500
committerandroid-build-merger2017-09-20 15:59:16 -0500
commit8aaf4f0d6dc653d12cf2be78411ad2b7b8aae5dc (patch)
tree842680364d6a47b689a4fd3734803a325c847e95
parentcd7f21fcc03416153ea2fc2093a82a9cd3350fea (diff)
parentb3fb231ceeb28acf0bd9e47e2339e85e82c9f134 (diff)
downloadsystem-connectivity-wificond-8aaf4f0d6dc653d12cf2be78411ad2b7b8aae5dc.tar.gz
system-connectivity-wificond-8aaf4f0d6dc653d12cf2be78411ad2b7b8aae5dc.tar.xz
system-connectivity-wificond-8aaf4f0d6dc653d12cf2be78411ad2b7b8aae5dc.zip
Cherry-pick: Fail RSSI polling if wifi is not associated
am: b3fb231cee Change-Id: I14372022b36b3abd9cb8d1310c888aae763343d3
-rw-r--r--client_interface_impl.cpp5
1 files changed, 5 insertions, 0 deletions
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::GetPacketCounters(vector<int32_t>* out_packet_counters
199} 199}
200 200
201bool ClientInterfaceImpl::SignalPoll(vector<int32_t>* out_signal_poll_results) { 201bool ClientInterfaceImpl::SignalPoll(vector<int32_t>* out_signal_poll_results) {
202 if (!IsAssociated()) {
203 LOG(INFO) << "Fail RSSI polling because wifi is not associated.";
204 return false;
205 }
206
202 StationInfo station_info; 207 StationInfo station_info;
203 if (!netlink_utils_->GetStationInfo(interface_index_, 208 if (!netlink_utils_->GetStationInfo(interface_index_,
204 bssid_, 209 bssid_,