PageRenderTime 45ms CodeModel.GetById 0ms RepoModel.GetById 1ms app.codeStats 0ms

/drivers/net/wireless/tiwlan1251/common/inc/roamingMngrTypes.h

http://github.com/CyanogenMod/cm-kernel
C Header | 102 lines | 34 code | 17 blank | 51 comment | 0 complexity | f160cea80d05e87cee8607bb143536ab MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, LGPL-2.0
  1. /****************************************************************************
  2. **+-----------------------------------------------------------------------+**
  3. **| |**
  4. **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved. |**
  5. **| All rights reserved. |**
  6. **| |**
  7. **| Redistribution and use in source and binary forms, with or without |**
  8. **| modification, are permitted provided that the following conditions |**
  9. **| are met: |**
  10. **| |**
  11. **| * Redistributions of source code must retain the above copyright |**
  12. **| notice, this list of conditions and the following disclaimer. |**
  13. **| * Redistributions in binary form must reproduce the above copyright |**
  14. **| notice, this list of conditions and the following disclaimer in |**
  15. **| the documentation and/or other materials provided with the |**
  16. **| distribution. |**
  17. **| * Neither the name Texas Instruments nor the names of its |**
  18. **| contributors may be used to endorse or promote products derived |**
  19. **| from this software without specific prior written permission. |**
  20. **| |**
  21. **| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |**
  22. **| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |**
  23. **| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |**
  24. **| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |**
  25. **| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |**
  26. **| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |**
  27. **| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |**
  28. **| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |**
  29. **| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |**
  30. **| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |**
  31. **| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |**
  32. **| |**
  33. **+-----------------------------------------------------------------------+**
  34. ****************************************************************************/
  35. /** \file roamingMngrTypes.h
  36. * \brief Internal Roaming Manager Types API
  37. *
  38. * \see roamingMngr.c
  39. */
  40. /****************************************************************************
  41. * *
  42. * MODULE: Roaming Manager *
  43. * PURPOSE: Roaming Manager Module Types * * *
  44. ****************************************************************************/
  45. #ifndef _ROAMING_MNGR_TYPES_H_
  46. #define _ROAMING_MNGR_TYPES_H_
  47. /* Constants */
  48. /* Enumerations */
  49. /* Typedefs */
  50. /* configuration of Roaming manager */
  51. #define ROAMING_ENABLED 1
  52. #define ROAMING_DISABLED 0
  53. #pragma pack(1)
  54. typedef struct
  55. {
  56. UINT16 enableDisable; /* ROAMING_ENABLED, ROAMING_DISABLED - BOOL is not used,
  57. beacuse of misdefinition between the Driver and CU */
  58. UINT16 lowPassFilterRoamingAttempt; /* Time to wait in sec, before roaming due to the low connection quality */
  59. INT8 apQualityThreshold; /* Quality indicator (RSSI) to be used when comparing AP List matching quality */
  60. } roamingMngrConfig_t;
  61. #pragma pack()
  62. #pragma pack(1)
  63. typedef struct
  64. {
  65. /* Roaming trigger thresholds */
  66. /* Note - It's the applicatio's responsibility to chage the threshold when Voice is On */
  67. UINT8 dataRetryThreshold; /* Consecutive number of TX retries */
  68. UINT8 numExpectedTbttForBSSLoss; /* number of expected TBTTs for BSS Loss event */
  69. UINT8 txRateThreshold; /* TX rate (fallback) threshold */
  70. INT8 lowRssiThreshold; /* low RSSI threshold */
  71. UINT8 lowSnrThreshold; /* low SNR threshold */
  72. INT8 lowQualityForBackgroungScanCondition; /* Indicator used to increase the background scan period when quality is low. */
  73. INT8 normalQualityForBackgroungScanCondition; /* Indicator used to reduce the background scan period when quality is normal. */
  74. UINT8 rssiFilterWeight; /* last RSSI weight in the AVG calculation */
  75. UINT8 snrFilterWeight; /* last SNR weight in the AVG calculation */
  76. } roamingMngrThresholdsConfig_t;
  77. #pragma pack()
  78. #pragma pack(1)
  79. typedef struct
  80. {
  81. roamingMngrConfig_t roamingMngrConfig;
  82. roamingMngrThresholdsConfig_t roamingMngrThresholdsConfig;
  83. } roamingMngrConfigParams_t;
  84. #pragma pack()
  85. #endif /* _ROAMING_MNGR_TYPES_H_*/