carl9170fw.git
12 years agocarl9170 firmware: checkpatch/style fixes
Christian Lamparter [Mon, 15 Aug 2011 16:58:52 +0000 (18:58 +0200)]
carl9170 firmware: checkpatch/style fixes

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agoieee80211: add few wmm tspec values
Kalle Valo [Sun, 17 Jul 2011 09:13:56 +0000 (12:13 +0300)]
ieee80211: add few wmm tspec values

These are needed by ath6kl for parsing tspec status from an IE.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agowireless: unify QoS control field definitions
Johannes Berg [Wed, 22 Jun 2011 08:06:59 +0000 (08:06 +0000)]
wireless: unify QoS control field definitions

Move all that mac80211 has into the generic
ieee80211.h header file and use them. At the
same time move them from mask+shift to just
bits and rename them for consistent names.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocfg80211: don't drop p2p probe responses
Eliad Peller [Sun, 29 May 2011 12:53:20 +0000 (12:53 +0000)]
cfg80211: don't drop p2p probe responses

Commit 0a35d36 ("cfg80211: Use capability info to detect mesh beacons")
assumed that probe response with both ESS and IBSS bits cleared
means that the frame was sent by a mesh sta.

However, these capabilities are also being used in the p2p_find phase,
and the mesh-validation broke it.

Rename the WLAN_CAPABILITY_IS_MBSS macro, and verify that mesh ies
exist before assuming this frame was sent by a mesh sta.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: install firmware without execute permissions
Pavel Roskin [Fri, 15 Jul 2011 23:00:49 +0000 (23:00 +0000)]
carl9170 firmware: install firmware without execute permissions

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: add BCN_HT1 and BCN_HT2 definitions
Christian Lamparter [Fri, 15 Jul 2011 14:33:39 +0000 (16:33 +0200)]
carl9170 firmware: add BCN_HT1 and BCN_HT2 definitions

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: correct use of memset
Ignacy Gawedzki [Thu, 14 Jul 2011 13:03:11 +0000 (15:03 +0200)]
carl9170 firmware: correct use of memset

I noticed something that may be a bug in wlan.c, in
wlan_wol_connection_monitor():

memset(nullf, 0, sizeof(nullf));

Should be:

memset(nullf, 0, sizeof(*nullf));

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: shared register file update
Christian Lamparter [Sun, 10 Jul 2011 16:48:05 +0000 (18:48 +0200)]
carl9170 firmware: shared register file update

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: fix use of uninitialized value
Christian Lamparter [Sun, 10 Jul 2011 16:45:59 +0000 (18:45 +0200)]
carl9170 firmware: fix use of uninitialized value

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: improve site survey data
Christian Lamparter [Fri, 1 Jul 2011 21:31:26 +0000 (23:31 +0200)]
carl9170 firmware: improve site survey data

Luis' automatic channel selection needs tx_time in
order to work. Trouble is, the documentation does
not mention such a counter, so a software solution
is needed.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: drop timer1
Christian Lamparter [Fri, 1 Jul 2011 12:18:09 +0000 (14:18 +0200)]
carl9170 firmware: drop timer1

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: report device tallies
Christian Lamparter [Thu, 30 Jun 2011 23:18:34 +0000 (01:18 +0200)]
carl9170 firmware: report device tallies

 - channel active counter
 - main channel clear counter
 - ext channel clear counter

 - rx total counter
 - rx overrun counter

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: update version to 1.9.4 1.9.4
Christian Lamparter [Thu, 30 Jun 2011 17:49:09 +0000 (19:49 +0200)]
carl9170 firmware: update version to 1.9.4

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: use udivsi3 to divide integers
Christian Lamparter [Thu, 30 Jun 2011 17:40:17 +0000 (19:40 +0200)]
carl9170 firmware: use udivsi3 to divide integers

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: remove noisy debug messages
Christian Lamparter [Thu, 30 Jun 2011 17:29:03 +0000 (19:29 +0200)]
carl9170 firmware: remove noisy debug messages

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: enable 5GHZ PSM
Christian Lamparter [Thu, 30 Jun 2011 17:25:53 +0000 (19:25 +0200)]
carl9170 firmware: enable 5GHZ PSM

