Oleksij Rempel [Sat, 14 Sep 2013 07:06:38 +0000 (09:06 +0200)]
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>
Oleksij Rempel [Tue, 13 Aug 2013 13:53:46 +0000 (15:53 +0200)]
remove transfer type patches for EP3 and EP4
here is comment from kernel source which has enought explanation:
* Some buggy high speed devices have bulk endpoints using
* maxpacket sizes other than 512. High speed HCDs may not
* be able to handle that particular bug, so let's warn...
in our case EP3 and EP4 have maxpacket sizes = 64!!!
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Tue, 13 Aug 2013 10:23:28 +0000 (12:23 +0200)]
patch bcdDevice value for magpie to make easy firmware detection.
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Tue, 13 Aug 2013 10:12:15 +0000 (12:12 +0200)]
fix u8 to u16 conversation
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Tue, 13 Aug 2013 09:31:04 +0000 (11:31 +0200)]
patch bcdDevice value for k2 to make easy firmware detection.
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Tue, 13 Aug 2013 09:23:14 +0000 (11:23 +0200)]
help linker to find u8UsbDeviceDescriptor on k2
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Wed, 24 Jul 2013 08:26:18 +0000 (10:26 +0200)]
k2_fw_usb_api: workaround for EP4 bug.
This patch is workaround for xhci related issue.
After usb port resume FIFO on EP4 can't accept Bulck stream longer then
64 Bytes.
Currently we have no better way then just completly reset chip.
Side effect of this workaround - disconnection event for this device.
It means, module will be reloaded and we will get new usb minor id.
This is why, we should not do it on each firmware restart.
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 19 Jul 2013 18:37:36 +0000 (20:37 +0200)]
docs: add chip images for documentation
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Thu, 18 Jul 2013 14:44:46 +0000 (16:44 +0200)]
k2_fw_usb_api: prevent buffer overflow.
This was reproduced on intel USB 3.0 controller.
After getting corrupt packet we was jumping bejond allocated buffer.
Insted of oopsing we can at lest warn hier.
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Thu, 18 Jul 2013 13:02:52 +0000 (15:02 +0200)]
k2_fw_usb_api: add warning on oversized buffer.
Currently i do not know how to fix this bug. It is reproducable on:
Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
After module reload, first packet with data size over 64 Byte will brake EP4
buffer. Size register will show bigger value as existing size of buffer.
Last buffer part will be corrupt.
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sun, 7 Jul 2013 18:43:07 +0000 (20:43 +0200)]
if_ath.c: make ath_hal_reg_write_tgt more readable
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 5 Jul 2013 19:33:31 +0000 (21:33 +0200)]
k2_fw_usb_api: fix typo in usb reg address
we was writing to wrond register.
0x100ae = ep3
0x100af = ep4
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 5 Jul 2013 19:31:43 +0000 (21:31 +0200)]
k2_fw_usb_api: fix typo in reg address
this was writing defenetly to wrong address.
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Wed, 3 Jul 2013 18:45:50 +0000 (20:45 +0200)]
k2_fw_usb_api: add delay after mac reset
We need some time between MAC reset and next operation. This will
avoid some freezes on module and firmware reload.
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Adrian Chadd [Fri, 5 Jul 2013 21:18:55 +0000 (14:18 -0700)]
Merge pull request #37 from olerem/clean_2
Clean work: Nuke HAL.
Oleksij Rempel [Sun, 23 Jun 2013 20:14:36 +0000 (22:14 +0200)]
Merge branch 'clean' into clean_2
Oleksij Rempel [Sun, 23 Jun 2013 20:13:23 +0000 (22:13 +0200)]
remove unused HAL_OPMODE
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Adrian Chadd [Thu, 30 May 2013 18:05:21 +0000 (11:05 -0700)]
Merge pull request #34 from olerem/rc
SImplefy STBC handler v4
Adrian Chadd [Thu, 16 May 2013 18:01:00 +0000 (11:01 -0700)]
Update documentation to reflect the current reality.
Issue: #28
Oleksij Rempel [Sat, 11 May 2013 21:07:12 +0000 (23:07 +0200)]
remove unused variables ah_set11nVirtualMoreFrag
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 21:03:22 +0000 (23:03 +0200)]
remove unused variable in ah_set11nBurstDuration
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 20:59:44 +0000 (22:59 +0200)]
remove unused variable in ah_clr11nAggr
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 20:57:00 +0000 (22:57 +0200)]
remove unused variables ah_set11nAggrLast
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 20:49:11 +0000 (22:49 +0200)]
remove unused variable ah_set11nAggrMiddle
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 20:45:45 +0000 (22:45 +0200)]
remove unused variables in ah_set11nAggrFirst
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 20:28:23 +0000 (22:28 +0200)]
use one ar5416Set11nAggrFirst_20 for merlin and k2
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 20:12:53 +0000 (22:12 +0200)]
remove unused variables in ah_set11nRateScenario
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 20:04:46 +0000 (22:04 +0200)]
remove unused variables in ah_set11nTxDesc
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 20:01:41 +0000 (22:01 +0200)]
remove unused variables on ah_fillKeyTxDesc
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 19:58:07 +0000 (21:58 +0200)]
remove unused variable in ah_fillTxDesc
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 19:28:07 +0000 (21:28 +0200)]
remove unused variable in ah_setupTxDesc
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 18:56:20 +0000 (20:56 +0200)]
remove unused variable in ah_setupRxDesc
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 18:47:31 +0000 (20:47 +0200)]
remove unused variables in ar5416Attach
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 16:32:12 +0000 (18:32 +0200)]
remove unused variables in ath_hal_getcapability
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 16:06:21 +0000 (18:06 +0200)]
remove ieee80211_hdrsize_padding
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 16:04:47 +0000 (18:04 +0200)]
remove ath_hal_vprintf
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 16:03:04 +0000 (18:03 +0200)]
remove ath_rate_mcs2rate
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 15:51:28 +0000 (17:51 +0200)]
remove ath_rate_detach
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 15:49:46 +0000 (17:49 +0200)]
remove median function
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 15:48:15 +0000 (17:48 +0200)]
remove rcIsValidTxMask
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 15:46:31 +0000 (17:46 +0200)]
remove unused adf_os_cpu_to_le16
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 15:44:50 +0000 (17:44 +0200)]
remove adf_os_virt_module_name
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 15:36:25 +0000 (17:36 +0200)]
remove ath_hal_memzero
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 15:00:51 +0000 (17:00 +0200)]
remove ath_hal_setupratetable
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 14:31:30 +0000 (16:31 +0200)]
remove ar5416SetMulticastFilterInde
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 14:29:08 +0000 (16:29 +0200)]
remove ar5416SetMulticastFilter
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 14:23:29 +0000 (16:23 +0200)]
remove ar5416ClrMulticastFilterIndex
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 11:05:16 +0000 (13:05 +0200)]
ar5416Attach: remove useless check
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 11:03:20 +0000 (13:03 +0200)]
use ah_set11nVirtualMoreFrag directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 11:00:50 +0000 (13:00 +0200)]
use ah_procTxDesc directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:58:12 +0000 (12:58 +0200)]
use ah_fillKeyTxDesc directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:56:12 +0000 (12:56 +0200)]
use ah_fillTxDesc directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:54:00 +0000 (12:54 +0200)]
remove ar5416IntrReqTxDesc_20
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:51:12 +0000 (12:51 +0200)]
use ah_setupTxDesc directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:47:58 +0000 (12:47 +0200)]
remove ah_updateCTSForBursting
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:46:19 +0000 (12:46 +0200)]
use ah_procRxDescFast directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:44:42 +0000 (12:44 +0200)]
use ah_setupRxDesc directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:43:07 +0000 (12:43 +0200)]
use ah_set11nBurstDuration directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:17:39 +0000 (12:17 +0200)]
use ah_clr11nAggr directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:13:49 +0000 (12:13 +0200)]
use ah_set11nAggrLast directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:12:06 +0000 (12:12 +0200)]
use ah_set11nAggrMiddle directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:06:34 +0000 (12:06 +0200)]
use ah_set11nAggrFirst directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:03:38 +0000 (12:03 +0200)]
use ah_set11nRateScenario directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 10:00:54 +0000 (12:00 +0200)]
use ah_set11nTxDesc directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 09:13:57 +0000 (11:13 +0200)]
use ah_setInterrupts directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 09:07:35 +0000 (11:07 +0200)]
remove ar5416GetInterrupts
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 09:05:53 +0000 (11:05 +0200)]
use ah_getPendingInterrupts directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 09:04:24 +0000 (11:04 +0200)]
use ah_isInterruptPending directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 09:01:43 +0000 (11:01 +0200)]
use ah_stopPcuReceive directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:59:47 +0000 (10:59 +0200)]
remove ar5416StartPcuReceive
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:54:18 +0000 (10:54 +0200)]
use ah_enableReceive directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:52:30 +0000 (10:52 +0200)]
use ah_stopDmaReceive directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:50:11 +0000 (10:50 +0200)]
use ah_setRxDP directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:47:26 +0000 (10:47 +0200)]
remove ar5416GetRxDP
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:44:39 +0000 (10:44 +0200)]
use ah_setRxFilter directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:42:01 +0000 (10:42 +0200)]
remove ar5416ResetTsf
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:39:21 +0000 (10:39 +0200)]
use ah_getTsf64 directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:34:17 +0000 (10:34 +0200)]
remove ar5416GetTsf32
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:29:57 +0000 (10:29 +0200)]
use ah_abortTxDma directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:27:34 +0000 (10:27 +0200)]
remove ah_getTxIntrQueue
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:08:17 +0000 (10:08 +0200)]
use ah_stopTxDma directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:08:17 +0000 (10:08 +0200)]
use ah_startTxDma directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:05:06 +0000 (10:05 +0200)]
use ah_numTxPending directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 08:01:32 +0000 (10:01 +0200)]
use ah_setTxDP directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 07:57:45 +0000 (09:57 +0200)]
remove ar5416GetTxDP
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 07:54:37 +0000 (09:54 +0200)]
use ah_updateTxTrigLevel directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 07:47:42 +0000 (09:47 +0200)]
use ah_detach directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 07:40:29 +0000 (09:40 +0200)]
use ah_getRateTable directly
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Sat, 11 May 2013 07:10:46 +0000 (09:10 +0200)]
ar5416_hw.c: remove ar5416GetCapability
Chain call of this function looks like this:
ath_hal_getcapability(makro) -> ar5416GetCapability -> ath_hal_getcapability(funct)
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 10 May 2013 23:37:39 +0000 (01:37 +0200)]
remove wlan/if_ethersubr.h
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 10 May 2013 23:29:01 +0000 (01:29 +0200)]
ratectrl_11n_ln.c: remove unused includes
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 10 May 2013 23:27:49 +0000 (01:27 +0200)]
if_owl.c: remove unused includes
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 10 May 2013 23:56:38 +0000 (01:56 +0200)]
wlan/if_ath_pci.c: remove unused inlcudes
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 10 May 2013 23:54:27 +0000 (01:54 +0200)]
wlan/if_ath.c: remove unused includes
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 10 May 2013 23:18:18 +0000 (01:18 +0200)]
ieee80211_output.c: remove unused includes
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 10 May 2013 23:14:18 +0000 (01:14 +0200)]
ar5416_phy.c: don't include opt_ah.h
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 10 May 2013 23:12:24 +0000 (01:12 +0200)]
ah_osdep.c: don't include adf_net_types.h
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 10 May 2013 23:09:28 +0000 (01:09 +0200)]
ah.c: do not inclue opt_ah.h
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 10 May 2013 23:00:30 +0000 (01:00 +0200)]
do not include opt_ah.h, it is not used by ar5416_hw.c
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Oleksij Rempel [Fri, 10 May 2013 22:53:50 +0000 (00:53 +0200)]
remove unused wlan/queue.h
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>