wme.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * IEEE 802.11 driver (80211.o) - QoS datatypes
  3. * Copyright 2004, Instant802 Networks, Inc.
  4. * Copyright 2005, Devicescape Software, Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef _WME_H
  11. #define _WME_H
  12. #include <linux/netdevice.h>
  13. #include "ieee80211_i.h"
  14. #define QOS_CONTROL_LEN 2
  15. #define QOS_CONTROL_ACK_POLICY_NORMAL 0
  16. #define QOS_CONTROL_ACK_POLICY_NOACK 1
  17. #define QOS_CONTROL_TID_MASK 0x0f
  18. #define QOS_CONTROL_ACK_POLICY_SHIFT 5
  19. #define QOS_CONTROL_TAG1D_MASK 0x07
  20. static inline int WLAN_FC_IS_QOS_DATA(u16 fc)
  21. {
  22. return (fc & 0x8C) == 0x88;
  23. }
  24. #ifdef CONFIG_NET_SCHED
  25. void ieee80211_install_qdisc(struct net_device *dev);
  26. int ieee80211_qdisc_installed(struct net_device *dev);
  27. int ieee80211_wme_register(void);
  28. void ieee80211_wme_unregister(void);
  29. #else
  30. static inline void ieee80211_install_qdisc(struct net_device *dev)
  31. {
  32. }
  33. static inline int ieee80211_qdisc_installed(struct net_device *dev)
  34. {
  35. return 0;
  36. }
  37. static inline int ieee80211_wme_register(void)
  38. {
  39. return 0;
  40. }
  41. static inline void ieee80211_wme_unregister(void)
  42. {
  43. }
  44. #endif /* CONFIG_NET_SCHED */
  45. #endif /* _WME_H */