The issue with 5GHZ PSM has been identified and fixed in
the previous commit (carl9170 firmware: fix time accouting).

Introduce a new feature flag, so the driver can check
for it.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: fix time accouting
Christian Lamparter [Thu, 30 Jun 2011 17:21:05 +0000 (19:21 +0200)]
carl9170 firmware: fix time accouting

This patch tries to partially fix the old issue with
the inaccurate clocks.

Note: It also adds a Timer1, which goes off every msec
on the clock.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: fix clock_set parameter mixup
Christian Lamparter [Thu, 30 Jun 2011 00:27:29 +0000 (02:27 +0200)]
carl9170 firmware: fix clock_set parameter mixup

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: enable -fmodulo-sched
Christian Lamparter [Wed, 29 Jun 2011 22:29:32 +0000 (00:29 +0200)]
carl9170 firmware: enable -fmodulo-sched

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/chr/carl9170fw
Christian Lamparter [Wed, 29 Jun 2011 21:59:27 +0000 (23:59 +0200)]
Merge branch 'master' of git://git./linux/kernel/git/chr/carl9170fw

12 years agocarl9170 firmware: add more compiler flags voodoo
Christian Lamparter [Wed, 29 Jun 2011 21:53:34 +0000 (23:53 +0200)]
carl9170 firmware: add more compiler flags voodoo

"Link Time Optimization (LTO) gives GCC the capability of
dumping its internal representation (GIMPLE) to disk, so
that all the different compilation units that make up a
single executable can be optimized as a single module.

This expands the scope of inter-procedural optimizations to
encompass the whole program (or, rather, everything that is
visible at link time)."

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firwmare: toolchain gcc 4.6.1 and binutils 2.20.1
Christian Lamparter [Wed, 29 Jun 2011 21:52:59 +0000 (23:52 +0200)]
carl9170 firwmare: toolchain gcc 4.6.1 and binutils 2.20.1

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: fixup const volatile register access
Christian Lamparter [Wed, 29 Jun 2011 21:45:38 +0000 (23:45 +0200)]
carl9170 firmware: fixup const volatile register access

Due to heavy usage of all sorts of different optimitations
option, the compiler tries to optimize repeated reads of
const type * away if they are not marked as volatile.
Unfortunately, this breaks the code in several places, as it
causes infinite loops while waiting for hardware to update
BUSY registers.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agoMerge git://git.kernel.org/pub/scm/linux/kernel/git/chr/carl9170fw into wol
Christian Lamparter [Sat, 28 May 2011 16:40:49 +0000 (18:40 +0200)]
Merge git://git./linux/kernel/git/chr/carl9170fw into wol

12 years agomac80211: Self-protected management frames are not robust
Thomas Pedersen [Tue, 3 May 2011 23:57:14 +0000 (23:57 +0000)]
mac80211: Self-protected management frames are not robust

They may contain encrypted information elements (as AMPE frames do)
but they are not encrypted.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocfg80211: Use capability info to detect mesh beacons.
Javier Cardona [Wed, 4 May 2011 17:24:56 +0000 (17:24 +0000)]
cfg80211: Use capability info to detect mesh beacons.

Mesh beacons no longer use all-zeroes BSSID.  Beacon frames for MBSS,
infrastructure BSS, or IBSS are differentiated by the Capability
Information field in the Beacon frame.  A mesh STA sets the ESS and IBSS
subfields to 0 in transmitted Beacon or Probe Response management
frames.

Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agomac80211: Drop MESH_PLINK category and use new ANA-approved MESH_ACTION
Javier Cardona [Tue, 3 May 2011 23:57:09 +0000 (23:57 +0000)]
mac80211: Drop MESH_PLINK category and use new ANA-approved MESH_ACTION

Note: This breaks compatibility with previous mesh protocol instances.

Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: update readme
Christian Lamparter [Wed, 25 May 2011 20:22:49 +0000 (22:22 +0200)]
carl9170 firmware: update readme

Add instructions on how to install firmware images.

