diff options
Diffstat (limited to 'drivers/net/wireless/ath5k/desc.c')
-rw-r--r-- | drivers/net/wireless/ath5k/desc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath5k/desc.c b/drivers/net/wireless/ath5k/desc.c index 5e362a7a3620..b40a9287a39a 100644 --- a/drivers/net/wireless/ath5k/desc.c +++ b/drivers/net/wireless/ath5k/desc.c | |||
@@ -71,7 +71,7 @@ ath5k_hw_setup_2word_tx_desc(struct ath5k_hw *ah, struct ath5k_desc *desc, | |||
71 | /* Verify and set frame length */ | 71 | /* Verify and set frame length */ |
72 | 72 | ||
73 | /* remove padding we might have added before */ | 73 | /* remove padding we might have added before */ |
74 | frame_len = pkt_len - (hdr_len & 3) + FCS_LEN; | 74 | frame_len = pkt_len - ath5k_pad_size(hdr_len) + FCS_LEN; |
75 | 75 | ||
76 | if (frame_len & ~AR5K_2W_TX_DESC_CTL0_FRAME_LEN) | 76 | if (frame_len & ~AR5K_2W_TX_DESC_CTL0_FRAME_LEN) |
77 | return -EINVAL; | 77 | return -EINVAL; |
@@ -202,7 +202,7 @@ static int ath5k_hw_setup_4word_tx_desc(struct ath5k_hw *ah, | |||
202 | /* Verify and set frame length */ | 202 | /* Verify and set frame length */ |
203 | 203 | ||
204 | /* remove padding we might have added before */ | 204 | /* remove padding we might have added before */ |
205 | frame_len = pkt_len - (hdr_len & 3) + FCS_LEN; | 205 | frame_len = pkt_len - ath5k_pad_size(hdr_len) + FCS_LEN; |
206 | 206 | ||
207 | if (frame_len & ~AR5K_4W_TX_DESC_CTL0_FRAME_LEN) | 207 | if (frame_len & ~AR5K_4W_TX_DESC_CTL0_FRAME_LEN) |
208 | return -EINVAL; | 208 | return -EINVAL; |