open-ath9k-htc-firmware.git
8 years agoMerge pull request #110 from olerem/clean-2016.11.02
Adrian Chadd [Thu, 3 Nov 2016 20:44:23 +0000 (13:44 -0700)]
Merge pull request #110 from olerem/clean-2016.11.02

Clean 2016.11.02

8 years agoremove duplicate: cmnos_api.h 110/head
Oleksij Rempel [Thu, 3 Nov 2016 12:25:23 +0000 (13:25 +0100)]
remove duplicate: cmnos_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove not directly used includes
Oleksij Rempel [Thu, 3 Nov 2016 11:56:23 +0000 (12:56 +0100)]
remove not directly used includes

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: uart_api.h
Oleksij Rempel [Thu, 3 Nov 2016 11:37:06 +0000 (12:37 +0100)]
remove duplicate: uart_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: hif_pci.h
Oleksij Rempel [Thu, 3 Nov 2016 11:36:50 +0000 (12:36 +0100)]
remove duplicate: hif_pci.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: usb_table.h
Oleksij Rempel [Thu, 3 Nov 2016 11:29:38 +0000 (12:29 +0100)]
remove duplicate: usb_table.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: magpie_regdump.h
Oleksij Rempel [Thu, 3 Nov 2016 11:29:24 +0000 (12:29 +0100)]
remove duplicate: magpie_regdump.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: intr_api.h
Oleksij Rempel [Thu, 3 Nov 2016 11:29:18 +0000 (12:29 +0100)]
remove duplicate: intr_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: hif_api.h
Oleksij Rempel [Thu, 3 Nov 2016 11:29:12 +0000 (12:29 +0100)]
remove duplicate: hif_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: athos_api.h
Oleksij Rempel [Thu, 3 Nov 2016 11:29:07 +0000 (12:29 +0100)]
remove duplicate: athos_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove unused htc_tgt.c
Oleksij Rempel [Thu, 3 Nov 2016 10:39:48 +0000 (11:39 +0100)]
remove unused htc_tgt.c

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove unused buf_pool_dynamic.c
Oleksij Rempel [Thu, 3 Nov 2016 10:39:41 +0000 (11:39 +0100)]
remove unused buf_pool_dynamic.c

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove unused cmnos_clock.c
Oleksij Rempel [Thu, 3 Nov 2016 10:39:37 +0000 (11:39 +0100)]
remove unused cmnos_clock.c

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove unused OTUS_htc.h
Oleksij Rempel [Thu, 3 Nov 2016 10:38:06 +0000 (11:38 +0100)]
remove unused OTUS_htc.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove unused OTUS_misc.h
Oleksij Rempel [Thu, 3 Nov 2016 10:38:02 +0000 (11:38 +0100)]
remove unused OTUS_misc.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove unused adf_os_pseudo.h
Oleksij Rempel [Thu, 3 Nov 2016 10:37:56 +0000 (11:37 +0100)]
remove unused adf_os_pseudo.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove unused magpie_mem.h
Oleksij Rempel [Thu, 3 Nov 2016 10:37:12 +0000 (11:37 +0100)]
remove unused magpie_mem.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove unused opt_ah.h
Oleksij Rempel [Thu, 3 Nov 2016 10:37:03 +0000 (11:37 +0100)]
remove unused opt_ah.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove unused adf_os_bitops.h
Oleksij Rempel [Thu, 3 Nov 2016 10:36:56 +0000 (11:36 +0100)]
remove unused adf_os_bitops.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove unused adf_os_crypto.h
Oleksij Rempel [Thu, 3 Nov 2016 10:36:52 +0000 (11:36 +0100)]
remove unused adf_os_crypto.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove unused asf_sm.h
Oleksij Rempel [Thu, 3 Nov 2016 10:36:44 +0000 (11:36 +0100)]
remove unused asf_sm.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: hif_gmac.h
Oleksij Rempel [Thu, 3 Nov 2016 10:11:21 +0000 (11:11 +0100)]
remove duplicate: hif_gmac.h