Reported-by: Marius Ladegaard Meyer <marius.l.meyer@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: add cmake helpers
Christian Lamparter [Tue, 24 May 2011 22:52:59 +0000 (00:52 +0200)]
carl9170 firmware: add cmake helpers

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: update build system to accommodate for new cmake config
Christian Lamparter [Tue, 24 May 2011 22:48:27 +0000 (00:48 +0200)]
carl9170 firmware: update build system to accommodate for new cmake config

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: replace makefile with cmake
Christian Lamparter [Tue, 24 May 2011 22:38:14 +0000 (00:38 +0200)]
carl9170 firmware: replace makefile with cmake

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: initial WoWLAN support
Christian Lamparter [Fri, 13 May 2011 23:42:39 +0000 (01:42 +0200)]
carl9170 firmware: initial WoWLAN support

Unlike the previous proof-of-concept implementation, this
one supports nl80211's magic packet & disconnect wakeup
triggers. Furthermore, the trigger can be enabled from
userspace with "iw", so there's no need for a custom
firmware anymore.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: put CAB flush into a sub procedure
Christian Lamparter [Sat, 7 May 2011 15:58:03 +0000 (17:58 +0200)]
carl9170 firmware: put CAB flush into a sub procedure

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: general purpose desc for internal use
Christian Lamparter [Sat, 7 May 2011 14:42:47 +0000 (16:42 +0200)]
carl9170 firmware: general purpose desc for internal use

the new fw_desc can be used by any service routine
within the firmware to generate frames within the
firmware.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firmware: remove unnecessary initializations
Christian Lamparter [Sat, 7 May 2011 14:20:59 +0000 (16:20 +0200)]
carl9170 firmware: remove unnecessary initializations

12 years agocarl9170 firmware: enable BA REQ responder by default
Christian Lamparter [Sat, 7 May 2011 14:15:23 +0000 (16:15 +0200)]
carl9170 firmware: enable BA REQ responder by default

This feature is mandatory in the 802.11n standard.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 tools: fix error code propagation
Christian Lamparter [Fri, 6 May 2011 20:15:29 +0000 (22:15 +0200)]
carl9170 tools: fix error code propagation

eeprom_fix.c: In function ‘get_addr’:
eeprom_fix.c:44:6: warning: variable ‘err’ set but not us

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agoieee80211: add HT extended capabilities masks
Bing Zhao [Thu, 31 Mar 2011 01:01:15 +0000 (18:01 -0700)]
ieee80211: add HT extended capabilities masks

IEEE Std 802.11n, Oct. 29, 2009:
7.3.2.56.5 HT Extended Capabilities field

Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
12 years agocarl9170 firwmare: toolchain gcc 4.4.6
Christian Lamparter [Mon, 25 Apr 2011 21:41:17 +0000 (23:41 +0200)]
carl9170 firwmare: toolchain gcc 4.4.6

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware build: mkdir include/generated when not present
Christian Lamparter [Wed, 30 Mar 2011 11:41:21 +0000 (13:41 +0200)]
carl9170 firmware build: mkdir include/generated when not present

Quote from Marius L. Meyer:
I discovered what the problem was. The directory include/generated does not
exist and does not get created anywhere in the process. So when
configure/conf tries to rename .tmpconfig.h to include/generated/autoconf.h,
it fails. The problem is solved by simply creating the directory before
running autogen.sh.

Reported-by: Marius Ladegaard Meyer
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: put _start into the .boot section
Christian Lamparter [Sun, 27 Mar 2011 20:44:59 +0000 (22:44 +0200)]
carl9170 firmware: put _start into the .boot section

Without this change, the _start entry is not placed
at the correct position and as a result the firmware
boot fails.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firwmare: toolchain gcc 4.6.0
Christian Lamparter [Sun, 27 Mar 2011 18:48:46 +0000 (20:48 +0200)]
carl9170 firwmare: toolchain gcc 4.6.0

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: fix gcc-4.6 compiler warnings
Christian Lamparter [Fri, 11 Mar 2011 23:09:43 +0000 (00:09 +0100)]
carl9170 firmware: fix gcc-4.6 compiler warnings

