Add WCN36XX_DBG_BEACON

This is to make it easy to filter out beacon messages from the log file as they
easily spam the log and hide relevant information.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
main: remove power save related mac80211 capabilities

We don't support these yet.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
smd: cleanup wcn36xx_smd_config_sta()

Just to make it easier to read and modify. Follow the order from struct
wcn36xx_hal_config_sta_params and set unset fields to zero. No functional
changes.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
main: use smd join command only in managed mode

Otherwise firmware won't enable beaconing in Ad-Hoc mode.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
hal: improve bss_config() debug messages

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
txrx: improve debug messages

Knowing sequence number makes it easier to match with sniffer logs.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
hal: improve config_sta() debug messages

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
smd: disable all capabilities we don't currently support

Better not to tell firmware to enable anything until we
properly implement and test it.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Use const with mac addresses

We shouldn't use ugly casts.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Fix Ad-Hoc mode

Now I managed to create an Ad-Hoc network, join with iwlwifi and
ping the other node. It's not very reliable yet, though.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Merge pull request #32 from pof2/master

Free RX buffers
Remove the PNO verion bit from the update scan param response
to get the correcly response status

Signed-off-by: Yanbo Li <yanbol@qti.qualcomm.com>
Merge pull request #35 from dreamfly281/master

 Remove the PNO verion bit from the update scan param response to get the correcly response status
Merge pull request #34 from kvalo/wcn36xx-adhoc-2

Wcn36xx adhoc 2
Adopt setsta_key and setbss_key to wcn36xx style

All structures must be packed and have the same prefix
as others structures.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Use correct sta_index and dpu_desc_index

When transmitting frames set correct sta_index and
dpu_desc_index that were returned from config_bss_rsp

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Initial hardware encryption implementation

To enable HW encryption first driver must send
set_stakey and set_bsskey. After that for each
data frame set encryption flag inside BD.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Remove useless void pointer

Fix some formatting issues too.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.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 wcn36xx_smd_switch_channel_rsp static

Only used in smd.c

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