altos/cc1200: Open up preamble detect to improve sensitivity
authorKeith Packard <keithp@keithp.com>
Mon, 24 Nov 2014 02:50:57 +0000 (18:50 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 24 Nov 2014 02:50:57 +0000 (18:50 -0800)
Increase soft decision PQT value to max (15) to ensure that we detect
even weak packets.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_cc1200_CC1200.h

index c078c09d3a628795b1fd9ab65fe9d419b688cc21..c54971960b90172df34d4f142b3c9c172cb33805 100644 (file)
@@ -46,7 +46,7 @@
         CC1200_PREAMBLE_CFG0,                           /* Preamble Detection Configuration Reg. 0 */
                ((1 << CC1200_PREAMBLE_CFG0_PQT_EN) |
                 (CC1200_PREAMBLE_CFG0_PQT_VALID_TIMEOUT_11 << CC1200_PREAMBLE_CFG0_PQT_VALID_TIMEOUT) |
-                (6 << CC1200_PREAMBLE_CFG0_PQT)),
+                (15 << CC1200_PREAMBLE_CFG0_PQT)),
         CC1200_IQIC,                         0xcb,       /* Digital Image Channel Compensation Configuration */
         CC1200_CHAN_BW,                      0x11,       /* Channel Filter Configuration */
         CC1200_MDMCFG1,                      0x40,       /* General Modem Parameter Configuration Reg. 1 */