include/timer.h:87:20: warning: inlining failed in call to \
‘clock_set’: call is unlikely and code size would grow [-Winline]

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: fix uninitialized txfail variable
Christian Lamparter [Fri, 11 Mar 2011 23:01:26 +0000 (00:01 +0100)]
carl9170 firmware: fix uninitialized txfail variable

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agoieee80211: add IEEE80211_COUNTRY_STRING_LEN definition
Bing Zhao [Mon, 7 Mar 2011 19:14:23 +0000 (11:14 -0800)]
ieee80211: add IEEE80211_COUNTRY_STRING_LEN definition

Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agoMerge carl9170fw
Christian Lamparter [Fri, 11 Mar 2011 00:42:35 +0000 (01:42 +0100)]
Merge carl9170fw

Conflicts:
carlfw/Kconfig
carlfw/include/wl.h
carlfw/src/wlan.c

13 years agocarl9170 firmware: simplify BACKREQ pool handling
Christian Lamparter [Fri, 11 Mar 2011 00:05:09 +0000 (01:05 +0100)]
carl9170 firmware: simplify BACKREQ pool handling

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: more useful tx_queue hw registers names
Christian Lamparter [Fri, 11 Mar 2011 00:00:17 +0000 (01:00 +0100)]
carl9170 firmware: more useful tx_queue hw registers names

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: optimize tx_status hot-path
Christian Lamparter [Thu, 10 Mar 2011 23:53:25 +0000 (00:53 +0100)]
carl9170 firmware: optimize tx_status hot-path

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: drop failed frames faster
Christian Lamparter [Sat, 5 Mar 2011 22:48:07 +0000 (23:48 +0100)]
carl9170 firmware: drop failed frames faster

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: handle download queue exceptions
Christian Lamparter [Tue, 8 Mar 2011 23:49:28 +0000 (00:49 +0100)]
carl9170 firmware: handle download queue exceptions

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: add option to silence MAC RESET notifications
Christian Lamparter [Sat, 5 Mar 2011 23:22:38 +0000 (00:22 +0100)]
carl9170 firmware: add option to silence MAC RESET notifications

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: update feature descriptor
Christian Lamparter [Sat, 5 Mar 2011 23:34:21 +0000 (00:34 +0100)]
carl9170 firmware: update feature descriptor

 * CARL9170FW_PSM depends on RF

 * bump OTAR header revision

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: rework parts of dma_put & dma_reclaim
Christian Lamparter [Sat, 5 Mar 2011 21:46:29 +0000 (22:46 +0100)]
carl9170 firmware: rework parts of dma_put & dma_reclaim

Not that it would fix anything.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: reverse QoS queue mapping
Christian Lamparter [Fri, 4 Mar 2011 23:18:04 +0000 (00:18 +0100)]
carl9170 firmware: reverse QoS queue mapping

This seems to work much better than the mapping
from Atheros original source.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: update version to 1.9.3 1.9.3
Christian Lamparter [Fri, 4 Mar 2011 20:13:21 +0000 (21:13 +0100)]
carl9170 firmware: update version to 1.9.3

13 years agocarl9170 firmware: remove outdated defconfig
Christian Lamparter [Fri, 4 Mar 2011 20:10:59 +0000 (21:10 +0100)]
carl9170 firmware: remove outdated defconfig

There's no need for it anyway, the "default"
options are already specified by the Kconfig
files.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: merge CARL9170FW_PSM with the standard RF code
Christian Lamparter [Fri, 4 Mar 2011 20:08:49 +0000 (21:08 +0100)]
carl9170 firmware: merge CARL9170FW_PSM with the standard RF code

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: always enable HW watchdog
Christian Lamparter [Fri, 4 Mar 2011 19:49:57 +0000 (20:49 +0100)]
carl9170 firmware: always enable HW watchdog

Ultimately, this is a mandatory feature and
must be activated.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: integrate TX_AMPDU & DELAYED_TX
Christian Lamparter [Fri, 4 Mar 2011 19:45:07 +0000 (20:45 +0100)]
carl9170 firmware: integrate TX_AMPDU & DELAYED_TX

This patch fixes a few outstanding issues with the
two options and integrates the features into the
default build.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agoMerge http://git.kernel.org/pub/scm/linux/kernel/git/chr/carl9170fw
Christian Lamparter [Mon, 28 Feb 2011 19:07:48 +0000 (20:07 +0100)]
Merge git./pub/scm/linux/kernel/git/chr/carl9170fw

