cnm_scan.h 5.2 KB

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