rtl819x_BA.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /******************************************************************************
  2. * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
  3. *
  4. * This program is distributed in the hope that it will be useful, but WITHOUT
  5. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  6. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  7. * more details.
  8. *
  9. * The full GNU General Public License is included in this distribution in the
  10. * file called LICENSE.
  11. *
  12. * Contact Information:
  13. * wlanfae <wlanfae@realtek.com>
  14. ******************************************************************************/
  15. #ifndef _BATYPE_H_
  16. #define _BATYPE_H_
  17. #define BA_SETUP_TIMEOUT 200
  18. #define BA_POLICY_DELAYED 0
  19. #define BA_POLICY_IMMEDIATE 1
  20. #define ADDBA_STATUS_SUCCESS 0
  21. #define ADDBA_STATUS_REFUSED 37
  22. #define ADDBA_STATUS_INVALID_PARAM 38
  23. #define DELBA_REASON_END_BA 37
  24. #define DELBA_REASON_UNKNOWN_BA 38
  25. #define DELBA_REASON_TIMEOUT 39
  26. union sequence_control {
  27. u16 ShortData;
  28. struct {
  29. u16 FragNum:4;
  30. u16 SeqNum:12;
  31. } field;
  32. };
  33. union ba_param_set {
  34. u8 charData[2];
  35. u16 shortData;
  36. struct {
  37. u16 AMSDU_Support:1;
  38. u16 BAPolicy:1;
  39. u16 TID:4;
  40. u16 BufferSize:10;
  41. } field;
  42. };
  43. union delba_param_set {
  44. u8 charData[2];
  45. u16 shortData;
  46. struct {
  47. u16 Reserved:11;
  48. u16 Initiator:1;
  49. u16 TID:4;
  50. } field;
  51. };
  52. struct ba_record {
  53. struct timer_list Timer;
  54. u8 bValid;
  55. u8 DialogToken;
  56. union ba_param_set BaParamSet;
  57. u16 BaTimeoutValue;
  58. union sequence_control BaStartSeqCtrl;
  59. };
  60. #endif