smd: add debug message for hal start command

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
main: remove buggy else from wcn36xx_bss_info_changed()

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
main: add a comment stating set_rts_threshold() is required

mac80211 requires that.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
main: don't lie about supported filters

As we don't change any filters in firmware better
not to claim anything else to mac80211.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Update probe response template

Needed for probe response offload support in AP mode. But
it's not properly working and hence not enabled yet, to do that we have to add:

wcn_priv->hw->wiphy->flags |= WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD;

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
smd: add debug messages for sta and bss config responses

So that we can better track what's happening in firmware.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
main: fix wcn36xx_bss_info_changed() to follow enable_beacon variable

We need to check the enable_beacon variable if beaconing needs to be enabled or
disabled. Add a fixme comment for disable and also add a debug message.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
smd: use real ssid on AP mode

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

Preparation for adding more interface types. No functional changes.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
smd: organise wcn36xx_smd_config_bss() better

Just to make it sure that all fields are set correctly follow the field order
from struct wcn36xx_hal_config_bss_params.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
smd: set all parameters in config_bss()

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
smd: simplify update in config_bss()

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Add IBSS support

It doesn't work yet, but I'll send it anyway to avoid conflicts.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
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>
Rename cpu and dma addresses in wcn36xx_dxe_ch

Remove the meaningless prefix
Clean up DMA allocations

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