wlcore: consider smart_config sync band (squash)

Use the smart_config sync band from the event mailbox
instead of the hardcoded 2.4ghz band (for determining
the frequency)

Signed-off-by: Eliad Peller <eliad@wizery.com>
wlcore: don't allocate platform_data for platform device

The memory is managed by the platform device which takes ownership of it
when platform_device_add_data() is called. Our memory is simply leaked.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
wclore: del platform data correctly on remove (squash)

A fix for the DT enabling patch - the pdev_data pointer does not
belong to us and is freed when the device is released. Dereference
to our private data first.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
wl18xx: add sdio sg-dma low level write

Use mmc core to send a sg-list to the DMA engine. Implement an
sg_write callback in the sdio module to be called by the main driver.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
wl18xx: use sg dma for Tx in 18xx cards

Add a quirk to enable sg dma for the Tx path in 18xx cards. Initialize
a sg-list and add buffers there instead of the aggregation buffer. When
flushing the data use the new sg_write API call.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
FW FIX ALIGN
DMA WITH SG TRICK AND CORRECT ALIGN
fix horrible bug by shahar..
very very tmp

Signed-off-by: Arik Nemtsov <arik@wizery.com>
wlcore: add retval to SG write

Signed-off-by: Arik Nemtsov <arik@wizery.com>
wlcore: handle dummy packets for SG dma

Signed-off-by: Arik Nemtsov <arik@wizery.com>
fix cleanup TODO

Signed-off-by: Arik Nemtsov <arik@wizery.com>
remove 2-byte alignment of beginning and disable SG

Signed-off-by: Arik Nemtsov <arik@wizery.com>
this version works

Signed-off-by: Arik Nemtsov <arik@wizery.com>
no last block padding works!

Signed-off-by: Arik Nemtsov <arik@wizery.com>
wlcore: small block size for SG dma + adjust function to not crash

Signed-off-by: Arik Nemtsov <arik@wizery.com>
wlcore: big DMA cleanup

still working

Signed-off-by: Arik Nemtsov <arik@wizery.com>