wapi.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. ** 09 17 2012 cm.chang
  11. ** [BORA00002149] [MT6630 Wi-Fi] Initial software development
  12. ** Duplicate source from MT6620 v2.3 driver branch
  13. ** (Davinci label: MT6620_WIFI_Driver_V2_3_120913_1942_As_MT6630_Base)
  14. *
  15. * 07 20 2010 wh.su
  16. *
  17. * .
  18. *
  19. * 01 27 2010 wh.su
  20. * [BORA00000476][Wi-Fi][firmware] Add the security module initialize code
  21. * add and fixed some security function.
  22. *
  23. * Dec 8 2009 mtk01088
  24. * [BORA00000476] [Wi-Fi][firmware] Add the security module initialize code
  25. * change the wapi function name and adding the generate wapi ie function
  26. *
  27. * Dec 7 2009 mtk01088
  28. * [BORA00000476] [Wi-Fi][firmware] Add the security module initialize code
  29. * adding some wapi structure define
  30. *
  31. * Nov 23 2009 mtk01088
  32. * [BORA00000476] [Wi-Fi][firmware] Add the security module initialize code
  33. *
  34. ** \main\maintrunk.MT5921\1 2009-10-09 17:06:29 GMT mtk01088
  35. **
  36. */
  37. #ifndef _WAPI_H
  38. #define _WAPI_H
  39. #if CFG_SUPPORT_WAPI
  40. /*******************************************************************************
  41. * C O M P I L E R F L A G S
  42. ********************************************************************************
  43. */
  44. /*******************************************************************************
  45. * E X T E R N A L R E F E R E N C E S
  46. ********************************************************************************
  47. */
  48. /*******************************************************************************
  49. * C O N S T A N T S
  50. ********************************************************************************
  51. */
  52. /*******************************************************************************
  53. * D A T A T Y P E S
  54. ********************************************************************************
  55. */
  56. /*******************************************************************************
  57. * P U B L I C D A T A
  58. ********************************************************************************
  59. */
  60. /*******************************************************************************
  61. * P R I V A T E D A T A
  62. ********************************************************************************
  63. */
  64. /*******************************************************************************
  65. * M A C R O S
  66. ********************************************************************************
  67. */
  68. #define WAPI_CIPHER_SUITE_WPI 0x01721400 /* WPI_SMS4 */
  69. #define WAPI_AKM_SUITE_802_1X 0x01721400 /* WAI */
  70. #define WAPI_AKM_SUITE_PSK 0x02721400 /* WAI_PSK */
  71. #define ELEM_ID_WAPI 68 /* WAPI IE */
  72. #define WAPI_IE(fp) ((P_WAPI_INFO_ELEM_T) fp)
  73. /*******************************************************************************
  74. * F U N C T I O N D E C L A R A T I O N S
  75. ********************************************************************************
  76. */
  77. VOID wapiGenerateWAPIIE(IN P_ADAPTER_T prAdapter, IN P_MSDU_INFO_T prMsduInfo);
  78. BOOLEAN wapiParseWapiIE(IN P_WAPI_INFO_ELEM_T prInfoElem, OUT P_WAPI_INFO_T prWapiInfo);
  79. BOOLEAN wapiPerformPolicySelection(IN P_ADAPTER_T prAdapter, IN P_BSS_DESC_T prBss);
  80. /* BOOLEAN */
  81. /* wapiUpdateTxKeyIdx ( */
  82. /* IN P_STA_RECORD_T prStaRec, */
  83. /* IN UINT_8 ucWlanIdx */
  84. /* ); */
  85. /*******************************************************************************
  86. * F U N C T I O N S
  87. ********************************************************************************
  88. */
  89. #endif
  90. #endif /* _WAPI_H */