scan the wifi, generate the wpa config file.