wifi detector and header parser