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>