hw.h 1.7 KB

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