Fix bug of add network while first connecting to AP.