From f57b67f6b2c243c5acc90aa2a3e830c6ba2b0bd5 Mon Sep 17 00:00:00 2001 From: dufour Date: Wed, 14 Apr 2010 08:57:04 +0000 Subject: cesar/{mac/sar,ce/rx}: update SAR callback to get BER, closes #1442 PB measurements are no longer given by the SAR CB: it directly pre-computes the BER sum (on PBs with no CRC error), the total count of PBs inside the frame and the count of PBs with CRC error in the frame. In the CE, measure now contains: - RX params, - channel data if there are some, - some statistics (total PBs count, total false PBs, BER sum) No need any more to give some pointer to the SAR, measure data are directly delivered from the SAR for copy. Configuration for "PB measurements get flag" is now removed from the CE. Tests have been updated. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@6922 017c9cb6-072f-447c-8318-d5b54f68fe89 --- cesar/test_general/dataplane/src/test_dataplane.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'cesar/test_general/dataplane') diff --git a/cesar/test_general/dataplane/src/test_dataplane.c b/cesar/test_general/dataplane/src/test_dataplane.c index f7916a9d40..5219ddc8b6 100644 --- a/cesar/test_general/dataplane/src/test_dataplane.c +++ b/cesar/test_general/dataplane/src/test_dataplane.c @@ -57,19 +57,15 @@ cp_mme_buffer_add (void *user_data, u8 *buffer) #endif /* CONFIG_FCALL_MME */ /* Stub. */ -bool -ce_measurements (void *user, pbproc_rx_params_t *rx_params, uint pb_nb, - blk_t **first, blk_t **last, pb_t *chandata, - uint nb_chandata, u8 **ce_pb_crc_error) +void +ce_measurements (void *data, pbproc_rx_params_t *rx_params, + uint total_pb_count, pb_t *chan_data, + uint chan_data_count, u8 false_pb_count, u32 ber_sum) { - *first = NULL; - *last = NULL; - if (chandata) - blk_release_desc_range_nb (&chandata->blk, nb_chandata); + if (chan_data) + blk_release_desc_range_nb (&chan_data->blk, chan_data_count); /* Pretend it was encrypted. */ rx_params->eks = 1; - *ce_pb_crc_error = NULL; - return false; } static void -- cgit v1.2.3