Go to the documentation of this file.
23 #define RTL8180_MODULE_NAME "r8180"
24 #define DMESG(x,a...) printk(KERN_INFO RTL8180_MODULE_NAME ": " x "\n", ## a)
25 #define DMESGW(x,a...) printk(KERN_WARNING RTL8180_MODULE_NAME ": WW:" x "\n", ## a)
26 #define DMESGE(x,a...) printk(KERN_WARNING RTL8180_MODULE_NAME ": EE:" x "\n", ## a)
28 #include <linux/module.h>
29 #include <linux/kernel.h>
33 #include <linux/sched.h>
34 #include <linux/types.h>
35 #include <linux/slab.h>
36 #include <linux/netdevice.h>
37 #include <linux/pci.h>
40 #include <linux/rtnetlink.h>
41 #include <linux/wireless.h>
44 #include <linux/if_arp.h>
45 #include "ieee80211/ieee80211.h"
52 #define RTL_IOCTL_WPA_SUPPLICANT SIOCIWFIRSTPRIV+30
54 #define DEFAULT_FRAG_THRESHOLD 2342U
55 #define MIN_FRAG_THRESHOLD 256U
56 #define DEFAULT_RTS_THRESHOLD 2342U
57 #define MIN_RTS_THRESHOLD 0U
58 #define MAX_RTS_THRESHOLD 2342U
59 #define DEFAULT_BEACONINTERVAL 0x64U
61 #define DEFAULT_RETRY_RTS 7
62 #define DEFAULT_RETRY_DATA 7
64 #define BEACON_QUEUE 6
69 #define sAckCtsLng 112 // bits in ACK and CTS frames
71 #define RATE_ADAPTIVE_TIMER_PERIOD 300
96 #define AC0_BE 0 // ACI: 0x00 // Best Effort
97 #define AC1_BK 1 // ACI: 0x01 // Background
98 #define AC2_VI 2 // ACI: 0x10 // Video
99 #define AC3_VO 3 // ACI: 0x11 // Voice
100 #define AC_MAX 4 // Max: define total number; Should not to be used as a real enum.
218 #define MAX_LD_SLOT_NUM 10
219 #define KEEP_ALIVE_INTERVAL 20 // in seconds.
220 #define CHECK_FOR_HANG_PERIOD 2 //be equal to watchdog check time
221 #define DEFAULT_KEEP_ALIVE_LEVEL 1
222 #define DEFAULT_SLOT_NUM 2
223 #define POWER_PROFILE_AC 0
224 #define POWER_PROFILE_BATTERY 1
642 #define MANAGE_PRIORITY 0
643 #define BK_PRIORITY 1
644 #define BE_PRIORITY 2
645 #define VI_PRIORITY 3
646 #define VO_PRIORITY 4
647 #define HI_PRIORITY 5
648 #define BEACON_PRIORITY 6
650 #define LOW_PRIORITY VI_PRIORITY
651 #define NORM_PRIORITY VO_PRIORITY
653 #define AC2Q(_ac) (((_ac) == WME_AC_VO) ? VO_PRIORITY : \
654 ((_ac) == WME_AC_VI) ? VI_PRIORITY : \
655 ((_ac) == WME_AC_BK) ? BK_PRIORITY : \
659 short morefrag,
short fragdesc,
int rate);