Fix getMacAddress when wifi is off