0001
0002
0003
0004
0005 #ifndef _ORINOCO_HW_H_
0006 #define _ORINOCO_HW_H_
0007
0008 #include <linux/types.h>
0009 #include <linux/wireless.h>
0010 #include <net/cfg80211.h>
0011
0012
0013 #define USER_BAP 0
0014 #define IRQ_BAP 1
0015
0016
0017 #define SMALL_KEY_SIZE 5
0018 #define LARGE_KEY_SIZE 13
0019
0020
0021 #define NUM_CHANNELS 14
0022
0023
0024 struct orinoco_private;
0025
0026 int determine_fw_capabilities(struct orinoco_private *priv, char *fw_name,
0027 size_t fw_name_len, u32 *hw_ver);
0028 int orinoco_hw_read_card_settings(struct orinoco_private *priv, u8 *dev_addr);
0029 int orinoco_hw_allocate_fid(struct orinoco_private *priv);
0030 int orinoco_get_bitratemode(int bitrate, int automatic);
0031 void orinoco_get_ratemode_cfg(int ratemode, int *bitrate, int *automatic);
0032
0033 int orinoco_hw_program_rids(struct orinoco_private *priv);
0034 int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc);
0035 int __orinoco_hw_set_bitrate(struct orinoco_private *priv);
0036 int orinoco_hw_get_act_bitrate(struct orinoco_private *priv, int *bitrate);
0037 int __orinoco_hw_set_wap(struct orinoco_private *priv);
0038 int __orinoco_hw_setup_wepkeys(struct orinoco_private *priv);
0039 int __orinoco_hw_setup_enc(struct orinoco_private *priv);
0040 int __orinoco_hw_set_tkip_key(struct orinoco_private *priv, int key_idx,
0041 int set_tx, const u8 *key, size_t key_len,
0042 const u8 *rsc, size_t rsc_len,
0043 const u8 *tsc, size_t tsc_len);
0044 int orinoco_clear_tkip_key(struct orinoco_private *priv, int key_idx);
0045 int __orinoco_hw_set_multicast_list(struct orinoco_private *priv,
0046 struct net_device *dev,
0047 int mc_count, int promisc);
0048 int orinoco_hw_get_essid(struct orinoco_private *priv, int *active,
0049 char buf[IW_ESSID_MAX_SIZE + 1]);
0050 int orinoco_hw_get_freq(struct orinoco_private *priv);
0051 int orinoco_hw_get_bitratelist(struct orinoco_private *priv,
0052 int *numrates, s32 *rates, int max);
0053 int orinoco_hw_trigger_scan(struct orinoco_private *priv,
0054 const struct cfg80211_ssid *ssid);
0055 int orinoco_hw_disassociate(struct orinoco_private *priv,
0056 u8 *addr, u16 reason_code);
0057 int orinoco_hw_get_current_bssid(struct orinoco_private *priv,
0058 u8 *addr);
0059
0060 #endif