Remove useless void pointer

Fix some formatting issues too.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Merge pull request #40 from dreamfly281/master

Handle the RX skb data to avoid missing packet or conflict
Remove unused DMA2 channel status

Remove this channel define cause not use it currently

Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com>
Simplify wcn36xx_dxe_desc structure

No need to have the union or the embedded struct.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Make some functions static

Only used in smd.c

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Remove cur and dxe prefixes from tx and rx

These prefixes are just waste of screen space.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Merge pull request #41 from pof2/dxeclean

Dxeclean
Use beacon interval from mac80211

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Add BEACON_DUMP debug level

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Add mesh support

Did a quick test with ath9k_htc and carl9170. As wcn36xx only
is able to add one sta at the moment, direct connection to a third
mesh point won't work but luckily mesh protocol routed it through
the second node :)

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Merge pull request #37 from kvalo/wcn36xx-mesh-1

Wcn36xx mesh 1
Remove unused struct wcn36xx_dxe_mem_pool

Forgotten leftovers.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Clean up some DXE structs

Spaces -> tabs. Remove C99 comments. Remove unused member.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Remove bitmap from mempool

Not used.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Remove struct wcn36xx_pkt

Not used.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Cleaup and formatting fixes for irq allocations

Remove comments for obvious calls.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Point tail_blk_ctl to the first node

Commit d8d5445d moved assignment of tail_blk_ctl to point to the last
allocated node. This is incorrect as it should point to the first
unused node.

wcn36xx_dxe_free_ctl_block needs to be updated to reflect this change.
Simplify it while at it.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Improve TX BD handling

The same BD was used for all TX's. Change this to use a pre-calculated
buffer address in the dxe ctl structure.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Enable TX done IRQs

Generate a TX done IRQ when TX transfer is done.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Return TXed frames to mac80211.

On TX done IRQ reap all transferred skbs.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>