same checksum

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: cmnos_api.h
Oleksij Rempel [Thu, 3 Nov 2016 10:07:21 +0000 (11:07 +0100)]
remove duplicate: cmnos_api.h

resulting same binary checksum

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: adf_nbuf_pvt.h
Oleksij Rempel [Thu, 3 Nov 2016 10:05:41 +0000 (11:05 +0100)]
remove duplicate: adf_nbuf_pvt.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: clock_api.h
Oleksij Rempel [Thu, 3 Nov 2016 10:02:33 +0000 (11:02 +0100)]
remove duplicate: clock_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: clock_api.h
Oleksij Rempel [Thu, 3 Nov 2016 09:41:45 +0000 (10:41 +0100)]
remove duplicate: clock_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: buf_pool_api.h and htc_api.h
Oleksij Rempel [Thu, 3 Nov 2016 09:28:22 +0000 (10:28 +0100)]
remove duplicate: buf_pool_api.h and htc_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: printf_api.h
Oleksij Rempel [Thu, 3 Nov 2016 09:18:49 +0000 (10:18 +0100)]
remove duplicate: printf_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: romp_api.h
Oleksij Rempel [Thu, 3 Nov 2016 09:15:32 +0000 (10:15 +0100)]
remove duplicate: romp_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: hif_usb.h
Oleksij Rempel [Thu, 3 Nov 2016 09:12:33 +0000 (10:12 +0100)]
remove duplicate: hif_usb.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: dma_engine_api.h
Oleksij Rempel [Thu, 3 Nov 2016 08:57:13 +0000 (09:57 +0100)]
remove duplicate: dma_engine_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: dma_lib.h
Oleksij Rempel [Thu, 3 Nov 2016 08:55:26 +0000 (09:55 +0100)]
remove duplicate: dma_lib.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: wdt_api.h
Oleksij Rempel [Thu, 3 Nov 2016 08:53:45 +0000 (09:53 +0100)]
remove duplicate: wdt_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: vdesc_api.h
Oleksij Rempel [Thu, 3 Nov 2016 08:51:39 +0000 (09:51 +0100)]
remove duplicate: vdesc_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: opt_ah.h
Oleksij Rempel [Thu, 3 Nov 2016 08:49:19 +0000 (09:49 +0100)]
remove duplicate: opt_ah.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: string_api.h
Oleksij Rempel [Thu, 3 Nov 2016 08:44:32 +0000 (09:44 +0100)]
remove duplicate: string_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: regdump.h
Oleksij Rempel [Thu, 3 Nov 2016 08:42:55 +0000 (09:42 +0100)]
remove duplicate: regdump.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: timer_api.h
Oleksij Rempel [Thu, 3 Nov 2016 08:41:06 +0000 (09:41 +0100)]
remove duplicate: timer_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: tasklet_api.h
Oleksij Rempel [Thu, 3 Nov 2016 08:40:02 +0000 (09:40 +0100)]
remove duplicate: tasklet_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: vbuf_api.h
Oleksij Rempel [Wed, 2 Nov 2016 10:26:06 +0000 (11:26 +0100)]
remove duplicate: vbuf_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: misc_api.h
Oleksij Rempel [Wed, 2 Nov 2016 10:22:19 +0000 (11:22 +0100)]
remove duplicate: misc_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: mem_api.h
Oleksij Rempel [Wed, 2 Nov 2016 10:20:54 +0000 (11:20 +0100)]
remove duplicate: mem_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: eeprom_api.h
Oleksij Rempel [Wed, 2 Nov 2016 10:17:57 +0000 (11:17 +0100)]
remove duplicate: eeprom_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove duplicate: allocram_api.h
Oleksij Rempel [Wed, 2 Nov 2016 10:11:20 +0000 (11:11 +0100)]
remove duplicate: allocram_api.h

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoMerge pull request #106 from olerem/clean-2016.10.15
Adrian Chadd [Sat, 29 Oct 2016 15:48:42 +0000 (08:48 -0700)]
Merge pull request #106 from olerem/clean-2016.10.15

Clean 2016.10.15

