fix build with gcc-4.7
z2: protect against enabling WiFi when it's already enabled