open-ath9k-htc-firmware.git
19 months agoMerge pull request #139 from olerem/gcc-7 master
Adrian Chadd [Sun, 28 Jan 2018 08:50:17 +0000 (00:50 -0800)]
Merge pull request #139 from olerem/gcc-7

update to gcc 7.2.0

21 months agoupdate to gcc 7.2.0 139/head
Oleksij Rempel [Mon, 11 Dec 2017 16:57:59 +0000 (17:57 +0100)]
update to gcc 7.2.0

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2 years agoMerge pull request #131 from olerem/gcc-2017.06.25
Adrian Chadd [Sun, 25 Jun 2017 18:55:59 +0000 (11:55 -0700)]
Merge pull request #131 from olerem/gcc-2017.06.25

Gcc 2017.06.25

2 years agoadd gcc fixup 131/head
Oleksij Rempel [Thu, 1 Jun 2017 15:20:31 +0000 (17:20 +0200)]
add gcc fixup

Fix issue: Tool chain build - gcc won't compile #130

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2 years agobump gcc to 6.3.0
Oleksij Rempel [Thu, 1 Jun 2017 14:08:08 +0000 (16:08 +0200)]
bump gcc to 6.3.0

to bring it in sync with debian sid

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2 years agoMerge pull request #120 from olerem/warnings-2016.12.16
Adrian Chadd [Fri, 16 Dec 2016 19:51:30 +0000 (11:51 -0800)]
Merge pull request #120 from olerem/warnings-2016.12.16

Warnings 2016.12.16

2 years agoMerge pull request #119 from olerem/rate-2016.12.16.1
Adrian Chadd [Fri, 16 Dec 2016 19:49:28 +0000 (11:49 -0800)]
Merge pull request #119 from olerem/rate-2016.12.16.1

use minimal unmasked rate for multicast frames.

2 years agoif_ath: ath_tgt_send_beacon assert if beacon exist 120/head
Oleksij Rempel [Sun, 27 Nov 2016 06:59:05 +0000 (07:59 +0100)]
if_ath: ath_tgt_send_beacon assert if beacon exist

With current code we will print error and try to execute something
If bhdr will be accidantly not NULL, then we will continue with some
trash without letting host knwo about it.

In this case it is better to use assert and send to the host at least panic
notification.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2 years agoif_ath: use datalen instead of data in ath_stop_tx_dma_tgt
Oleksij Rempel [Sun, 27 Nov 2016 06:52:44 +0000 (07:52 +0100)]
if_ath: use datalen instead of data in ath_stop_tx_dma_tgt

one more potential issue wich where we use data pointer instead of datalen.

NOTE: Currently this functions seems to be not used.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2 years agofix -Wmaybe-uninitialized warnings in dbg_api.c
Oleksij Rempel [Sun, 27 Nov 2016 06:43:17 +0000 (07:43 +0100)]
fix -Wmaybe-uninitialized warnings in dbg_api.c

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2 years agouse minimal unmasked rate for multicast frames. 119/head
Oleksij Rempel [Fri, 16 Dec 2016 09:05:24 +0000 (10:05 +0100)]
use minimal unmasked rate for multicast frames.

Current FW has ratemask interface and use it to set
minmal unmasked rate for beacons and mgmt frames.

This patch will allow to do the same with mcast.

Fallowing command will force mcast frames to be send with
54Mbit:
iw wlan0 set bitrates legacy-2.4 54

If multiple rate are set, then minimal rate will be used,
for example in this case 6Mbit:
iw wlan0 set bitrates legacy-2.4 6 54

This patch also should affect rate of injected frames.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2 years agoMerge pull request #117 from artlogic/patch-1
Adrian Chadd [Mon, 28 Nov 2016 06:25:58 +0000 (22:25 -0800)]
Merge pull request #117 from artlogic/patch-1

Change sha256sum to shasum -a 256

2 years agoChange sha256sum to shasum -a 256 117/head
James Kruth [Sat, 26 Nov 2016 18:19:29 +0000 (13:19 -0500)]
Change sha256sum to shasum -a 256

Not all systems have sha256sum (Mac OS, for instance). Use the more common `shasum -a 256`.

2 years agoMerge pull request #116 from olerem/warnings-2016.11.26
Adrian Chadd [Sat, 26 Nov 2016 17:55:06 +0000 (09:55 -0800)]
Merge pull request #116 from olerem/warnings-2016.11.26

Warnings 2016.11.26

2 years agoaf_ath: don't use trash to configure interrupts 116/head
Oleksij Rempel [Sat, 26 Nov 2016 12:18:42 +0000 (13:18 +0100)]
af_ath: don't use trash to configure interrupts

The WMI_ENABLE_INTR_CMDID can some time send empty package
to set interrupt to default value.
The problem is that ath_enable_intr_tgt is testing the
data pointer instead of dataleng variable.
We have never data == NULL case, even on zero size package.
(which is probably a bug too)

As result, FW was using some part of memory with undefined value
to configure interrupts. In most cases it was enabling SWBA interrupt
even if driver was trying to disable it.

In my tests, this issue was not really affecting STA or AP mode.

The only measurable difference i got on AP+STA mode. In this case
the FW was sending SWBA event to host at the channel switch in the
bgscan.

Possible effects of this issue:
- slow bgscan. EP3/EP4 have perfomance issue, extra traffic on will
make is slower.
- spreading our AP beacons on other channels.
- more ???

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2 years agoadd -Wmaybe-uninitialized
Oleksij Rempel [Sat, 26 Nov 2016 06:33:46 +0000 (07:33 +0100)]
add -Wmaybe-uninitialized

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2 years agoremove -Wundef
Oleksij Rempel [Sat, 26 Nov 2016 06:31:51 +0000 (07:31 +0100)]
remove -Wundef

it is already set here.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
2 years agoMerge pull request #111 from olerem/debian-2016.11.06
Adrian Chadd [Sun, 6 Nov 2016 18:50:06 +0000 (10:50 -0800)]
Merge pull request #111 from olerem/debian-2016.11.06

Remove FSF snail mail address from licensing texts

2 years agoRemove FSF snail mail address from licensing texts 111/head
Paul Fertser [Sun, 6 Nov 2016 17:55:44 +0000 (20:55 +0300)]
Remove FSF snail mail address from licensing texts

The FSF address changed before and might change in the future. Borrow
the recommended wording from GPLv3.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2 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

2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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

2 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

2 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

2 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>
2 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>
2 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>
2 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>
2 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

2 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

2 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>
2 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

2 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

2 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

2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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.

3 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

3 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>
3 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

3 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>
3 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.

3 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>
3 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>
3 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>
3 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__

3 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>
3 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

4 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

4 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

4 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!