8 years agoMerge pull request #100 from RyDroid/editorconfig
Adrian Chadd [Wed, 19 Oct 2016 16:01:33 +0000 (09:01 -0700)]
Merge pull request #100 from RyDroid/editorconfig

Adding a file for EditorConfig

8 years agoMerge pull request #97 from DC-fgervais/xretries
Adrian Chadd [Mon, 17 Oct 2016 17:00:05 +0000 (10:00 -0700)]
Merge pull request #97 from DC-fgervais/xretries

Only increment xretries statistic for unicast frames

8 years agodocs: remove *png files 106/head
Oleksij Rempel [Thu, 13 Oct 2016 08:12:51 +0000 (10:12 +0200)]
docs: remove *png files

debian asks to remove pngs and generate it from svg on make, if needed.
For now, just remove it.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agofix all Wunused-but-set-variable varnings.
Oleksij Rempel [Thu, 13 Oct 2016 07:48:20 +0000 (09:48 +0200)]
fix all Wunused-but-set-variable varnings.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove all trailing whitespaces in one run
Oleksij Rempel [Thu, 13 Oct 2016 07:44:52 +0000 (09:44 +0200)]
remove all trailing whitespaces in one run

and convert dos to unix files. no other changes made here.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoadd -Wunused-but-set-variable
Oleksij Rempel [Thu, 13 Oct 2016 07:41:06 +0000 (09:41 +0200)]
add -Wunused-but-set-variable

we can't just now use -Wall. So lets add them step by step.
-Wunused-but-set-variable seems to be a good start :)

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoMerge pull request #102 from RyDroid/travis
Adrian Chadd [Tue, 11 Oct 2016 14:24:46 +0000 (07:24 -0700)]
Merge pull request #102 from RyDroid/travis

Adding a file for Travis CI

8 years agoMerge pull request #104 from olerem/pre_debian-2016.10.05
Adrian Chadd [Sun, 9 Oct 2016 15:54:29 +0000 (08:54 -0700)]
Merge pull request #104 from olerem/pre_debian-2016.10.05

make toolchain path configurable

8 years agomake toolchain path configurable 104/head
Paul Fertser [Sat, 1 Oct 2016 16:46:25 +0000 (18:46 +0200)]
make toolchain path configurable

this is needed to make it work with debian
cross-toolchain

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoAdding a file for EditorConfig 100/head
Nicola Spanti (RyDroid) [Tue, 4 Oct 2016 21:59:14 +0000 (23:59 +0200)]
Adding a file for EditorConfig

8 years agoAdding a file for Travis CI 102/head
Nicola Spanti (RyDroid) [Tue, 4 Oct 2016 21:56:24 +0000 (23:56 +0200)]
Adding a file for Travis CI

8 years agoMerge pull request #99 from olerem/pre_debian-2016.10.02
Adrian Chadd [Sun, 2 Oct 2016 18:37:42 +0000 (11:37 -0700)]
Merge pull request #99 from olerem/pre_debian-2016.10.02

Pre debian 2016.10.02

8 years agoremove unused cmnos_printf.c 98/head 99/head
Oleksij Rempel [Sat, 1 Oct 2016 12:10:41 +0000 (14:10 +0200)]
remove unused cmnos_printf.c

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoremove linux/compiler.h, mosty it is not used
Oleksij Rempel [Sat, 1 Oct 2016 11:59:13 +0000 (13:59 +0200)]
remove linux/compiler.h, mosty it is not used

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agochange licese for atheros files
Oleksij Rempel [Sat, 1 Oct 2016 11:37:54 +0000 (13:37 +0200)]
change licese for atheros files

fix license issues for debian packaging:                                                                                        licensecheck --copyright -r target_firmware

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agochange xtansa licesed files
Oleksij Rempel [Sat, 1 Oct 2016 11:24:54 +0000 (13:24 +0200)]
change xtansa licesed files

fix license issues for debian packaging:                                                                                        licensecheck --copyright -r target_firmware

With permission from Tensilica, Inc, these files have been relicensed.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agofix missing licenses
Oleksij Rempel [Sat, 1 Oct 2016 08:03:37 +0000 (10:03 +0200)]
fix missing licenses

