aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/p54common.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/p54/p54common.h')
-rw-r--r--drivers/net/wireless/p54/p54common.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/drivers/net/wireless/p54/p54common.h b/drivers/net/wireless/p54/p54common.h
index 5a68fdae7730..f5729de83fe1 100644
--- a/drivers/net/wireless/p54/p54common.h
+++ b/drivers/net/wireless/p54/p54common.h
@@ -84,9 +84,6 @@ struct bootrec_desc {
84#define BR_CODE_END_OF_BRA 0xFF0000FF 84#define BR_CODE_END_OF_BRA 0xFF0000FF
85#define LEGACY_BR_CODE_END_OF_BRA 0xFFFFFFFF 85#define LEGACY_BR_CODE_END_OF_BRA 0xFFFFFFFF
86 86
87#define P54_HDR_FLAG_CONTROL BIT(15)
88#define P54_HDR_FLAG_CONTROL_OPSET (BIT(15) + BIT(0))
89
90#define P54_HDR_FLAG_DATA_ALIGN BIT(14) 87#define P54_HDR_FLAG_DATA_ALIGN BIT(14)
91#define P54_HDR_FLAG_DATA_OUT_PROMISC BIT(0) 88#define P54_HDR_FLAG_DATA_OUT_PROMISC BIT(0)
92#define P54_HDR_FLAG_DATA_OUT_TIMESTAMP BIT(1) 89#define P54_HDR_FLAG_DATA_OUT_TIMESTAMP BIT(1)
@@ -178,6 +175,11 @@ struct pda_pa_curve_data {
178 u8 data[0]; 175 u8 data[0];
179} __attribute__ ((packed)); 176} __attribute__ ((packed));
180 177
178struct pda_rssi_cal_entry {
179 __le16 mul;
180 __le16 add;
181} __attribute__ ((packed));
182
181/* 183/*
182 * this defines the PDR codes used to build PDAs as defined in document 184 * this defines the PDR codes used to build PDAs as defined in document
183 * number 553155. The current implementation mirrors version 1.1 of the 185 * number 553155. The current implementation mirrors version 1.1 of the
@@ -355,6 +357,11 @@ struct p54_tx_data {
355 u8 align[0]; 357 u8 align[0];
356} __attribute__ ((packed)); 358} __attribute__ ((packed));
357 359
360/* unit is ms */
361#define P54_TX_FRAME_LIFETIME 2000
362#define P54_TX_TIMEOUT 4000
363#define P54_STATISTICS_UPDATE 5000
364
358#define P54_FILTER_TYPE_NONE 0 365#define P54_FILTER_TYPE_NONE 0
359#define P54_FILTER_TYPE_STATION BIT(0) 366#define P54_FILTER_TYPE_STATION BIT(0)
360#define P54_FILTER_TYPE_IBSS BIT(1) 367#define P54_FILTER_TYPE_IBSS BIT(1)
@@ -424,22 +431,18 @@ struct p54_scan {
424 u8 dup_16qam; 431 u8 dup_16qam;
425 u8 dup_64qam; 432 u8 dup_64qam;
426 union { 433 union {
427 struct { 434 struct pda_rssi_cal_entry v1_rssi;
428 __le16 rssical_mul;
429 __le16 rssical_add;
430 } v1 __attribute__ ((packed));
431 435
432 struct { 436 struct {
433 __le32 basic_rate_mask; 437 __le32 basic_rate_mask;
434 u8 rts_rates[8]; 438 u8 rts_rates[8];
435 __le16 rssical_mul; 439 struct pda_rssi_cal_entry rssi;
436 __le16 rssical_add;
437 } v2 __attribute__ ((packed)); 440 } v2 __attribute__ ((packed));
438 } __attribute__ ((packed)); 441 } __attribute__ ((packed));
439} __attribute__ ((packed)); 442} __attribute__ ((packed));
440 443
441#define P54_SCAN_V1_LEN (sizeof(struct p54_scan)-12) 444#define P54_SCAN_V1_LEN 0x70
442#define P54_SCAN_V2_LEN (sizeof(struct p54_scan)) 445#define P54_SCAN_V2_LEN 0x7c
443 446
444struct p54_led { 447struct p54_led {
445 __le16 mode; 448 __le16 mode;