hif/usb_api: remove dup code - usb_reg_out_patch

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
hif/usb_api: remove dup code - usb_reg_in_patch

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
hif/usb_api: remove dup code - ep6 fix

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
hif/usb_api: remove dup code - bGet_descriptor_patch

In this patch i also remove eeprom check. It was never
executed any way.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
hif/usb_api: remove dup code - _fw_usbfifo_recv_command

and _fw_usbfifo_init

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
hif/usb_api: unify platform specific patch file names

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
usb_api_k2_patch.c: use same style like usb_api_magpie_patch.c

Just other comment styles and tabs instead of spaces.
Some commented A_PRINFs was removed.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
add new ZM_SOC_USB_DMA_RESET_OFFSET register

add and use ZM_SOC_USB_DMA_RESET_OFFSET
instead if magic number 0x118

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
use only one usb_defs.h

usb_defs.h for k2 and magpie are identical. So it
is better to use one.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
wmi: add new command WMI_REG_RMW_CMDID

rmw is a compund of reg_read and reg_write. By doint it on FW side
we reduce usb traffic.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
split ath_hal_reg_write_tgt and reuse it in ath_hal_reg_rmw_tgt

make sure we do not have redundand code in ath_hal_reg_rmw_tgt
and ath_hal_reg_write_tgt.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
split ath_hal_reg_read_tgt and reuse it in  ath_hal_reg_rmw_tgt

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Note in README that cmake must be installed
init.c: do cold reboot on exception

Currently, if we get exception, FW will print exception info, send crash
pattern to the host and reboot. We can reduce deadtime by doing cold reboot
instead of simple reboot. The difference is, that usb interface will be
reseted and usb subsystem will reinit driver. In this case we even do not need
to update host driver.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Download through HTTPS for authenticity and privacy (fixes #48)
Merge branch 'speed' into next
Merge branch 'hif' into next
Merge branch 'installCmake' of https://github.com/mattflaschen/open-ath9k-htc-firmware into testing
Merge branch 'master' of https://github.com/sdfsdfsdfdsdf/open-ath9k-htc-firmware into testing
ath9k_htc_firmware: fix the offset of CCMP header for mesh data frame

Mesh data frame uses at least 3 addresses scheme. So set the offset
correctly while fetching the CCMP header. Previously, we are not
able to do HW encryption for unicast data frame. Applying this
patch will allow HW encryption and avoid loading ath9k_htc.ko using
"nohwcrypt=1".

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>