ath9k_htc: Add a new WMI command to set a rate mask
authorSujith Manoharan <Sujith.Manoharan@atheros.com>
Wed, 27 Apr 2011 11:43:23 +0000 (17:13 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 28 Apr 2011 18:53:20 +0000 (14:53 -0400)
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>
drivers/net/wireless/ath/ath9k/htc.h
drivers/net/wireless/ath/ath9k/wmi.c
drivers/net/wireless/ath/ath9k/wmi.h

index 55f4bb39c9ec031237a2c51765542d95d83eb8de..6bb71e311a4b473fc182481079a5709670d9cd70 100644 (file)
@@ -171,6 +171,13 @@ struct ath9k_htc_target_rate {
        struct ath9k_htc_rate rates;
 };
 
+struct ath9k_htc_target_rate_mask {
+       u8 vif_index;
+       u8 band;
+       __be32 mask;
+       u16 pad;
+} __packed;
+
 struct ath9k_htc_target_int_stats {
        __be32 rx;
        __be32 rxorn;
index 463b76abbdf6060f131dc80d8e16c879aec5ee9e..f9b1eb4853c4a93a1f964e239a41349e5e7fa0cf 100644 (file)
@@ -79,6 +79,8 @@ static const char *wmi_cmd_to_name(enum wmi_cmd_id wmi_cmd)
                return "WMI_TX_STATS_CMDID";
        case WMI_RX_STATS_CMDID:
                return "WMI_RX_STATS_CMDID";
+       case WMI_BITRATE_MASK_CMDID:
+               return "WMI_BITRATE_MASK_CMDID";
        }
 
        return "Bogus";
index 5dfc213e452420285f25581ba3e271278e2200f8..6095eeb6e025fdd08f971da826e0a5680b3a2f98 100644 (file)
@@ -111,6 +111,7 @@ enum wmi_cmd_id {
        WMI_INT_STATS_CMDID,
        WMI_TX_STATS_CMDID,
        WMI_RX_STATS_CMDID,
+       WMI_BITRATE_MASK_CMDID,
 };
 
 enum wmi_event_id {