hw.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* Encapsulate basic setting changes on Hermes hardware
  2. *
  3. * See copyright notice in main.c
  4. */
  5. #ifndef _ORINOCO_HW_H_
  6. #define _ORINOCO_HW_H_
  7. #include <linux/types.h>
  8. #include <linux/wireless.h>
  9. /* Hardware BAPs */
  10. #define USER_BAP 0
  11. #define IRQ_BAP 1
  12. /* WEP key sizes */
  13. #define SMALL_KEY_SIZE 5
  14. #define LARGE_KEY_SIZE 13
  15. /* Number of supported channels */
  16. #define NUM_CHANNELS 14
  17. /* Forward declarations */
  18. struct orinoco_private;
  19. struct dev_addr_list;
  20. int determine_fw_capabilities(struct orinoco_private *priv);
  21. int orinoco_get_bitratemode(int bitrate, int automatic);
  22. void orinoco_get_ratemode_cfg(int ratemode, int *bitrate, int *automatic);
  23. int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc);
  24. int __orinoco_hw_set_bitrate(struct orinoco_private *priv);
  25. int orinoco_hw_get_act_bitrate(struct orinoco_private *priv, int *bitrate);
  26. int __orinoco_hw_set_wap(struct orinoco_private *priv);
  27. int __orinoco_hw_setup_wepkeys(struct orinoco_private *priv);
  28. int __orinoco_hw_setup_enc(struct orinoco_private *priv);
  29. int __orinoco_hw_set_tkip_key(hermes_t *hw, int key_idx, int set_tx,
  30. u8 *key, u8 *rsc, u8 *tsc);
  31. int orinoco_clear_tkip_key(struct orinoco_private *priv, int key_idx);
  32. int __orinoco_hw_set_multicast_list(struct orinoco_private *priv,
  33. struct dev_addr_list *mc_list,
  34. int mc_count, int promisc);
  35. int orinoco_hw_get_essid(struct orinoco_private *priv, int *active,
  36. char buf[IW_ESSID_MAX_SIZE+1]);
  37. int orinoco_hw_get_freq(struct orinoco_private *priv);
  38. int orinoco_hw_get_bitratelist(struct orinoco_private *priv,
  39. int *numrates, s32 *rates, int max);
  40. #endif /* _ORINOCO_HW_H_ */