wapi.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /*
  2. ** Id: //Department/DaVinci/BRANCHES/MT6620_WIFI_DRIVER_V2_3/include/mgmt/wapi.h#1
  3. */
  4. /*! \file wapi.h
  5. \brief The wapi related define, macro and structure are described here.
  6. */
  7. /*
  8. ** Log: wapi.h
  9. *
  10. * 07 20 2010 wh.su
  11. *
  12. * .
  13. *
  14. * 01 27 2010 wh.su
  15. * [BORA00000476][Wi-Fi][firmware] Add the security module initialize code
  16. * add and fixed some security function.
  17. *
  18. * Dec 8 2009 mtk01088
  19. * [BORA00000476] [Wi-Fi][firmware] Add the security module initialize code
  20. * change the wapi function name and adding the generate wapi ie function
  21. *
  22. * Dec 7 2009 mtk01088
  23. * [BORA00000476] [Wi-Fi][firmware] Add the security module initialize code
  24. * adding some wapi structure define
  25. *
  26. * Nov 23 2009 mtk01088
  27. * [BORA00000476] [Wi-Fi][firmware] Add the security module initialize code
  28. *
  29. ** \main\maintrunk.MT5921\1 2009-10-09 17:06:29 GMT mtk01088
  30. **
  31. */
  32. #ifndef _WAPI_H
  33. #define _WAPI_H
  34. #if CFG_SUPPORT_WAPI
  35. /*******************************************************************************
  36. * C O M P I L E R F L A G S
  37. ********************************************************************************
  38. */
  39. /*******************************************************************************
  40. * E X T E R N A L R E F E R E N C E S
  41. ********************************************************************************
  42. */
  43. /*******************************************************************************
  44. * C O N S T A N T S
  45. ********************************************************************************
  46. */
  47. /*******************************************************************************
  48. * D A T A T Y P E S
  49. ********************************************************************************
  50. */
  51. /*******************************************************************************
  52. * P U B L I C D A T A
  53. ********************************************************************************
  54. */
  55. /*******************************************************************************
  56. * P R I V A T E D A T A
  57. ********************************************************************************
  58. */
  59. /*******************************************************************************
  60. * M A C R O S
  61. ********************************************************************************
  62. */
  63. #define WAPI_CIPHER_SUITE_WPI 0x01721400 /* WPI_SMS4 */
  64. #define WAPI_AKM_SUITE_802_1X 0x01721400 /* WAI */
  65. #define WAPI_AKM_SUITE_PSK 0x02721400 /* WAI_PSK */
  66. #define ELEM_ID_WAPI 68 /* WAPI IE */
  67. #define WAPI_IE(fp) ((P_WAPI_INFO_ELEM_T) fp)
  68. /*******************************************************************************
  69. * F U N C T I O N D E C L A R A T I O N S
  70. ********************************************************************************
  71. */
  72. VOID wapiGenerateWAPIIE(IN P_ADAPTER_T prAdapter, IN P_MSDU_INFO_T prMsduInfo);
  73. BOOLEAN wapiParseWapiIE(IN P_WAPI_INFO_ELEM_T prInfoElem, OUT P_WAPI_INFO_T prWapiInfo);
  74. BOOLEAN wapiPerformPolicySelection(IN P_ADAPTER_T prAdapter, IN P_BSS_DESC_T prBss);
  75. /* BOOLEAN */
  76. /* wapiUpdateTxKeyIdx ( */
  77. /* IN P_STA_RECORD_T prStaRec, */
  78. /* IN UINT_8 ucWlanIdx */
  79. /* ); */
  80. /*******************************************************************************
  81. * F U N C T I O N S
  82. ********************************************************************************
  83. */
  84. #endif
  85. #endif /* _WAPI_H */