13 years agocarl9170 firmware: fix ProbeReq WOL Kconfig selection
Christian Lamparter [Sat, 26 Feb 2011 22:34:26 +0000 (23:34 +0100)]
carl9170 firmware: fix ProbeReq WOL Kconfig selection

The config option CARL9170FW_WOL_CHECK was renamed
to CARL9170FW_WOL.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/chr/carl9170fw
Christian Lamparter [Sat, 26 Feb 2011 00:25:47 +0000 (01:25 +0100)]
Merge branch 'master' of git://git./linux/kernel/git/chr/carl9170fw

13 years agocarl9170 firmware: integrate TX_AMPDU & DELAYED_TX
Christian Lamparter [Thu, 24 Feb 2011 19:47:32 +0000 (20:47 +0100)]
carl9170 firmware: integrate TX_AMPDU & DELAYED_TX

This patch fixes a few outstanding issues with the
two options and integrates the features into the
default build.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agoMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/chr/carl9170fw
Christian Lamparter [Wed, 16 Feb 2011 18:53:08 +0000 (19:53 +0100)]
Merge branch 'master' of git://git./linux/kernel/git/chr/carl9170fw

13 years agocarlu: fix error code propagation
Christian Lamparter [Tue, 15 Feb 2011 11:02:54 +0000 (12:02 +0100)]
carlu: fix error code propagation

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: update copyright boilerplate
Christian Lamparter [Mon, 14 Feb 2011 23:31:11 +0000 (00:31 +0100)]
carl9170 firmware: update copyright boilerplate

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: various small updates
Christian Lamparter [Mon, 14 Feb 2011 22:45:01 +0000 (23:45 +0100)]
carl9170 firmware: various small updates

 * remove outdated Kconfig option

 * fix carlu firmware location

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware build: simplify build process
Christian Lamparter [Mon, 14 Feb 2011 14:32:15 +0000 (15:32 +0100)]
carl9170 firmware build: simplify build process

Several users tried to use the generated carl9170.fw
without applying the firmware descriptor first. This
will obviously not work... Now cmake takes care of
this step as well and I have to say that it now looks
less confusing than before ;).

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarlu: fix hexdump formatting
Christian Lamparter [Fri, 11 Feb 2011 17:01:32 +0000 (18:01 +0100)]
carlu: fix hexdump formatting

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agoieee80211: correct IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK macro
Amitkumar Karwar [Wed, 26 Jan 2011 15:25:20 +0000 (16:25 +0100)]
ieee80211: correct IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK macro

It is defined in include/linux/ieee80211.h. As per IEEE spec.
bit6 to bit15 in block ack parameter represents buffer size.
So the bitmask should be 0xFFC0.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Cc: stable@kernel.org
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: Wake-up on rx'ed Probe Request
Christian Lamparter [Tue, 25 Jan 2011 14:26:51 +0000 (15:26 +0100)]
carl9170 firmware: Wake-up on rx'ed Probe Request

This option allows the firmware to wakeup the host,
when it receives a probe request for a given SSID.

The advantage of this solution is that it works with
almost all client devices and various operating
systems. No special injection or [unencrypted] network
setup is required, just "active scan".

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: optimize carl9170_tx_superframe access
Christian Lamparter [Sun, 23 Jan 2011 21:06:07 +0000 (22:06 +0100)]
carl9170 firmware: optimize carl9170_tx_superframe access

Setting __aligned allows gcc to produce more compact
binaries.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: fix gcc alignment warnings
Christian Lamparter [Sun, 23 Jan 2011 21:01:05 +0000 (22:01 +0100)]
carl9170 firmware: fix gcc alignment warnings

warning: cast increases required alignment of target type.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware tools: show number of generated frames
Christian Lamparter [Sat, 22 Jan 2011 23:43:48 +0000 (00:43 +0100)]
carl9170 firmware tools: show number of generated frames

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: per-vif tx sequence counter
Christian Lamparter [Sat, 22 Jan 2011 19:52:56 +0000 (20:52 +0100)]
carl9170 firmware: per-vif tx sequence counter

