wlcore/wl12xx: add hw op for getting rx packet data length
authorArik Nemtsov <arik@wizery.com>
Mon, 12 Dec 2011 10:18:17 +0000 (12:18 +0200)
committerLuciano Coelho <coelho@ti.com>
Thu, 12 Apr 2012 05:44:00 +0000 (08:44 +0300)
commit4158149c24e6f933809bc6fe03dbc3fb218b935b
tree2b1212ad37ae03129645d3c1fa32770f25a4fe1e
parentb14684a00439b7b154e63be9446fba19281b8bbc
wlcore/wl12xx: add hw op for getting rx packet data length

There is a difference in the way chip families report the length of data
in a single Rx packet. Abstract this into a HW op. Refactor the Rx data
handling function to allocate the correct size for the data, and avoid
trimming the skb.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wl12xx/main.c
drivers/net/wireless/ti/wlcore/hw_ops.h
drivers/net/wireless/ti/wlcore/rx.c
drivers/net/wireless/ti/wlcore/wlcore.h