diff --git a/drivers/wireless/cc3000/cc3000.c b/drivers/wireless/cc3000/cc3000.c index 66bf04ee5c..b6978d7b8b 100644 --- a/drivers/wireless/cc3000/cc3000.c +++ b/drivers/wireless/cc3000/cc3000.c @@ -681,7 +681,7 @@ static void * cc3000_worker(FAR void *arg) */ data_to_recv = (uint16_t)priv->rx_buffer.pbuffer[READ_OFFSET_TO_LENGTH] << 8 |; - (uint16_t)priv->rx_buffer.pbuffer[READ_OFFSET_TO_LENGTH]; + (uint16_t)priv->rx_buffer.pbuffer[READ_OFFSET_TO_LENGTH + 1]; if (data_to_recv) {