mac80211 will properly assign sequence numbers to QoS-data frames
but cannot do so correctly for non-QoS-data and management frames
because beacons need them from that counter as well and mac80211
cannot guarantee proper sequencing.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: reorder SUSPEND/RESUME/WOL paths
Christian Lamparter [Sun, 16 Jan 2011 14:17:48 +0000 (15:17 +0100)]
carl9170 firmware: reorder SUSPEND/RESUME/WOL paths

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware tools: wol stop after inject error
Christian Lamparter [Sun, 16 Jan 2011 14:16:06 +0000 (15:16 +0100)]
carl9170 firmware tools: wol stop after inject error

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware tools: sample WOL packet generator
Christian Lamparter [Sun, 16 Jan 2011 02:10:54 +0000 (03:10 +0100)]
carl9170 firmware tools: sample WOL packet generator

Generates a MAGIC WOL packet.

- Note -

Monitor interfaces [with injection] can be easily created by "iw".
<http://wireless.kernel.org/en/users/Documentation/iw#Adding_interfaces_with_iw>

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: Wake-on-LAN support
Christian Lamparter [Sun, 16 Jan 2011 00:11:18 +0000 (01:11 +0100)]
carl9170 firmware: Wake-on-LAN support

With this feature enabled, the device will stay
active while the host goes into System Standby
[Suspend to RAM!].

Furthermore, it scans all incoming 802.11 data frames
for a MAGIC WOL pattern and - when found - propagates
the wake-up call to the USB Host.

Notes/Limitations:
* Your host has to support USB remote wake-up.
  [In some cases, /proc/acpi/wakeup has to be
   configured as well - see Google for more
   details]

* The MAC address is taken from the device EEPROM.
  [so, ifconfig dev hw ether overrides don't
   work (yet)]

* The magic pattern has to be within the first
  320 bytes of the data frame.

* The magic frames has to be send unencrypted.
  Therefore the WOL initiator has to support
  frame injection [not a problem for most
  mac80211-based drivers].

* The initatior need to be in range and on the
  same channel as well.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: update headers for WOL
Christian Lamparter [Sun, 16 Jan 2011 00:07:39 +0000 (01:07 +0100)]
carl9170 firmware: update headers for WOL

This patch adds a few definitions for wake up on LAN.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agoieee80211: add ieee80211_hdrlen helper from cfg80211.h
Christian Lamparter [Sun, 16 Jan 2011 00:05:08 +0000 (01:05 +0100)]
ieee80211: add ieee80211_hdrlen helper from cfg80211.h

ieee80211_hdrlen is a non-standard extenstion,
therefore it has to go into a separate commit.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarlu: random number generator test
Christian Lamparter [Thu, 13 Jan 2011 13:58:41 +0000 (14:58 +0100)]
carlu: random number generator test

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware tools: fix libcarlfw on 64bit cpus
Christian Lamparter [Thu, 13 Jan 2011 13:45:51 +0000 (14:45 +0100)]
carl9170 firmware tools: fix libcarlfw on 64bit cpus

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware tools: fix compiler warnings
Christian Lamparter [Thu, 13 Jan 2011 13:38:33 +0000 (14:38 +0100)]
carl9170 firmware tools: fix compiler warnings

fwinfo.c:258: warning: format ‘%u’ expects type ‘unsigned int’, but argument 3 has type ‘size_t’
eeprom_fix.c:235: warning: overflow in implicit constant conversion

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware toolchain: newlib 1.19.0
Christian Lamparter [Thu, 13 Jan 2011 12:13:39 +0000 (13:13 +0100)]
carl9170 firmware toolchain: newlib 1.19.0

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarlu: fix conflicting function declaration types
Christian Lamparter [Thu, 13 Jan 2011 12:09:05 +0000 (13:09 +0100)]
carlu: fix conflicting function declaration types

rx.c:52: error: conflicting types for ‘carlu_handle_command’
carlu.h:143: note: previous declaration of ‘carlu_handle_command’ was here

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agomac80211: Remove unused third address from mesh address extension header.
Javier Cardona [Fri, 17 Dec 2010 01:23:34 +0000 (17:23 -0800)]
mac80211: Remove unused third address from mesh address extension header.

The Mesh Control header only includes 0, 1 or 2 addresses. If there is
one address, it should be interpreted as Address 4.  If there are 2,
they are interpreted as Addresses 5 and 6 (Address 4 being the 4th
address in the 802.11 header).

