Merge branch 'for-linus-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/mason...
[deliverable/linux.git] / drivers / net / wireless / intersil / orinoco / hw.h
CommitLineData
712a4342
DK
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
8#include <linux/types.h>
9#include <linux/wireless.h>
c63cdbe8 10#include <net/cfg80211.h>
712a4342
DK
11
12/* Hardware BAPs */
13#define USER_BAP 0
14#define IRQ_BAP 1
15
16/* WEP key sizes */
17#define SMALL_KEY_SIZE 5
18#define LARGE_KEY_SIZE 13
19
20/* Number of supported channels */
21#define NUM_CHANNELS 14
22
23/* Forward declarations */
24struct orinoco_private;
712a4342 25
3414fc3f
DK
26int determine_fw_capabilities(struct orinoco_private *priv, char *fw_name,
27 size_t fw_name_len, u32 *hw_ver);
e9e3d010 28int orinoco_hw_read_card_settings(struct orinoco_private *priv, u8 *dev_addr);
42a51b93 29int orinoco_hw_allocate_fid(struct orinoco_private *priv);
712a4342
DK
30int orinoco_get_bitratemode(int bitrate, int automatic);
31void orinoco_get_ratemode_cfg(int ratemode, int *bitrate, int *automatic);
32
721aa2f7 33int orinoco_hw_program_rids(struct orinoco_private *priv);
712a4342
DK
34int orinoco_hw_get_tkip_iv(struct orinoco_private *priv, int key, u8 *tsc);
35int __orinoco_hw_set_bitrate(struct orinoco_private *priv);
36int orinoco_hw_get_act_bitrate(struct orinoco_private *priv, int *bitrate);
37int __orinoco_hw_set_wap(struct orinoco_private *priv);
38int __orinoco_hw_setup_wepkeys(struct orinoco_private *priv);
39int __orinoco_hw_setup_enc(struct orinoco_private *priv);
98e5f404 40int __orinoco_hw_set_tkip_key(struct orinoco_private *priv, int key_idx,
c1e5f471
JB
41 int set_tx, const u8 *key, const u8 *rsc,
42 size_t rsc_len, const u8 *tsc, size_t tsc_len);
712a4342
DK
43int orinoco_clear_tkip_key(struct orinoco_private *priv, int key_idx);
44int __orinoco_hw_set_multicast_list(struct orinoco_private *priv,
655ffee2 45 struct net_device *dev,
712a4342
DK
46 int mc_count, int promisc);
47int orinoco_hw_get_essid(struct orinoco_private *priv, int *active,
933d5943 48 char buf[IW_ESSID_MAX_SIZE + 1]);
712a4342
DK
49int orinoco_hw_get_freq(struct orinoco_private *priv);
50int orinoco_hw_get_bitratelist(struct orinoco_private *priv,
51 int *numrates, s32 *rates, int max);
c63cdbe8
DK
52int orinoco_hw_trigger_scan(struct orinoco_private *priv,
53 const struct cfg80211_ssid *ssid);
07542d08
DK
54int orinoco_hw_disassociate(struct orinoco_private *priv,
55 u8 *addr, u16 reason_code);
2b260351
DK
56int orinoco_hw_get_current_bssid(struct orinoco_private *priv,
57 u8 *addr);
712a4342
DK
58
59#endif /* _ORINOCO_HW_H_ */
This page took 0.906933 seconds and 5 git commands to generate.