]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ath9k: use u8 for the tx key index
authorFelix Fietkau <nbd@openwrt.org>
Sat, 27 Aug 2011 22:32:21 +0000 (00:32 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 30 Aug 2011 19:38:53 +0000 (15:38 -0400)
This saves some space in struct ath_frame_info

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9002_mac.c
drivers/net/wireless/ath/ath9k/ar9003_mac.c
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/mac.h

index 45b262fe2c259c1f3d7556a4dec12022925b0d36..33deb0d574b088e27c6fd7b8d1a5f89947a33145 100644 (file)
@@ -273,7 +273,7 @@ static int ar9002_hw_proc_txdesc(struct ath_hw *ah, void *ds,
 
 static void ar9002_hw_set11n_txdesc(struct ath_hw *ah, void *ds,
                                    u32 pktLen, enum ath9k_pkt_type type,
-                                   u32 txPower, u32 keyIx,
+                                   u32 txPower, u8 keyIx,
                                    enum ath9k_key_type keyType, u32 flags)
 {
        struct ar5416_desc *ads = AR5416DESC(ds);
index 8ace36e77399137943510b95ad3f74a3575d4aba..d08ab930e430311663861025cf36794749c0e313 100644 (file)
@@ -312,7 +312,7 @@ static int ar9003_hw_proc_txdesc(struct ath_hw *ah, void *ds,
 
 static void ar9003_hw_set11n_txdesc(struct ath_hw *ah, void *ds,
                u32 pktlen, enum ath9k_pkt_type type, u32 txpower,
-               u32 keyIx, enum ath9k_key_type keyType, u32 flags)
+               u8 keyIx, enum ath9k_key_type keyType, u32 flags)
 {
        struct ar9003_txc *ads = (struct ar9003_txc *) ds;
 
index 3a893e19d6c366056c2ca6a30f51d4974170e7b3..d961f11201e948f4f293d11fdb6d5752136a977b 100644 (file)
@@ -207,8 +207,8 @@ struct ath_atx_ac {
 
 struct ath_frame_info {
        int framelen;
-       u32 keyix;
        enum ath9k_key_type keytype;
+       u8 keyix;
        u8 retries;
        u16 seqno;
 };
index 3aa3fb1917758cb8ff916dbc6236fb8bd9f67f08..c8af86c795e55d18d6d03daa993db465eae08292 100644 (file)
@@ -623,7 +623,7 @@ struct ath_hw_ops {
                           struct ath_tx_status *ts);
        void (*set11n_txdesc)(struct ath_hw *ah, void *ds,
                              u32 pktLen, enum ath9k_pkt_type type,
-                             u32 txPower, u32 keyIx,
+                             u32 txPower, u8 keyIx,
                              enum ath9k_key_type keyType,
                              u32 flags);
        void (*set11n_ratescenario)(struct ath_hw *ah, void *ds,
index 2c43e13da002cf66f91c542a4b0da486f5378d07..acb83bfd05a08b24d71aff41a1e411172e4e9374 100644 (file)
@@ -195,7 +195,7 @@ struct ath_htc_rx_status {
 #define ATH9K_RX_DECRYPT_BUSY     0x40
 
 #define ATH9K_RXKEYIX_INVALID  ((u8)-1)
-#define ATH9K_TXKEYIX_INVALID  ((u32)-1)
+#define ATH9K_TXKEYIX_INVALID  ((u8)-1)
 
 enum ath9k_phyerr {
        ATH9K_PHYERR_UNDERRUN             = 0,  /* Transmit underrun */