diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-10-11 15:18:41 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-10-14 21:39:57 +0400 |
commit | 7b8a00dc571417c845aac8feb2f8e01ce96213bf (patch) | |
tree | bf70cb22341b163026fb47125534551974f5d5ca /drivers/net/wireless/rt2x00/rt2x00queue.c | |
parent | a44d01419ca4f8f4bec721504fa257b6c438c77c (diff) | |
download | linux-7b8a00dc571417c845aac8feb2f8e01ce96213bf.tar.xz |
rt2x00: rt2x00lib: use rt2x00_has_cap_* helpers
Use the appropriate helper functions instead of
directly accessing the rt2x00dev->cap_flags field
to check device capability flags.
This improves readability of the code a bit.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00queue.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index 218e3206ce1b..50590b1420a5 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c @@ -61,7 +61,7 @@ struct sk_buff *rt2x00queue_alloc_rxskb(struct queue_entry *entry, gfp_t gfp) * at least 8 bytes bytes available in headroom for IV/EIV * and 8 bytes for ICV data as tailroon. */ - if (test_bit(CAPABILITY_HW_CRYPTO, &rt2x00dev->cap_flags)) { + if (rt2x00_has_cap_hw_crypto(rt2x00dev)) { head_size += 8; tail_size += 8; } |