| 315 | } |
| 316 | |
| 317 | string NeighborCache::neighborText() |
| 318 | { |
| 319 | string result; result.reserve(100); |
| 320 | result.append("Neighbors("); |
| 321 | for (NeighborMap::iterator it = mNeighborRSSI.begin(); it != mNeighborRSSI.end(); it++) { |
| 322 | LOG(DEBUG); |
| 323 | unsigned freqindex = it->first >> 6, bsic = it->first & 0x3f; |
| 324 | char buf[82]; |
| 325 | snprintf(buf,80,"(freqIndex=%u BSIC=%u count=%u AvgRSSI=%d)",freqindex,bsic,it->second.mnCount,it->second.mnAvgRSSI); |
| 326 | result.append(buf); |
| 327 | } |
| 328 | result.append(")"); |
| 329 | return result; |
| 330 | } |
| 331 | |
| 332 | int NeighborCache::neighborAddMeasurement(unsigned freqindex, unsigned BSIC, int RSSI) |
| 333 | { |
no test coverage detected