diff options
author | Sujith Manoharan <Sujith.Manoharan@atheros.com> | 2011-04-13 01:55:18 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-13 15:23:30 -0400 |
commit | 16c56ae87509d9bbcd8c711dc4f99b38c234d6c5 (patch) | |
tree | 9540dc15bb3371ad17f2c4d6032c606b327a27a4 /drivers/net/wireless/ath/ath9k/wmi.h | |
parent | e8e3860765641d5e9d1607ec50191cb33c28371d (diff) |
ath9k_htc: Add a new WMI event WMI_TXSTATUS_EVENTID
This event will be generated by the target for packet completions.
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/wmi.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/wmi.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/wmi.h b/drivers/net/wireless/ath/ath9k/wmi.h index a81d554edb8..8c877dc2e2e 100644 --- a/drivers/net/wireless/ath/ath9k/wmi.h +++ b/drivers/net/wireless/ath/ath9k/wmi.h | |||
@@ -41,6 +41,44 @@ struct wmi_event_swba { | |||
41 | __be64 tsf; | 41 | __be64 tsf; |
42 | u8 beacon_pending; | 42 | u8 beacon_pending; |
43 | }; | 43 | }; |
44 | |||
45 | /* | ||
46 | * 64 - HTC header - WMI header - 1 / txstatus | ||
47 | * And some other hdr. space is also accounted for. | ||
48 | * 13 seems to be the magic number. | ||
49 | */ | ||
50 | #define HTC_MAX_TX_STATUS 13 | ||
51 | |||
52 | #define ATH9K_HTC_TXSTAT_ACK BIT(0) | ||
53 | #define ATH9K_HTC_TXSTAT_FILT BIT(1) | ||
54 | #define ATH9K_HTC_TXSTAT_RTC_CTS BIT(2) | ||
55 | #define ATH9K_HTC_TXSTAT_MCS BIT(3) | ||
56 | #define ATH9K_HTC_TXSTAT_CW40 BIT(4) | ||
57 | #define ATH9K_HTC_TXSTAT_SGI BIT(5) | ||
58 | |||
59 | /* | ||
60 | * Legacy rates are indicated as indices. | ||
61 | * HT rates are indicated as dot11 numbers. | ||
62 | * This allows us to resrict the rate field | ||
63 | * to 4 bits. | ||
64 | */ | ||
65 | #define ATH9K_HTC_TXSTAT_RATE 0x0f | ||
66 | #define ATH9K_HTC_TXSTAT_RATE_S 0 | ||
67 | |||
68 | #define ATH9K_HTC_TXSTAT_EPID 0xf0 | ||
69 | #define ATH9K_HTC_TXSTAT_EPID_S 4 | ||
70 | |||
71 | struct __wmi_event_txstatus { | ||
72 | u8 cookie; | ||
73 | u8 ts_rate; /* Also holds EP ID */ | ||
74 | u8 ts_flags; | ||
75 | }; | ||
76 | |||
77 | struct wmi_event_txstatus { | ||
78 | u8 cnt; | ||
79 | struct __wmi_event_txstatus txstatus[HTC_MAX_TX_STATUS]; | ||
80 | } __packed; | ||
81 | |||
44 | enum wmi_cmd_id { | 82 | enum wmi_cmd_id { |
45 | WMI_ECHO_CMDID = 0x0001, | 83 | WMI_ECHO_CMDID = 0x0001, |
46 | WMI_ACCESS_MEMORY_CMDID, | 84 | WMI_ACCESS_MEMORY_CMDID, |
@@ -82,6 +120,7 @@ enum wmi_event_id { | |||
82 | WMI_BMISS_EVENTID, | 120 | WMI_BMISS_EVENTID, |
83 | WMI_DELBA_EVENTID, | 121 | WMI_DELBA_EVENTID, |
84 | WMI_TXRATE_EVENTID, | 122 | WMI_TXRATE_EVENTID, |
123 | WMI_TXSTATUS_EVENTID, | ||
85 | }; | 124 | }; |
86 | 125 | ||
87 | #define MAX_CMD_NUMBER 62 | 126 | #define MAX_CMD_NUMBER 62 |