build_features.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef BUILD_FEATURES_H
  2. #define BUILD_FEATURES_H
  3. static inline int has_feature(const char *feat)
  4. {
  5. #if defined(IEEE8021X_EAPOL) || (defined(HOSTAPD) && !defined(CONFIG_NO_RADIUS))
  6. if (!strcmp(feat, "eap"))
  7. return 1;
  8. #endif
  9. #ifdef CONFIG_IEEE80211N
  10. if (!strcmp(feat, "11n"))
  11. return 1;
  12. #endif
  13. #ifdef CONFIG_IEEE80211AC
  14. if (!strcmp(feat, "11ac"))
  15. return 1;
  16. #endif
  17. #ifdef CONFIG_IEEE80211AX
  18. if (!strcmp(feat, "11ax"))
  19. return 1;
  20. #endif
  21. #ifdef CONFIG_IEEE80211R
  22. if (!strcmp(feat, "11r"))
  23. return 1;
  24. #endif
  25. if (!strcmp(feat, "11w"))
  26. return 1;
  27. #ifdef CONFIG_ACS
  28. if (!strcmp(feat, "acs"))
  29. return 1;
  30. #endif
  31. #ifdef CONFIG_SAE
  32. if (!strcmp(feat, "sae"))
  33. return 1;
  34. #endif
  35. #ifdef CONFIG_OWE
  36. if (!strcmp(feat, "owe"))
  37. return 1;
  38. #endif
  39. #ifdef CONFIG_SUITEB192
  40. if (!strcmp(feat, "suiteb192"))
  41. return 1;
  42. #endif
  43. #ifdef CONFIG_WEP
  44. if (!strcmp(feat, "wep"))
  45. return 1;
  46. #endif
  47. #ifdef CONFIG_HS20
  48. if (!strcmp(feat, "hs20"))
  49. return 1;
  50. #endif
  51. #ifdef CONFIG_WPS
  52. if (!strcmp(feat, "wps"))
  53. return 1;
  54. #endif
  55. return 0;
  56. }
  57. #endif /* BUILD_FEATURES_H */