ar9170: update hardware definitions
authorChristian Lamparter <chunkeey@web.de>
Mon, 1 Jun 2009 19:41:36 +0000 (21:41 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Jun 2009 18:05:12 +0000 (14:05 -0400)
This patch only contains a few uncritical updates for the
hardware definition header.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ar9170/hw.h
drivers/net/wireless/ath/ar9170/mac.c

index 3293e0fb24fbc79a4a62cb3e7c75ace3f7b9ba76..3c8004fb7307596764c0aef3a54c1b35e4f09352 100644 (file)
@@ -207,7 +207,8 @@ enum ar9170_cmd {
 #define AR9170_MAC_REG_AC1_AC0_TXOP            (AR9170_MAC_REG_BASE + 0xB44)
 #define AR9170_MAC_REG_AC3_AC2_TXOP            (AR9170_MAC_REG_BASE + 0xB48)
 
-#define AR9170_MAC_REG_AMPDU_SET               (AR9170_MAC_REG_BASE + 0xba0)
+#define AR9170_MAC_REG_AMPDU_FACTOR            (AR9170_MAC_REG_BASE + 0xB9C)
+#define AR9170_MAC_REG_AMPDU_DENSITY           (AR9170_MAC_REG_BASE + 0xBA0)
 
 #define AR9170_MAC_REG_ACK_TABLE               (AR9170_MAC_REG_BASE + 0xC00)
 #define AR9170_MAC_REG_AMPDU_RX_THRESH         (AR9170_MAC_REG_BASE + 0xC50)
@@ -376,7 +377,6 @@ static inline u8 ar9170_get_decrypt_type(struct ar9170_rx_macstatus *t)
 #define AR9170_RX_ERROR_FATAL                  0x80
 
 struct ar9170_cmd_tx_status {
-       __le16 unkn;
        u8 dst[ETH_ALEN];
        __le32 rate;
        __le16 status;
@@ -394,6 +394,7 @@ struct ar9170_cmd_ba_failed_count {
 struct ar9170_cmd_response {
        u8 flag;
        u8 type;
+       __le16 padding;
 
        union {
                struct ar9170_cmd_tx_status             tx_status;
index 72c7b5d8957c994a8ea973835f0a84954fa63a92..706262fb0924a5f893b76d833405f21e027ce44e 100644 (file)
@@ -84,7 +84,7 @@ static int ar9170_set_ampdu_density(struct ar9170 *ar, u8 mpdudensity)
        val = 0x140a00 | (mpdudensity ? (mpdudensity + 1) : 0);
 
        ar9170_regwrite_begin(ar);
-       ar9170_regwrite(AR9170_MAC_REG_AMPDU_SET, val);
+       ar9170_regwrite(AR9170_MAC_REG_AMPDU_DENSITY, val);
        ar9170_regwrite_finish();
 
        return ar9170_regwrite_result();