The address extension used to hold up to 3 addresses instead of the current 2.
I'm not sure which draft version changed this, but it is very unlikely that it
will change again given the state of the approval process of this draft.  See
section 7.1.3.6.3 in current draft (8.0).

Also, note that the extra address that I'm removing was not being used, so this
change has no effect on over-the-air frame formats.  But I thought I better
remove it before someone does start using it.

Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agomac80211: Let userspace enable and configure vendor specific path selection.
Javier Cardona [Fri, 17 Dec 2010 01:37:49 +0000 (17:37 -0800)]
mac80211: Let userspace enable and configure vendor specific path selection.

Userspace will now be allowed to toggle between the default path
selection algorithm (HWMP, implemented in the kernel), and a vendor
specific alternative.  Also in the same patch, allow userspace to add
information elements to mesh beacons.  This is accordance with the
Extensible Path Selection Framework specified in version 7.0 of the
802.11s draft.

Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: fix CAB MAC RESET regression
Christian Lamparter [Wed, 5 Jan 2011 18:27:46 +0000 (19:27 +0100)]
carl9170 firmware: fix CAB MAC RESET regression

commit "carl9170 firmware: improve tx ampdu ba_end handling"
introduced a serious regression.

Since the wlan_trigger was missing, the flushed CAB frames
were stuck in tx queue. This of course lead to countless
warnings from the tx watchdog as it reseted the MAC
processor over and over again.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: fix inaccurate delay calculation
Christian Lamparter [Wed, 5 Jan 2011 16:14:59 +0000 (17:14 +0100)]
carl9170 firmware: fix inaccurate delay calculation

The internal refclock is set by the driver to either:
44MHz - when the device operates on a 2.4 GHz channel
40MHz - 5GHz Band

This patch removes the previously used "80MHz" constant
(that's wrong anyway since this is the HT40 AHB/CPU clock)
and enhance the code so it can deal with the slight clock
speed variations.

Reported-by: Ignacy Gawedzki <i@lri.fr>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: improve tx ampdu ba_end handling
Christian Lamparter [Mon, 3 Jan 2011 21:53:46 +0000 (22:53 +0100)]
carl9170 firmware: improve tx ampdu ba_end handling

According to the documentation, the hardwire MAC helps
forming an aggregated frame.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: fix CAB queue delivery
Christian Lamparter [Mon, 3 Jan 2011 21:22:51 +0000 (22:22 +0100)]
carl9170 firmware: fix CAB queue delivery

This patch fixes a problem were frames - destined for
after-DTIM delivery - would just skip the waiting stage.

However, DELAYED_TX is not enabled by default. So, only
the few people who use a custom, non-standard firmware
will be affected.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: reorganize wlan context members
Christian Lamparter [Mon, 3 Jan 2011 21:16:14 +0000 (22:16 +0100)]
carl9170 firmware: reorganize wlan context members

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: return to the default clock rate before rebooting 1.9.2
Christian Lamparter [Sat, 25 Dec 2010 17:11:31 +0000 (18:11 +0100)]
carl9170 firmware: return to the default clock rate before rebooting

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: update version to 1.9.2
Christian Lamparter [Sat, 25 Dec 2010 01:55:13 +0000 (02:55 +0100)]
carl9170 firmware: update version to 1.9.2

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: replace a few FUSB200 magics
Christian Lamparter [Sat, 25 Dec 2010 01:50:34 +0000 (02:50 +0100)]
carl9170 firmware: replace a few FUSB200 magics

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: refactor suspend/resume callbacks
Christian Lamparter [Sat, 25 Dec 2010 01:23:28 +0000 (02:23 +0100)]
carl9170 firmware: refactor suspend/resume callbacks

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: add some more Faraday's FUSB200 defs
Christian Lamparter [Sat, 25 Dec 2010 01:19:51 +0000 (02:19 +0100)]
carl9170 firmware: add some more Faraday's FUSB200 defs

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
13 years agocarl9170 firmware: remove static rx chainmask register update
Christian Lamparter [Tue, 21 Dec 2010 21:47:58 +0000 (22:47 +0100)]
carl9170 firmware: remove static rx chainmask register update

The driver takes care of both chainmasks values.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>