wpas_module_tests.c 486 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * wpa_supplicant module tests
  3. * Copyright (c) 2014, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #include "utils/includes.h"
  9. #include "utils/common.h"
  10. int wpas_module_tests(void)
  11. {
  12. int ret = 0;
  13. wpa_printf(MSG_INFO, "wpa_supplicant module tests");
  14. #ifdef CONFIG_WPS
  15. {
  16. int wps_module_tests(void);
  17. if (wps_module_tests() < 0)
  18. ret = -1;
  19. }
  20. #endif /* CONFIG_WPS */
  21. return ret;
  22. }