dect
/
linux-2.6
Archived
13
0
Fork 0
Commit Graph

21 Commits

Author SHA1 Message Date
Patrick McHardy 70711d2235 Linux 3.8
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2.0.19 (GNU/Linux)
 
 iQEcBAABAgAGBQJRIsBOAAoJEHm+PkMAQRiGqq8IAKQvtCu/V3jVpEHDg6CwvKkT
 0gNjWyBO1gKyYwxTOLy9mtzu+4dgeGqhg5KdTPi4GIqWLHqjw3cSk+MbEqh64cz4
 WXSYvKL5EUDdbU8GCn/UIGgUA/9Yc3ORN8NuF3yMoqqY2oqvoYdxdL5LRu2tKcUV
 JzgziX1MCxKyOQG8XXgiMaJJapIO43YvkOE1hwMVQHAlew2lX8ki7oUXk52CGAs6
 TFXDVqWRZibsP5mA4BPtXyA7YGJDqTXrmtnHygmz2lrxn5yLICkQ8qC2KjQBHbbP
 N62dz2bj042WF60yj3BE5PlkG/vzf34BDKd9C+nZrw7Y0PgIVQElemvWoV6vwmE=
 =7k5r
 -----END PGP SIGNATURE-----

Merge tag 'v3.8' of /home/kaber/src/repos/linux

Linux 3.8

Signed-off-by: Patrick McHardy <kaber@trash.net>

Conflicts:
	include/linux/Kbuild
	include/linux/netlink.h
2013-03-31 18:10:34 +02:00
Patrick McHardy a6f3c814f9 dect: coa: fix firmware for PCMCIA devices
Reduce the size by merging the Receive- and ReceiveSync paths and
re-enable a few instructions necessary for the PCMCIA device.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-10-05 17:10:27 +02:00
Patrick McHardy 477bd356e8 dect: coa: add P640j support
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-07-22 15:55:12 +02:00
Patrick McHardy 3b15b97a7a dect: coa: remove support for P32P packet format
Can be implemented in software if needed, for the space is required for
P640j support.

Signed-off-by: Patrick MCHardy <kaber@trash.net>
2011-07-17 13:06:07 +02:00
Patrick McHardy ea49abac60 dect: fix scanning regression
Commit e783777 (dect: coa: write BMC configuration when setting
channel mode) moved writing the BMC configuration to the mode
setting callback.

The MAC CSF layer however didn't set the channel mode to SCANNING
when initiating a scan since BMC configuration was done during
initialization and mode setting in dect_transceiver_enable(). With
the above mentioned commit the BMC is never properly configured,
meaning the scan fails.

Properly set the mode of DECT_SCAN_SLOT to DECT_MODE_SCANNING when
initiating a scan to fix this.

Additionally get rid of the unnecessary BMC initialization when
initializing the DIP, this is done immediately afterwards anyways.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-06-17 07:01:09 +02:00
Patrick McHardy 463f33bcc1 dect: coa: fix syncying in PP/slave mode
The SyncLoop needs to manually reinitialize the radio since the
individual receive functions don't do this anymore.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-05-13 15:41:04 +02:00
Patrick McHardy a5bec753cc dect: coa: optimize per-slot memory layout
- merge DCS state and DCS IV/Key space: the IV and key are reinialized
  on every slot, so we can re-use their space for the DCS state at the
  end of the slot.

- pack radio configuration and BMC control data and move adjacent to
  the DCS space.

This results in 87 bytes of free space for the B-Field data.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-04-20 16:25:41 +02:00
Patrick McHardy e783777ac8 dect: coa: write BMC configuration when setting channel mode
Write the BMC configuration when setting the channel mode. This allows
to reserve memory for only a single configuration for both RX and TX.

Additionally it will in the future be used to configure S-field error
parameters dynamically.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-04-20 16:25:21 +02:00
Patrick McHardy 16faf2d44c dect: coa: support operation on all slots
Support operation on uneven slot numbers. The firmware is rewritten to
follow the following scheme:

- each slot has an entry in the SlotTable consisting of two
  intructions

- idle slots use WT 1 + WNT 1

- for active slots the previous slot is programmed to switch
  to the proper memory bank and initialize the BMC/radio

- the actual slot is programmed to jump to one the receive or
  transmit functions

The transceiver layer takes care of scheduling operation only
on slots that are surrounded by idle slots based on the
DECT_TRANSCEIVER_SLOW_HOPPING feature flag.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-04-12 02:39:20 +02:00
Patrick McHardy 8e819940f0 dect: coa: don't load BMC config twice on TX
Move RX BMC configuration from the radio initialization to the
receive functions to avoid double configuration on TX.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-04-12 02:27:35 +02:00
Patrick McHardy 2e21102c9c dect: coa: firmware: use symbolic constants for P_SC argument
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-04-06 15:34:09 +02:00
Patrick McHardy 83463f3ec3 dect: coa: reduce firmware size
Save a couple of instructions by moving the protected B-field transmission
and reception code directly into the calling functions. With this change all
receive and transmit functions call their respective B-field processing
functions in a similar fashion, allowing to remove the WT 1 for the last
A-field bit after Receive/Transmit, saving a total of 6 instructions.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-04-06 15:22:51 +02:00
Patrick McHardy 043090cc70 dect: coa: support switching to scanning mode from locked state
Patch the slot table to jump to the scanning functions when unlocking
the transceiver.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-05-27 03:45:06 +02:00
Patrick McHardy 647ee2ecbb dect: coa: add clock sync support for secondary transceivers
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-12-04 11:04:12 +01:00
Patrick McHardy d183201d51 dect: coa: fix P00 reception
Apparently the sc1442x doesn't properly update the BMC status information unless
reception of the B-field is begun. This causes P00 slots to be incorrectly detected
as out of sync.

Add two (otherwise unnecessary) commands to finish the A-field and begin reception
of the B-field before disabling the receiver.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-28 14:47:32 +01:00
Patrick McHardy 53bb9793bc dect: coa: add ciphering support
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-27 18:32:05 +01:00
Patrick McHardy 1cf568130f dect: clean up firmware a bit and add P00 receive function
- rename Receive and Transmit functions to RX_ and TX_

- add P00 receive function. This is necessary for channel measurement,
  which should measure only over the real packet length.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-26 10:03:17 +01:00
Patrick McHardy 2f73d018c5 dect: coa: disable phase adjustment in FP mode
Signed-off-by: Patrick McHardy <kaber@gw.localnet>
2009-05-29 04:17:02 +02:00
Patrick McHardy 0177cdf10e dect: coa: continously synchronize clock with FP in PP mode
Use P_SC on reception in PP mode to keep the clock synchronized to the FP.
This reduces the phase offset between two coa devices from 15kHz to < 0.5kHz.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-16 18:03:59 +02:00
Patrick McHardy 1e1e4e3500 dect: com-on-air: fix PCMCIA Type II cards
Apparently the Type II cards don't work properly unless the Codec is
disabled - scanning, channel hopping etc. is performed, but no FPs
are found at all.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-07 16:23:08 +02:00
Patrick McHardy 136a3a2801 dect: com-on-air: rename sc14421 to sc1442x
Rename all files, constants and functions to reflect the fact that the
driver handles the 14424 as well.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-07 02:23:35 +02:00