Go to the documentation of this file.
27 #include <linux/list.h>
28 #include <linux/bitops.h>
31 #define DRIVER_NAME "wl1251"
32 #define DRIVER_PREFIX DRIVER_NAME ": "
53 #define DEBUG_LEVEL (DEBUG_NONE)
55 #define DEBUG_DUMP_LIMIT 1024
57 #define wl1251_error(fmt, arg...) \
58 printk(KERN_ERR DRIVER_PREFIX "ERROR " fmt "\n", ##arg)
60 #define wl1251_warning(fmt, arg...) \
61 printk(KERN_WARNING DRIVER_PREFIX "WARNING " fmt "\n", ##arg)
63 #define wl1251_notice(fmt, arg...) \
64 printk(KERN_INFO DRIVER_PREFIX fmt "\n", ##arg)
66 #define wl1251_info(fmt, arg...) \
67 printk(KERN_DEBUG DRIVER_PREFIX fmt "\n", ##arg)
69 #define wl1251_debug(level, fmt, arg...) \
71 if (level & DEBUG_LEVEL) \
72 printk(KERN_DEBUG DRIVER_PREFIX fmt "\n", ##arg); \
75 #define wl1251_dump(level, prefix, buf, len) \
77 if (level & DEBUG_LEVEL) \
78 print_hex_dump(KERN_DEBUG, DRIVER_PREFIX prefix, \
79 DUMP_PREFIX_OFFSET, 16, 1, \
81 min_t(size_t, len, DEBUG_DUMP_LIMIT), \
85 #define wl1251_dump_ascii(level, prefix, buf, len) \
87 if (level & DEBUG_LEVEL) \
88 print_hex_dump(KERN_DEBUG, DRIVER_PREFIX prefix, \
89 DUMP_PREFIX_OFFSET, 16, 1, \
91 min_t(size_t, len, DEBUG_DUMP_LIMIT), \
95 #define WL1251_DEFAULT_RX_CONFIG (CFG_UNI_FILTER_EN | \
98 #define WL1251_DEFAULT_RX_FILTER (CFG_RX_PRSP_EN | \
106 #define WL1251_BUSY_WORD_LEN 8
405 #define DEFAULT_HW_GEN_MODULATION_TYPE CCK_LONG
406 #define DEFAULT_HW_GEN_TX_RATE RATE_2MBPS
407 #define JOIN_TIMEOUT 5000
409 #define WL1251_DEFAULT_POWER_LEVEL 20
411 #define WL1251_TX_QUEUE_LOW_WATERMARK 10
412 #define WL1251_TX_QUEUE_HIGH_WATERMARK 25
414 #define WL1251_DEFAULT_BEACON_INT 100
415 #define WL1251_DEFAULT_DTIM_PERIOD 1
417 #define WL1251_DEFAULT_CHANNEL 0
419 #define WL1251_DEFAULT_BET_CONSECUTIVE 10
421 #define CHIP_ID_1251_PG10 (0x7010101)
422 #define CHIP_ID_1251_PG11 (0x7020101)
423 #define CHIP_ID_1251_PG12 (0x7030101)
424 #define CHIP_ID_1271_PG10 (0x4030101)
425 #define CHIP_ID_1271_PG20 (0x4030111)
427 #define WL1251_FW_NAME "wl1251-fw.bin"
428 #define WL1251_NVS_NAME "wl1251-nvs.bin"
430 #define WL1251_POWER_ON_SLEEP 10
432 #define WL1251_PART_DOWN_MEM_START 0x0
433 #define WL1251_PART_DOWN_MEM_SIZE 0x16800
434 #define WL1251_PART_DOWN_REG_START REGISTERS_BASE
435 #define WL1251_PART_DOWN_REG_SIZE REGISTERS_DOWN_SIZE
437 #define WL1251_PART_WORK_MEM_START 0x28000
438 #define WL1251_PART_WORK_MEM_SIZE 0x14000
439 #define WL1251_PART_WORK_REG_START REGISTERS_BASE
440 #define WL1251_PART_WORK_REG_SIZE REGISTERS_WORK_SIZE
442 #define WL1251_DEFAULT_LOW_RSSI_WEIGHT 10
443 #define WL1251_DEFAULT_LOW_RSSI_DEPTH 10