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

38 Commits

Author SHA1 Message Date
Patrick McHardy 77a5606155 dect: coa: reduce banktable size
Reduce the size of the bank table and make it usable for uneven
slots as well.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-04-12 02:38:29 +02:00
Patrick McHardy 648ed7b1c1 dect: replace transceiver slotmask by features flag and use to compute blind slots
Use DECT_TRANSCEIVER_SLOW_HOPPING feature to calculate blind slots.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-04-12 02:31:15 +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 7bff85f263 Revert "dect: ccf: add support for software ciphering"
This reverts commit 3253b4dd51.

Accidentally committed, code is not ready yet and only works
occasionaly.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-03-19 02:34:29 +01:00
Patrick McHardy 3253b4dd51 dect: ccf: add support for software ciphering
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-03-17 11:04:08 +01:00
Patrick McHardy 7819c618e9 dect: coa: warn on unsupported slots
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-06 19:17:27 +02:00
Patrick McHardy cca4ba902f dect: mac: implement PP handover
Trigger handover based on indicated slot errors as per ETSI EN 300 175-3
section 11.4.5. Sliding collision indications based on the Q1/Q2 bits is
currently ignores since there appears to be a bug in the sc1442x firmware
in transmitting the Z-field. Additionally bearer-reattempt rate-limiting
is currently missing.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-10 16:58:57 +02:00
Patrick McHardy 3a5d82dee0 dect: coa: clear interrupts on shutdown
Clear interrupt on shutdown instead of on init to avoid spurious interrupts
when probing the device.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-04 09:34:05 +02:00
Patrick McHardy ec15ddfabb dect: add DECT standard cipher
Not integrated yet though.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-22 19:12:21 +02:00
Patrick McHardy b4b93a19e8 dect: coa: clear all pending interrupts on init
Occasionally after an error the card will deliver spurious interrupts when
reloading the driver. Clear all pending interrupts to avoid this.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-17 17:39:53 +02:00
Patrick McHardy 4b22db81c9 dect: coa: use register definitions for clarity
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-11 03:59:11 +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 fdfac4129d dect: coa: toggle LEDs based on frames received and transmitted
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-05-27 03:44:28 +02:00
Patrick McHardy ee4666b5b9 dect: coa: fix firmware patching for secondary FP transceivers
Ciphering and synchronization options are similar to the primary
transceiver (the sync bearer is handled seperately), only the
entry points of primary and secondaries differ.

Signed-off-by: Patrick McHardy <kaber@gw.localnet>
2009-12-31 17:28:30 +01: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 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 d11b2d6f9e dect: coa: don't reinitialize radio configuration
There's no need to reinitialize the radio configuration when changing
channel modes, just initialize it once in sc1442x_init_slot().

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-26 10:03:16 +01:00
Patrick McHardy 634dac446d dect: maintain X-crc error statistics
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-26 03:16:22 +01:00
Patrick McHardy 80f8beda34 dect: coa: change memory pointers in sc1442x_{from,to}_dmem() to void *
void * is the proper type to use for a memcpy-like function.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-24 02:38:40 +01:00
Patrick McHardy a531b99614 dect: add A-field CRC error statistics counter
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-07-18 07:49:33 +02:00
Patrick McHardy a3e905288a dect: coa: fix IRQ mask to include timer
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-30 11:50:24 +02: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 fc542b4100 dect: coa: fix typo
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-29 02:33:12 +02:00
Patrick McHardy 76e2a79484 dect: coa: move LED toggling out of loop
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-28 17:52:17 +02:00
Patrick McHardy 1449f2c279 dect: coa: add some symbolic constants, LED support
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-28 17:06:46 +02:00
Patrick McHardy 61ef5ce8de dect: coa: fix preamble transmission
The first byte of the transmitted preamble is currently zero. For some
reason the firmware transmits 5 bytes of firmware, my assumption is that
the first byte is used during ramp-up of the radio.

According to ETS 175 300-02 Chapter 4.9, the ramp-up pattern must be
either the natural extension of the preamble pattern, or the value 0.
Both appear to work equally good, which seems to confirm my assumption.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-18 01:14:23 +02:00
Patrick McHardy a9363ec735 dect: handle A-field checksum errors manually
Accept non-P00 packets with A-field CRC errors and filter them in
software. I_N minimum delay bearers may still accept the B-field.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-17 19:28:50 +02:00
Patrick McHardy be838ce33b dect: coa: improve IO speed
Use 16 bit writes when copying larger amounts of data. This improves
both read and write speed by roughly 30% in case of the PCMCIA device.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-17 11:49:13 +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 a5e6a087cc dect: coa: rate-limit interrupt-lost notice
During a crash in softirq context the message makes the oops scroll off the
display.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-15 17:21:03 +02:00
Patrick McHardy d15e9bfc88 dect: com-on-air: phase offset calculation
Calculate the phase offset of RX slots and maintain averaged value.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-10 18:37:34 +02:00
Patrick McHardy cdf5f258ea dect: com-on-air: sparse locking annotations
Add proper annotations to fix sparse warning:

drivers/dect/coa/sc1442x.c:234:13: warning: context imbalance in 'sc1442x_lock_mem' - wrong count at exit
drivers/dect/coa/sc1442x.c:239:13: warning: context imbalance in 'sc1442x_unlock_mem' - unexpected unlock

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-07 16:48:44 +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 d212d4b5c5 dect: com-on-air: lock chip memory accesses
Access to the chip memory needs to be serialized to avoid races between
switch to a bank and actually using it.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-07 15:10:47 +02:00
Patrick McHardy 26d0d96763 dect: com-on-air: fix up rename
The symbolic names should use an upper case 'X'.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-07 02:29:36 +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