cnm_scan.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. /*
  2. ** Id: @(#)
  3. */
  4. /*! \file "cnm_scan.h"
  5. \brief
  6. */
  7. /*
  8. ** Log: cnm_scan.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. * 09 03 2010 kevin.huang
  16. * NULL
  17. * Refine #include sequence and solve recursive/nested #include issue
  18. *
  19. * 07 08 2010 cp.wu
  20. *
  21. * [WPD00003833] [MT6620 and MT5931] Driver migration - move to new repository.
  22. *
  23. * 07 05 2010 cp.wu
  24. * [WPD00003833][MT6620 and MT5931] Driver migration
  25. * remove unused definitions.
  26. *
  27. * 07 01 2010 cp.wu
  28. * [WPD00003833][MT6620 and MT5931] Driver migration
  29. * implementation of DRV-SCN and related mailbox message handling.
  30. *
  31. * 06 07 2010 cp.wu
  32. * [WPD00003833][MT6620 and MT5931] Driver migration
  33. * merge cnm_scan.h and hem_mbox.h
  34. *
  35. * 05 12 2010 kevin.huang
  36. * [BORA00000794][WIFISYS][New Feature]Power Management Support
  37. * Add Power Management - Legacy PS-POLL support.
  38. *
  39. * 03 30 2010 cm.chang
  40. * [BORA00000018]Integrate WIFI part into BORA for the 1st time
  41. * Support 2.4G OBSS scan
  42. *
  43. * 03 16 2010 kevin.huang
  44. * [BORA00000663][WIFISYS][New Feature] AdHoc Mode Support
  45. * Add AdHoc Mode
  46. *
  47. * 03 10 2010 kevin.huang
  48. * [BORA00000654][WIFISYS][New Feature] CNM Module - Ch Manager Support
  49. *
  50. * * * * Add Channel Manager for arbitration of JOIN and SCAN Req
  51. *
  52. * 02 23 2010 kevin.huang
  53. * [BORA00000603][WIFISYS] [New Feature] AAA Module Support
  54. * Add support scan channel 1~14 and update scan result's frequency infou1rwduu`wvpghlqg|n`slk+mpdkb
  55. *
  56. * 02 04 2010 kevin.huang
  57. * [BORA00000603][WIFISYS] [New Feature] AAA Module Support
  58. * Add AAA Module Support, Revise Net Type to Net Type Index for array lookup
  59. *
  60. * Nov 18 2009 mtk01104
  61. * [BORA00000018] Integrate WIFI part into BORA for the 1st time
  62. * Add function prototype of cnmScanInit()
  63. *
  64. * Nov 5 2009 mtk01461
  65. * [BORA00000018] Integrate WIFI part into BORA for the 1st time
  66. *
  67. **
  68. */
  69. #ifndef _CNM_SCAN_H
  70. #define _CNM_SCAN_H
  71. /*******************************************************************************
  72. * C O M P I L E R F L A G S
  73. ********************************************************************************
  74. */
  75. /*******************************************************************************
  76. * E X T E R N A L R E F E R E N C E S
  77. ********************************************************************************
  78. */
  79. /*******************************************************************************
  80. * C O N S T A N T S
  81. ********************************************************************************
  82. */
  83. #define SCN_CHANNEL_DWELL_TIME_MIN_MSEC 12
  84. #define SCN_CHANNEL_DWELL_TIME_EXT_MSEC 98
  85. #define SCN_TOTAL_PROBEREQ_NUM_FOR_FULL 3
  86. #define SCN_SPECIFIC_PROBEREQ_NUM_FOR_FULL 1
  87. #define SCN_TOTAL_PROBEREQ_NUM_FOR_PARTIAL 2
  88. #define SCN_SPECIFIC_PROBEREQ_NUM_FOR_PARTIAL 1
  89. #define SCN_INTERLACED_CHANNEL_GROUPS_NUM 3 /* Used by partial scan */
  90. #define SCN_PARTIAL_SCAN_NUM 3
  91. #define SCN_PARTIAL_SCAN_IDLE_MSEC 100
  92. #define MAXIMUM_OPERATION_CHANNEL_LIST 32
  93. /*******************************************************************************
  94. * D A T A T Y P E S
  95. ********************************************************************************
  96. */
  97. /* The type of Scan Source */
  98. typedef enum _ENUM_SCN_REQ_SOURCE_T {
  99. SCN_REQ_SOURCE_HEM = 0,
  100. SCN_REQ_SOURCE_NET_FSM,
  101. SCN_REQ_SOURCE_ROAMING, /* ROAMING Module is independent of AIS FSM */
  102. SCN_REQ_SOURCE_OBSS, /* 2.4G OBSS scan */
  103. SCN_REQ_SOURCE_NUM
  104. } ENUM_SCN_REQ_SOURCE_T, *P_ENUM_SCN_REQ_SOURCE_T;
  105. typedef enum _ENUM_SCAN_PROFILE_T {
  106. SCAN_PROFILE_FULL = 0,
  107. SCAN_PROFILE_PARTIAL,
  108. SCAN_PROFILE_VOIP,
  109. SCAN_PROFILE_FULL_2G4,
  110. SCAN_PROFILE_NUM
  111. } ENUM_SCAN_PROFILE_T, *P_ENUM_SCAN_PROFILE_T;
  112. /*******************************************************************************
  113. * P U B L I C D A T A
  114. ********************************************************************************
  115. */
  116. /*******************************************************************************
  117. * P R I V A T E D A T A
  118. ********************************************************************************
  119. */
  120. /*******************************************************************************
  121. * M A C R O S
  122. ********************************************************************************
  123. */
  124. /*******************************************************************************
  125. * F U N C T I O N D E C L A R A T I O N S
  126. ********************************************************************************
  127. */
  128. /*******************************************************************************
  129. * F U N C T I O N S
  130. ********************************************************************************
  131. */
  132. #if 0
  133. VOID cnmScanInit(VOID);
  134. VOID cnmScanRunEventScanRequest(IN P_MSG_HDR_T prMsgHdr);
  135. BOOLEAN cnmScanRunEventScanAbort(IN P_MSG_HDR_T prMsgHdr);
  136. VOID cnmScanProfileSelection(VOID);
  137. VOID cnmScanProcessStart(VOID);
  138. VOID cnmScanProcessStop(VOID);
  139. VOID cnmScanRunEventReqAISAbsDone(IN P_MSG_HDR_T prMsgHdr);
  140. VOID cnmScanRunEventCancelAISAbsDone(IN P_MSG_HDR_T prMsgHdr);
  141. VOID cnmScanPartialScanTimeout(UINT_32 u4Param);
  142. VOID cnmScanRunEventScnFsmComplete(IN P_MSG_HDR_T prMsgHdr);
  143. #endif
  144. #endif /* _CNM_SCAN_H */