Rename wcn_priv to wcn

Harmonize the naming of wcn parameter in init function.

Signed-off-by: Olof Johansson <dev@skyshaper.net>
Use locally adminstered mac if file is not available

If there is no mac address file available for all but the first
interface use locally administered mac addresses. This is ok since
they will be used for p2p action where locally administered addresses
are ok. The locally administered addresses will be based on the
address for interface one.

If the mac address file is missing for the first interface we still
randomize one to use.

Signed-off-by: Olof Johansson <dev@skyshaper.net>
Add interface combinations

Add a template for valid interface combinations.

Signed-off-by: Olof Johansson <dev@skyshaper.net>
Add RSSI values to received packets

Extract the rssi value from the metadata and forward it to upper
layers.

Signed-off-by: Olof Johansson <dev@skyshaper.net>
Use mac address received from vif

Use the mac address from the vif instead. This way we don't need to
keep track of it ourselves.

Signed-off-by: Olof Johansson <dev@skyshaper.net>
Merge pull request #28 from Coi-l/pr2

Start wifi via GUI and connect
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>