hw.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 orinoco_get_bitratemode(int bitrate, int automatic);
  21. void orinoco_get_ratemode_cfg(int ratemode, int *bitrate, int *automatic);
  22. int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc);
  23. int __orinoco_hw_set_bitrate(struct orinoco_private *priv);
  24. int orinoco_hw_get_act_bitrate(struct orinoco_private *priv, int *bitrate);
  25. int __orinoco_hw_set_wap(struct orinoco_private *priv);
  26. int __orinoco_hw_setup_wepkeys(struct orinoco_private *priv);
  27. int __orinoco_hw_setup_enc(struct orinoco_private *priv);
  28. int __orinoco_hw_set_tkip_key(hermes_t *hw, int key_idx, int set_tx,
  29. u8 *key, u8 *rsc, u8 *tsc);
  30. int orinoco_clear_tkip_key(struct orinoco_private *priv, int key_idx);
  31. int __orinoco_hw_set_multicast_list(struct orinoco_private *priv,
  32. struct dev_addr_list *mc_list,
  33. int mc_count, int promisc);
  34. int orinoco_hw_get_essid(struct orinoco_private *priv, int *active,
  35. char buf[IW_ESSID_MAX_SIZE+1]);
  36. int orinoco_hw_get_freq(struct orinoco_private *priv);
  37. int orinoco_hw_get_bitratelist(struct orinoco_private *priv,
  38. int *numrates, s32 *rates, int max);
  39. #endif /* _ORINOCO_HW_H_ */