fix license issues for debian packaging:                                                                                        licensecheck --copyright -r target_firmware

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoFix FSF adress in GPLv2 files
Oleksij Rempel [Sat, 1 Oct 2016 07:33:53 +0000 (09:33 +0200)]
Fix FSF adress in GPLv2 files

fix license issues for debian packaging:
licensecheck --copyright -r target_firmware

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agofix path for a sboot file
Oleksij Rempel [Sat, 1 Oct 2016 07:08:57 +0000 (09:08 +0200)]
fix path for a sboot file

sboot was move to other location.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agouse binutils 2.27
Oleksij Rempel [Thu, 29 Sep 2016 19:35:36 +0000 (21:35 +0200)]
use binutils 2.27

to provide debian package we need to use binutils 2.27.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoCMakeLists.txt: add -fno-lto
Oleksij Rempel [Sat, 1 Oct 2016 14:24:32 +0000 (16:24 +0200)]
CMakeLists.txt: add -fno-lto

this option is needed to make compile work with cross-toolchain properly.
We are not using LTO any way, but for some reasons if cross-tolachain
is compailed without LTO, then FW compilation will fail.

With and without this option FW has same md5sum - So it should be save
to use this option.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoOnly increment xretries statistic for unicast frames 97/head
Francois Gervais [Wed, 21 Sep 2016 18:33:41 +0000 (14:33 -0400)]
Only increment xretries statistic for unicast frames

It looks like the ar5416 only has the AR_ExcessiveRetries flag
to let the outside know it didn't receive an ACK.

So in case of broadcast/multicast it gets set even though it's
not "excessive retry" per se. These frames just don't
acknowledge/retry in a 802.11 transmission.

This patch makes sure broadcast/multicast transmissions won't
increment the xretries statistic.

8 years agoMerge pull request #94 from olerem/crypto
Adrian Chadd [Tue, 20 Sep 2016 18:17:55 +0000 (11:17 -0700)]
Merge pull request #94 from olerem/crypto

add cryptographic assurances when fetching the toolchain

8 years agoadd cryptographic assurances when fetching the toolchain 94/head
Daniel Kahn Gillmor [Tue, 20 Sep 2016 17:38:03 +0000 (19:38 +0200)]
add cryptographic assurances when fetching the toolchain

Previously, anyone tampering with the network could have modified the
toolchain source code in transit and the build would have proceeded as
expected.

With this patch, we can ensure that we're getting the expected
tarballs from upstream.

If the required toolchain packages change in the future, the sha256
digests of the new packages should be updated in Makefile as well.

Updated-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoMerge pull request #93 from olerem/gcc-clean-2016.09.19.1
Adrian Chadd [Tue, 20 Sep 2016 16:19:48 +0000 (09:19 -0700)]
Merge pull request #93 from olerem/gcc-clean-2016.09.19.1

Gcc clean 2016.09.19.1

8 years agofix compile warnings for gcc 6.2.0 93/head
Oleksij Rempel [Fri, 16 Sep 2016 08:23:13 +0000 (10:23 +0200)]
fix compile warnings for gcc 6.2.0

Most of issues discovered by gcc 6.2.0 are:
warning: implicit declaration of function '...'
which make sense since this functions was never declared,
espesially functions provided by ROM.

In the last case, correct usage of this functions was never
checked by compiler.

So, wellcome in to GCC 6.2.0 age ;)

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoRevert "Add a patch for binutils 2.23.1"
Oleksij Rempel [Fri, 16 Sep 2016 06:14:08 +0000 (08:14 +0200)]
Revert "Add a patch for binutils 2.23.1"

This reverts commit 24b475841870cc495417619637c42d65381be38e.
We are using now binutils 2.26.1. So we can drop this patch.

8 years agoupdate binutils.patch for 2.26.1
Oleksij Rempel [Thu, 15 Sep 2016 18:11:01 +0000 (20:11 +0200)]
update binutils.patch for 2.26.1

and drop useless update of copy right - it prevent us from
reusing this patch for latest binutils.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoupdate gcc.patch for gcc 6.2.0
Oleksij Rempel [Thu, 15 Sep 2016 17:45:09 +0000 (19:45 +0200)]
update gcc.patch for gcc 6.2.0

and drop useless update of copy right - it prevent us from
reusing this patch for latest gcc.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agobump gcc to 6.2.0
Oleksij Rempel [Thu, 15 Sep 2016 18:11:01 +0000 (20:11 +0200)]
bump gcc to 6.2.0

gcc 6.2.0 builds with texinfo versions 6.x .

update other dependencies too.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoMerge pull request #92 from olerem/date-2016.09.16
Adrian Chadd [Fri, 16 Sep 2016 16:10:43 +0000 (09:10 -0700)]
Merge pull request #92 from olerem/date-2016.09.16

remove __DATE__ and __TIME__

8 years agoremove __DATE__ and __TIME__, make builds reproducible. 92/head
Oleksij Rempel [Fri, 16 Sep 2016 07:17:23 +0000 (09:17 +0200)]
remove __DATE__ and __TIME__, make builds reproducible.

__DATE__ and __TIME__ are mostly useless information.
Even more, it makes builds not reprodusable which is evil.

Read more about reproducible builds here:
https://reproducible-builds.org/

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
8 years agoMerge pull request #79 from kpengboy/master
Adrian Chadd [Thu, 11 Aug 2016 20:32:34 +0000 (13:32 -0700)]
Merge pull request #79 from kpengboy/master

Fix license missed during initial conversion

9 years agoFix license missed during initial conversion 79/head
Kevin Peng [Tue, 1 Sep 2015 23:14:31 +0000 (16:14 -0700)]
Fix license missed during initial conversion

Requested by Adrian Chadd

10 years agoMerge pull request #69 from chunyeow/master 1.4.0
Adrian Chadd [Sun, 16 Nov 2014 02:36:43 +0000 (18:36 -0800)]
Merge pull request #69 from chunyeow/master

ath9k_htc_firmware: check only the mesh control present subfield

10 years agoMerge pull request #67 from IanR778/timestamp_fix
Adrian Chadd [Sun, 16 Nov 2014 02:36:17 +0000 (18:36 -0800)]
Merge pull request #67 from IanR778/timestamp_fix

Timestamp fix - looks good! Thanks!

10 years agoFix the licence - i missed this with my initial conversion
Adrian Chadd [Sun, 16 Nov 2014 02:34:45 +0000 (18:34 -0800)]
Fix the licence - i missed this with my initial conversion
of the licences.

10 years agoUpdate build instructions for FreeBSD.
Adrian Chadd [Sat, 15 Nov 2014 20:53:47 +0000 (12:53 -0800)]
Update build instructions for FreeBSD.

10 years agoath9k_htc_firmware: check only the mesh control present subfield 69/head
Chun-Yeow Yeoh [Fri, 14 Nov 2014 04:50:09 +0000 (12:50 +0800)]
ath9k_htc_firmware: check only the mesh control present subfield

This is related to the previous patch "fix the offset of
CCMP header for mesh data frame". Check only the Mesh
Control Present subfield on QoS Control field to determine
whether it is a mesh data frame.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
10 years agoFix: bug in extend_tsf near 0x8000000 values 67/head
IanR778 [Wed, 8 Oct 2014 22:56:44 +0000 (23:56 +0100)]
Fix: bug in extend_tsf near 0x8000000 values

Bugfix + added more test cases.

10 years agoFIX: support rstamps from the future too.
IanR778 [Wed, 8 Oct 2014 20:00:37 +0000 (21:00 +0100)]
FIX: support rstamps from the future too.

 * Extend a 32 bit TSF to nearest 64 bit TSF value.
 * When the adapter is a STATION, its local TSF is periodically modified by
 * the hardware to match the BSS TSF (as received in beacon packets), and
 * rstamp may appear to be from the future or from the past (with reference
 * to the current local TSF) because of jitter. This is mostly noticable in
 * highly congested channels. The code uses signed modulo arithmetic to
 * handle both past/future cases and signed-extension to avoid branches.
 * Test cases:
 * extend(0x0000001200000004, 0x00000006) == 0x0000001200000006
 * extend(0x0000001200000004, 0x00000002) == 0x0000001200000002
 * extend(0x0000001200000004, 0xfffffffe) == 0x00000011fffffffe  ! tsfhigh--
 * extend(0x00000012fffffffc, 0xfffffffe) == 0x00000012fffffffe
 * extend(0x00000012fffffffc, 0xfffffffa) == 0x00000012fffffffa
 * extend(0x00000012fffffffc, 0x00000002) == 0x0000001300000002  ! tsfhigh++

10 years agoFirmware sometimes returns erroneous timestamps(2)
IanR778 [Wed, 8 Oct 2014 00:14:01 +0000 (01:14 +0100)]
Firmware sometimes returns erroneous timestamps(2)

Fixed incorrect wrapping handling in ath_extend_tsf().

10 years agoFirmware sometimes returns erroneous timestamps
IanR778 [Wed, 8 Oct 2014 00:11:04 +0000 (01:11 +0100)]
Firmware sometimes returns erroneous timestamps

Added proper synchronization while handling lower 32 bit and upper 32 bit parts in ar5416GetTsf64().

10 years agoMerge pull request #64 from iazz/master
Adrian Chadd [Thu, 11 Sep 2014 18:35:37 +0000 (11:35 -0700)]
Merge pull request #64 from iazz/master

Fix resetting of txstatus flags.

10 years agoFix resetting of txstatus flags. 64/head
Ignacy Gawędzki [Thu, 11 Sep 2014 09:56:36 +0000 (11:56 +0200)]
Fix resetting of txstatus flags.

10 years agoMerge pull request #61 from sudoman/sudoman-fixes
Adrian Chadd [Mon, 30 Jun 2014 04:12:00 +0000 (21:12 -0700)]
Merge pull request #61 from sudoman/sudoman-fixes

minimal changes to fix the toolchain build process on some newer systems

10 years agobump gcc to newer revision 61/head
Andrew Engelbrecht [Mon, 30 Jun 2014 01:04:09 +0000 (21:04 -0400)]
bump gcc to newer revision

gcc 4.7.4 builds with texinfo versions 5.x .

10 years agofix binutils build with new gcc versions
Andrew Engelbrecht [Mon, 30 Jun 2014 00:56:37 +0000 (20:56 -0400)]
fix binutils build with new gcc versions

disabling -Werror while building binutils ignores the following
warnings on systems using -Werror and -Wall by default:

    -Wunused-value

10 years agoAdd a patch for binutils 2.23.1
oblique [Wed, 8 May 2013 16:21:31 +0000 (19:21 +0300)]
Add a patch for binutils 2.23.1

Without this patch, binutils fails to compile.
This patch will not be needed for binutils 2.24.

10 years agoMerge pull request #57 from olerem/io_clean-2014.05.23
Adrian Chadd [Fri, 23 May 2014 17:00:00 +0000 (10:00 -0700)]
Merge pull request #57 from olerem/io_clean-2014.05.23

Io clean 2014.05.23

10 years agoremove all HAL_*_READ/WRITE defines 57/head
Oleksij Rempel [Fri, 23 May 2014 16:36:16 +0000 (18:36 +0200)]
remove all HAL_*_READ/WRITE defines

we do not need them any more

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
10 years agodbg_api.c: use new io funcs
Oleksij Rempel [Mon, 28 Apr 2014 18:08:59 +0000 (20:08 +0200)]
dbg_api.c: use new io funcs

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
10 years agocmnos_sflash.c: use new io funcs
Oleksij Rempel [Sun, 27 Apr 2014 14:47:47 +0000 (16:47 +0200)]
cmnos_sflash.c: use new io funcs

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
10 years agoapp_start.c: use new io funcs
Oleksij Rempel [Sun, 27 Apr 2014 14:09:00 +0000 (16:09 +0200)]
app_start.c: use new io funcs

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
10 years agousb_api_main_patch.c use new io funcs
Oleksij Rempel [Sun, 27 Apr 2014 13:29:58 +0000 (15:29 +0200)]
usb_api_main_patch.c use new io funcs

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>