summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNingyuan Wang2017-09-20 16:34:02 -0500
committerNingyuan Wang2017-09-22 11:21:37 -0500
commit3b6562baea903bb2daaebebccaad5bd3037cbcad (patch)
tree03786d07f9c777819777babc2778c228481cad6c
parentde45b50b17f0f8c92977c0a69f5d50ca393d84cc (diff)
downloadsystem-connectivity-wificond-3b6562baea903bb2daaebebccaad5bd3037cbcad.tar.gz
system-connectivity-wificond-3b6562baea903bb2daaebebccaad5bd3037cbcad.tar.xz
system-connectivity-wificond-3b6562baea903bb2daaebebccaad5bd3037cbcad.zip
Use AP bssid for GetPacketCounters()
we should use AP bssid instead of local interface mac address for NL80211_CMD_GET_STATION. Local interface mac address only works for some devices. Bug: 66218880 Test: compile, unit tests Test: run the following CTS test: cts-tradefed run cts -m CtsNetTestCases -t android.net.wifi.cts.WifiManagerTest#testWifiWatchdog Change-Id: I8852ab5085d186ee3f1e5b81abbf4c1d2500b9fa
-rw-r--r--client_interface_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client_interface_impl.cpp b/client_interface_impl.cpp
index 974ff17..b6f0171 100644
--- a/client_interface_impl.cpp
+++ b/client_interface_impl.cpp
@@ -188,7 +188,7 @@ bool ClientInterfaceImpl::DisableSupplicant() {
188bool ClientInterfaceImpl::GetPacketCounters(vector<int32_t>* out_packet_counters) { 188bool ClientInterfaceImpl::GetPacketCounters(vector<int32_t>* out_packet_counters) {
189 StationInfo station_info; 189 StationInfo station_info;
190 if (!netlink_utils_->GetStationInfo(interface_index_, 190 if (!netlink_utils_->GetStationInfo(interface_index_,
191 interface_mac_addr_, 191 bssid_,
192 &station_info)) { 192 &station_info)) {
193 return false; 193 return false;
194 } 194 }