Arduino Primo wifi switches back to AP mode when powered off

explained here