summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/rx.h
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2012-05-10 13:13:54 +0400
committerLuciano Coelho <coelho@ti.com>2012-06-05 16:56:58 +0400
commit0afd04e5e5d8db505fbb0f98c6306242c0006503 (patch)
treedadc73face34f3d9c51fbde896daf48c8bd88c1a /drivers/net/wireless/ti/wlcore/rx.h
parent102165c6d2b8d73a25a1567fcac496addc15aba7 (diff)
downloadlinux-0afd04e5e5d8db505fbb0f98c6306242c0006503.tar.xz
wlcore/wl12xx/18xx: split fw_status struct into two
The number of RX packet descriptors may vary from chip to chip and in different firmware versions. Unfortunately, the array that contains the actual descriptors is in the middle of the fw_status structure. To manage this, we split the struct into two so we can calculate the offset of what comes after the array and access the last elements more easily. [Changed the STATUS_LEN macro to be placement agnostic - Arik] Signed-off-by: Luciano Coelho <coelho@ti.com> Signed-off-by: Arik Nemtsov <arik@wizery.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/rx.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/rx.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/ti/wlcore/rx.h b/drivers/net/wireless/ti/wlcore/rx.h
index 277936e14137..9be780179456 100644
--- a/drivers/net/wireless/ti/wlcore/rx.h
+++ b/drivers/net/wireless/ti/wlcore/rx.h
@@ -38,8 +38,6 @@
#define RX_DESC_PACKETID_SHIFT 11
#define RX_MAX_PACKET_ID 3
-#define NUM_RX_PKT_DESC_MOD_MASK 7
-
#define RX_DESC_VALID_FCS 0x0001
#define RX_DESC_MATCH_RXADDR1 0x0002
#define RX_DESC_MCAST 0x0004
@@ -139,7 +137,7 @@ struct wl1271_rx_descriptor {
u8 reserved;
} __packed;
-void wl12xx_rx(struct wl1271 *wl, struct wl_fw_status *status);
+void wl12xx_rx(struct wl1271 *wl, struct wl_fw_status_1 *status);
u8 wl1271_rate_to_idx(int rate, enum ieee80211_band band);
int wl1271_rx_filter_enable(struct wl1271 *wl,
int index, bool enable,