Fix status size in START_RSP message

In START_RSP message status filed is 2 bytes but not 4 as in
all other responses. Because of that check for status was
always failing all the time. As a fix check for success only
2 bytes.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Move adding station to add_interface

Moving adding station to add_interface because this is where it must be.
Also distinguish between AP and Station mode

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Print out error message in case SMD command fails

This helps debugging driver

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Initial commit for AP mode support

To support AP wcn36xx must send 2 SMD commands:
CONFIG_BSS - to config hw to be in AP mode
SEND_BEACON – start sending beacons according to template

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Update README with mailing list

Mailing list is wcn36xx@lists.infradead.org

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Add patches for latest compat

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
wcn36xx: import hal.h from the prima driver

URL:

https://www.codeaurora.org/gitweb/external/wlan/?p=prima.git;a=blob_plain;f=riva/inc/wlan_hal_msg.h;h=f29aaf66e59c566cde4bd99bc2b00024641aac21;hb=HEAD

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
add hw.h

From URL:

https://www.codeaurora.org/gitweb/external/wlan/?p=prima.git;a=blob_plain;f=riva/inc/wlan_qct_dev_defs.h;h=b9577e6bd173b3e44d83bfc40d852b381585c6ca;hb=HEAD

hal.h needs these

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
hal: make hal.h compile

So that we can use it with wcn36xx.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
hal: remove ugly typedefs and PACKED macros from structs

Follow Linux style and use real structs and __packed.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
hal: remove all packed macros

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
hal: run Lindent

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
hal: comment cleanup

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
hal: remove useless ifdefs

Leave the ones which change structure content, these need to be solved somehow differently.

Also fix few compiler errors which happened due to #ifdef removal.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
hal: use WCN36XX_HAL prefix for command ids

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
hal: reindent PARAM_BEACON_UPDATE_MASK

Lindent reformatted it in a really ugly way.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
hal: get rid of tSirMacAddr

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
hal: get rid of most typedefs

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
hal: remove hungarian notation from enums

The 'e' prefix is useless.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
delete hw.h

We actually just need just HAL_NUM_BSSID from hw.h. So copy that to hal.h and delete hw.h entirely.

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