Commit a75c0629 authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville

ath9k: use u8 for the tx key index

This saves some space in struct ath_frame_info
Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 29e76245
...@@ -273,7 +273,7 @@ static int ar9002_hw_proc_txdesc(struct ath_hw *ah, void *ds, ...@@ -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, static void ar9002_hw_set11n_txdesc(struct ath_hw *ah, void *ds,
u32 pktLen, enum ath9k_pkt_type type, u32 pktLen, enum ath9k_pkt_type type,
u32 txPower, u32 keyIx, u32 txPower, u8 keyIx,
enum ath9k_key_type keyType, u32 flags) enum ath9k_key_type keyType, u32 flags)
{ {
struct ar5416_desc *ads = AR5416DESC(ds); struct ar5416_desc *ads = AR5416DESC(ds);
......
...@@ -312,7 +312,7 @@ static int ar9003_hw_proc_txdesc(struct ath_hw *ah, void *ds, ...@@ -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, static void ar9003_hw_set11n_txdesc(struct ath_hw *ah, void *ds,
u32 pktlen, enum ath9k_pkt_type type, u32 txpower, 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; struct ar9003_txc *ads = (struct ar9003_txc *) ds;
......
...@@ -207,8 +207,8 @@ struct ath_atx_ac { ...@@ -207,8 +207,8 @@ struct ath_atx_ac {
struct ath_frame_info { struct ath_frame_info {
int framelen; int framelen;
u32 keyix;
enum ath9k_key_type keytype; enum ath9k_key_type keytype;
u8 keyix;
u8 retries; u8 retries;
u16 seqno; u16 seqno;
}; };
......
...@@ -623,7 +623,7 @@ struct ath_hw_ops { ...@@ -623,7 +623,7 @@ struct ath_hw_ops {
struct ath_tx_status *ts); struct ath_tx_status *ts);
void (*set11n_txdesc)(struct ath_hw *ah, void *ds, void (*set11n_txdesc)(struct ath_hw *ah, void *ds,
u32 pktLen, enum ath9k_pkt_type type, u32 pktLen, enum ath9k_pkt_type type,
u32 txPower, u32 keyIx, u32 txPower, u8 keyIx,
enum ath9k_key_type keyType, enum ath9k_key_type keyType,
u32 flags); u32 flags);
void (*set11n_ratescenario)(struct ath_hw *ah, void *ds, void (*set11n_ratescenario)(struct ath_hw *ah, void *ds,
......
...@@ -195,7 +195,7 @@ struct ath_htc_rx_status { ...@@ -195,7 +195,7 @@ struct ath_htc_rx_status {
#define ATH9K_RX_DECRYPT_BUSY 0x40 #define ATH9K_RX_DECRYPT_BUSY 0x40
#define ATH9K_RXKEYIX_INVALID ((u8)-1) #define ATH9K_RXKEYIX_INVALID ((u8)-1)
#define ATH9K_TXKEYIX_INVALID ((u32)-1) #define ATH9K_TXKEYIX_INVALID ((u8)-1)
enum ath9k_phyerr { enum ath9k_phyerr {
ATH9K_PHYERR_UNDERRUN = 0, /* Transmit underrun */ ATH9K_PHYERR_UNDERRUN = 0, /* Transmit underrun */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment