Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
hw.h
Go to the documentation of this file.
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>
10 #include <net/cfg80211.h>
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 */
24 struct orinoco_private;
25 
27  size_t fw_name_len, u32 *hw_ver);
31 void orinoco_get_ratemode_cfg(int ratemode, int *bitrate, int *automatic);
32 
40 int __orinoco_hw_set_tkip_key(struct orinoco_private *priv, int key_idx,
41  int set_tx, u8 *key, u8 *rsc, size_t rsc_len,
42  u8 *tsc, size_t tsc_len);
43 int orinoco_clear_tkip_key(struct orinoco_private *priv, int key_idx);
45  struct net_device *dev,
46  int mc_count, int promisc);
48  char buf[IW_ESSID_MAX_SIZE + 1]);
51  int *numrates, s32 *rates, int max);
53  const struct cfg80211_ssid *ssid);
57  u8 *addr);
58 
59 #endif /* _ORINOCO_HW_H_ */