Remove the unneeded zero initialization for skb buff

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

Remove the unneeded zero initialization for skb buff
Check firmware version more precisely

Apparently two different minor versions can have different API and
are not compatible with each other. Let's use more precise version
check so far to track which firmware has which API.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Store AID after association

Mac80211 is associated after BSS_CHANGED_ASSOC.
Store AID and use it everywhere.

Also fix rewriting bssid in smd_config_bss function
that caused config_sta to fail with error 5.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Rename cpu and dma addresses in wcn36xx_dxe_ch

Remove the meaningless prefix.
Fix some whitespace errors.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Clean up DMA allocations

Remove the wrapper function. It adds nothing but confusion.
Fix bad DMA free's as reported by Kalle Valo.

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

DMA stuff
Free RX buffers

Free the RX skb's on shutdown.

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Use GFP_KERNEL for RX skb allocations

These allocations are done in process / wq context.

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