summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/tx.h
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2011-12-12 11:41:44 +0200
committerLuciano Coelho <coelho@ti.com>2012-04-12 08:43:59 +0300
commitb3b4b4b812018a06221b6d7b88a5540fccae2940 (patch)
treea7019677c6d169562e809de5c34815a65fc334e5 /drivers/net/wireless/ti/wlcore/tx.h
parent3edab305dfd48415074a36f1cdd605dcae8463de (diff)
wlcore/wl12xx: add hw op for calculating hw block count per packet
Each chip family has a different block size and calculates the total number of HW blocks differently, with respect to alignment. Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/tx.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/tx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wlcore/tx.h b/drivers/net/wireless/ti/wlcore/tx.h
index 2ad770565217..4b01c877c3db 100644
--- a/drivers/net/wireless/ti/wlcore/tx.h
+++ b/drivers/net/wireless/ti/wlcore/tx.h
@@ -25,8 +25,6 @@
#ifndef __TX_H__
#define __TX_H__
-#define TX_HW_BLOCK_SIZE 252
-
#define TX_HW_MGMT_PKT_LIFETIME_TU 2000
#define TX_HW_AP_MODE_PKT_LIFETIME_TU 8000
@@ -223,6 +221,8 @@ void wl1271_tx_reset_link_queues(struct wl1271 *wl, u8 hlid);
void wl1271_handle_tx_low_watermark(struct wl1271 *wl);
bool wl12xx_is_dummy_packet(struct wl1271 *wl, struct sk_buff *skb);
void wl12xx_rearm_rx_streaming(struct wl1271 *wl, unsigned long *active_hlids);
+unsigned int wlcore_calc_packet_alignment(struct wl1271 *wl,
+ unsigned int packet_length);
/* from main.c */
void wl1271_free_sta(struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 hlid);