rewrite wifi connection update