the code used for wifi location, this commit is rearrange of our previous used code, docs will come soon