diff options
author | Ningyuan Wang | 2017-08-24 18:03:33 -0500 |
---|---|---|
committer | Ningyuan Wang | 2017-09-14 11:27:38 -0500 |
commit | b3fb231ceeb28acf0bd9e47e2339e85e82c9f134 (patch) | |
tree | 69c96ba4667de8f475436cb79aae22de7bca0ae6 | |
parent | de45b50b17f0f8c92977c0a69f5d50ca393d84cc (diff) | |
download | system-connectivity-wificond-b3fb231ceeb28acf0bd9e47e2339e85e82c9f134.tar.gz system-connectivity-wificond-b3fb231ceeb28acf0bd9e47e2339e85e82c9f134.tar.xz system-connectivity-wificond-b3fb231ceeb28acf0bd9e47e2339e85e82c9f134.zip |
Cherry-pick: Fail RSSI polling if wifi is not associated
Bug: 65025500
Test: compile, unit tests
Merged-In: Id4fe741d4a66329302cea0961d1bc17a35aa9382
Change-Id: Id4fe741d4a66329302cea0961d1bc17a35aa9382
-rw-r--r-- | client_interface_impl.cpp | 5 |
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 | ||
201 | bool ClientInterfaceImpl::SignalPoll(vector<int32_t>* out_signal_poll_results) { | 201 | bool 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_, |