[algo] wifi averaging separated to common
bulletproofing code