Skip to content

Commit

Permalink
Remove built-in sniffer support: CC13xx PROP mode
Browse files Browse the repository at this point in the history
  • Loading branch information
g-oikonomou committed Aug 12, 2016
1 parent 0de1dc1 commit dbd4f63
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
32 changes: 0 additions & 32 deletions cpu/cc26xx-cc13xx/rf-core/prop-mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,6 @@
#define PROP_MODE_USE_CRC16 0
#endif
/*---------------------------------------------------------------------------*/
#ifdef PROP_MODE_CONF_SNIFFER
#define PROP_MODE_SNIFFER PROP_MODE_CONF_SNIFFER
#else
#define PROP_MODE_SNIFFER 0
#endif

#if PROP_MODE_SNIFFER
static const uint8_t magic[] = { 0x53, 0x6E, 0x69, 0x66 };
#endif
/*---------------------------------------------------------------------------*/
/**
* \brief Returns the current status of a running Radio Op command
* \param a A pointer with the buffer used to initiate the command
Expand Down Expand Up @@ -773,28 +763,6 @@ read_frame(void *buf, unsigned short buf_len)
}

packetbuf_set_attr(PACKETBUF_ATTR_RSSI, (int8_t)data_ptr[len]);

#if PROP_MODE_SNIFFER
{
int i;

cc26xx_uart_write_byte(magic[0]);
cc26xx_uart_write_byte(magic[1]);
cc26xx_uart_write_byte(magic[2]);
cc26xx_uart_write_byte(magic[3]);

cc26xx_uart_write_byte(len + 2);

for(i = 0; i < len; ++i) {
cc26xx_uart_write_byte(((uint8_t *)(buf))[i]);
}

cc26xx_uart_write_byte((uint8_t)rx_stats.lastRssi);
cc26xx_uart_write_byte(0x80);

while(cc26xx_uart_busy() == UART_BUSY);
}
#endif
}

/* Move read entry pointer to next entry */
Expand Down
4 changes: 0 additions & 4 deletions platform/srf06-cc26xx/contiki-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@
#ifndef RF_BLE_CONF_ENABLED
#define RF_BLE_CONF_ENABLED 0 /**< 0 to disable BLE support */
#endif

#ifndef PROP_MODE_CONF_SNIFFER
#define PROP_MODE_CONF_SNIFFER 0 /**< 1 to enable sniffer mode */
#endif
/** @} */
/*---------------------------------------------------------------------------*/
/** @} */
Expand Down

0 comments on commit dbd4f63

Please sign in to comment.