Bug 866024 - nsWifiMonitorGonk reports correct list of access points.

This commit is contained in:
Nikhil Marathe 2013-04-29 17:34:42 +05:30
parent 11b52a7df1
commit 025d8a915a

View File

@ -154,9 +154,9 @@ nsWifiMonitor::Onready(uint32_t count, nsIWifiScanResult **results)
ReplaceArray(mLastAccessPoints, accessPoints);
nsTArray<nsIWifiAccessPoint*> ac;
uint32_t resultCount = accessPoints.Count();
uint32_t resultCount = mLastAccessPoints.Count();
for (uint32_t i = 0; i < resultCount; i++) {
ac.AppendElement(accessPoints[i]);
ac.AppendElement(mLastAccessPoints[i]);
}
for (uint32_t i = 0; i < mListeners.Length(); i++) {