Release RX descriptor after each frame

After each RX frame so HW can use it again. Otherwise RX buffer
will be full and HW stops sending frames to the host.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Rework RX routine to support both High and Low channels

Now RX routine is checking which channel triggered interrupt by
reading WCN36XX_DXE_INT_SRC_RAW_REG register and depends on that
process correct channel.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Fill in add_sta functionality

After association WCN expects to be configured
in POST-ASSOC state. Also configure new AID, STAID.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Don't enter/exit imps at the moment
Merge pull request #12 from Coi-l/master

Don't enter imps at the moment
Adopt set_link_state to use hal.h api

set_link_state function was using hal.h file but in old manner. That was
the reason why command was failing. As a fix adopt set_link_stateto use
hal.h file in the right way by implementing INIT_HAL_MSG and
PREPARE_HAL_BUF macros.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Fix DXE TX routine to use both channels LOW and HIGH

Implement wcn36xx_dxe_tx in the way that all data frames
will go through low channel while all management frames
will go through high channel.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Move START command to use hal.h

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Move SCAN commands to use hal.h

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Move ADD_STA_SELF command to use hal.h

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
wcn36xx: add debug_mask module parameter

With debug_mask module parameter it's easier to
control debug messages.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
wcn36xx: add debug_mask to wcn36xx_dbg_dump()

Uses the same debug mask values as wcn36xx_dbg()

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Move JOIN command to use hal.h

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Move DOWNLOAD_NV command to use hal.h

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Move CONFIG_BSS and CONFIG_STA commands to use hal.h

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Move SEND_BEACON command to use hal.h

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Add script for AP mode

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Remove old versions of ENTER/EXIT_IMPS functions

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Clean up smd.c/h

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Merge pull request #14 from kvalo/wcn36xx-debug-levels-1

Add debug_mask module parameter and debug levels