diff options
author | Sujith Manoharan <Sujith.Manoharan@atheros.com> | 2011-04-27 07:43:23 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-28 14:53:20 -0400 |
commit | a55bb94aa37782fe9457751a3e508b1129fbbc7a (patch) | |
tree | 0dd261242894415036d8a2f12de8031eafbc58e9 /drivers/net/wireless/ath/ath9k | |
parent | 155dcda6f11a58e4e1443d5fad530b0bf68370b7 (diff) |
ath9k_htc: Add a new WMI command to set a rate mask
This patch adds WMI_BITRATE_MASK_CMDID which can be
used by the set_bitrate_mask() handler.
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')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc.h | 7 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/wmi.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/wmi.h | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc.h b/drivers/net/wireless/ath/ath9k/htc.h index 55f4bb39c9ec..6bb71e311a4b 100644 --- a/drivers/net/wireless/ath/ath9k/htc.h +++ b/drivers/net/wireless/ath/ath9k/htc.h | |||
@@ -171,6 +171,13 @@ struct ath9k_htc_target_rate { | |||
171 | struct ath9k_htc_rate rates; | 171 | struct ath9k_htc_rate rates; |
172 | }; | 172 | }; |
173 | 173 | ||
174 | struct ath9k_htc_target_rate_mask { | ||
175 | u8 vif_index; | ||
176 | u8 band; | ||
177 | __be32 mask; | ||
178 | u16 pad; | ||
179 | } __packed; | ||
180 | |||
174 | struct ath9k_htc_target_int_stats { | 181 | struct ath9k_htc_target_int_stats { |
175 | __be32 rx; | 182 | __be32 rx; |
176 | __be32 rxorn; | 183 | __be32 rxorn; |
diff --git a/drivers/net/wireless/ath/ath9k/wmi.c b/drivers/net/wireless/ath/ath9k/wmi.c index 463b76abbdf6..f9b1eb4853c4 100644 --- a/drivers/net/wireless/ath/ath9k/wmi.c +++ b/drivers/net/wireless/ath/ath9k/wmi.c | |||
@@ -79,6 +79,8 @@ static const char *wmi_cmd_to_name(enum wmi_cmd_id wmi_cmd) | |||
79 | return "WMI_TX_STATS_CMDID"; | 79 | return "WMI_TX_STATS_CMDID"; |
80 | case WMI_RX_STATS_CMDID: | 80 | case WMI_RX_STATS_CMDID: |
81 | return "WMI_RX_STATS_CMDID"; | 81 | return "WMI_RX_STATS_CMDID"; |
82 | case WMI_BITRATE_MASK_CMDID: | ||
83 | return "WMI_BITRATE_MASK_CMDID"; | ||
82 | } | 84 | } |
83 | 85 | ||
84 | return "Bogus"; | 86 | return "Bogus"; |
diff --git a/drivers/net/wireless/ath/ath9k/wmi.h b/drivers/net/wireless/ath/ath9k/wmi.h index 5dfc213e4524..6095eeb6e025 100644 --- a/drivers/net/wireless/ath/ath9k/wmi.h +++ b/drivers/net/wireless/ath/ath9k/wmi.h | |||
@@ -111,6 +111,7 @@ enum wmi_cmd_id { | |||
111 | WMI_INT_STATS_CMDID, | 111 | WMI_INT_STATS_CMDID, |
112 | WMI_TX_STATS_CMDID, | 112 | WMI_TX_STATS_CMDID, |
113 | WMI_RX_STATS_CMDID, | 113 | WMI_RX_STATS_CMDID, |
114 | WMI_BITRATE_MASK_CMDID, | ||
114 | }; | 115 | }; |
115 | 116 | ||
116 | enum wmi_event_id { | 117 | enum wmi_event_id { |