Fixed wifi reconnect problems

Signed-off-by: Anders Bech Mellson <anders@bechmellson.com>