diff options
author | Arik Nemtsov <arik@wizery.com> | 2012-05-18 04:46:37 (GMT) |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-06-06 16:28:05 (GMT) |
commit | 32bb2c03f990d015c0fec67e9134ea8625aaf784 (patch) | |
tree | 625379f953c7b11754f6d5ee09023fc1ad04d939 /drivers/net/wireless/ti/wlcore/hw_ops.h | |
parent | 2c0133a437905591cdaa39cf65a3f7188d20a094 (diff) | |
download | linux-fsl-qoriq-32bb2c03f990d015c0fec67e9134ea8625aaf784.tar.xz |
wlcore/wl12xx/wl18xx: handle spare blocks spacial cases per arch
Add a HW op for getting spare blocks.
12xx cards require 2 spare blocks for GEM encrypted SKBs, regardless
of VIFs or keys programmed into the FW.
18xx cards require 2 spare blocks when there are any connected TKIP or
GEM VIFs. For now always return 2 spare blocks, as this works with all
networks. The special case TKIP/GEM functionality is added at a later
patch.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/hw_ops.h')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/hw_ops.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/hw_ops.h b/drivers/net/wireless/ti/wlcore/hw_ops.h index c590b6f..2cb3521 100644 --- a/drivers/net/wireless/ti/wlcore/hw_ops.h +++ b/drivers/net/wireless/ti/wlcore/hw_ops.h @@ -167,4 +167,13 @@ wlcore_handle_static_data(struct wl1271 *wl, void *static_data) return 0; } +static inline int +wlcore_hw_get_spare_blocks(struct wl1271 *wl, bool is_gem) +{ + if (!wl->ops->get_spare_blocks) + BUG_ON(1); + + return wl->ops->get_spare_blocks(wl, is_gem); +} + #endif |