diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-08-27 18:32:21 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-08-30 15:38:53 -0400 |
commit | a75c0629716ea19ff934ef4ff1c31a4610bcb408 (patch) | |
tree | a6aa471b8860e0924a9470137c4726455eaa821e | |
parent | 29e76245d46ff530bb2b0311e9fc823fc07b1147 (diff) |
ath9k: use u8 for the tx key index
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>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9002_mac.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_mac.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/mac.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9002_mac.c b/drivers/net/wireless/ath/ath9k/ar9002_mac.c index 45b262fe2c25..33deb0d574b0 100644 --- a/drivers/net/wireless/ath/ath9k/ar9002_mac.c +++ b/drivers/net/wireless/ath/ath9k/ar9002_mac.c | |||
@@ -273,7 +273,7 @@ static int ar9002_hw_proc_txdesc(struct ath_hw *ah, void *ds, | |||
273 | 273 | ||
274 | static void ar9002_hw_set11n_txdesc(struct ath_hw *ah, void *ds, | 274 | static void ar9002_hw_set11n_txdesc(struct ath_hw *ah, void *ds, |
275 | u32 pktLen, enum ath9k_pkt_type type, | 275 | u32 pktLen, enum ath9k_pkt_type type, |
276 | u32 txPower, u32 keyIx, | 276 | u32 txPower, u8 keyIx, |
277 | enum ath9k_key_type keyType, u32 flags) | 277 | enum ath9k_key_type keyType, u32 flags) |
278 | { | 278 | { |
279 | struct ar5416_desc *ads = AR5416DESC(ds); | 279 | struct ar5416_desc *ads = AR5416DESC(ds); |
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mac.c b/drivers/net/wireless/ath/ath9k/ar9003_mac.c index 8ace36e77399..d08ab930e430 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c | |||
@@ -312,7 +312,7 @@ static int ar9003_hw_proc_txdesc(struct ath_hw *ah, void *ds, | |||
312 | 312 | ||
313 | static void ar9003_hw_set11n_txdesc(struct ath_hw *ah, void *ds, | 313 | static void ar9003_hw_set11n_txdesc(struct ath_hw *ah, void *ds, |
314 | u32 pktlen, enum ath9k_pkt_type type, u32 txpower, | 314 | u32 pktlen, enum ath9k_pkt_type type, u32 txpower, |
315 | u32 keyIx, enum ath9k_key_type keyType, u32 flags) | 315 | u8 keyIx, enum ath9k_key_type keyType, u32 flags) |
316 | { | 316 | { |
317 | struct ar9003_txc *ads = (struct ar9003_txc *) ds; | 317 | struct ar9003_txc *ads = (struct ar9003_txc *) ds; |
318 | 318 | ||
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index 3a893e19d6c3..d961f11201e9 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -207,8 +207,8 @@ struct ath_atx_ac { | |||
207 | 207 | ||
208 | struct ath_frame_info { | 208 | struct ath_frame_info { |
209 | int framelen; | 209 | int framelen; |
210 | u32 keyix; | ||
211 | enum ath9k_key_type keytype; | 210 | enum ath9k_key_type keytype; |
211 | u8 keyix; | ||
212 | u8 retries; | 212 | u8 retries; |
213 | u16 seqno; | 213 | u16 seqno; |
214 | }; | 214 | }; |
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 3aa3fb191775..c8af86c795e5 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -623,7 +623,7 @@ struct ath_hw_ops { | |||
623 | struct ath_tx_status *ts); | 623 | struct ath_tx_status *ts); |
624 | void (*set11n_txdesc)(struct ath_hw *ah, void *ds, | 624 | void (*set11n_txdesc)(struct ath_hw *ah, void *ds, |
625 | u32 pktLen, enum ath9k_pkt_type type, | 625 | u32 pktLen, enum ath9k_pkt_type type, |
626 | u32 txPower, u32 keyIx, | 626 | u32 txPower, u8 keyIx, |
627 | enum ath9k_key_type keyType, | 627 | enum ath9k_key_type keyType, |
628 | u32 flags); | 628 | u32 flags); |
629 | void (*set11n_ratescenario)(struct ath_hw *ah, void *ds, | 629 | void (*set11n_ratescenario)(struct ath_hw *ah, void *ds, |
diff --git a/drivers/net/wireless/ath/ath9k/mac.h b/drivers/net/wireless/ath/ath9k/mac.h index 2c43e13da002..acb83bfd05a0 100644 --- a/drivers/net/wireless/ath/ath9k/mac.h +++ b/drivers/net/wireless/ath/ath9k/mac.h | |||
@@ -195,7 +195,7 @@ struct ath_htc_rx_status { | |||
195 | #define ATH9K_RX_DECRYPT_BUSY 0x40 | 195 | #define ATH9K_RX_DECRYPT_BUSY 0x40 |
196 | 196 | ||
197 | #define ATH9K_RXKEYIX_INVALID ((u8)-1) | 197 | #define ATH9K_RXKEYIX_INVALID ((u8)-1) |
198 | #define ATH9K_TXKEYIX_INVALID ((u32)-1) | 198 | #define ATH9K_TXKEYIX_INVALID ((u8)-1) |
199 | 199 | ||
200 | enum ath9k_phyerr { | 200 | enum ath9k_phyerr { |
201 | ATH9K_PHYERR_UNDERRUN = 0, /* Transmit underrun */ | 201 | ATH9K_PHYERR_UNDERRUN = 0, /* Transmit underrun */ |