Commit 6bf88d88 authored by bussotti's avatar bussotti

Update pdcp_benchmark.c

parent 3c522a8e
...@@ -48,21 +48,20 @@ int main(int argc, char *argv[]) ...@@ -48,21 +48,20 @@ int main(int argc, char *argv[])
int resQ; int resQ;
do{ do{
printf("Type in the test you want (1 or 2)"); printf("Type in the test you want (1 or 2)");
scanf("%d",resQ); scanf("%d",&resQ);
}while(resQ!=1 ||resQ != 2); }while(resQ!=1 ||resQ != 2);
pool_buffer_init(); pool_buffer_init();
list_init(&pdu_tx_list, NULL); list_init(&pdu_tx_list, NULL);
logInit(); logInit();
pdcp_el->next_pdcp_tx_sn = 0; pdcp_el.next_pdcp_tx_sn = 0;
pdcp_el->next_pdcp_rx_sn = 0; pdcp_el.next_pdcp_rx_sn = 0;
pdcp_el->tx_hfn = 0; pdcp_el.tx_hfn = 0;
pdcp_el->rx_hfn = 0; pdcp_el.rx_hfn = 0;
/* SN of the last PDCP SDU delivered to upper layers */ pdcp_el.last_submitted_pdcp_rx_sn = 4095;
pdcp_el->last_submitted_pdcp_rx_sn = 4095; pdcp_el.seq_num_size = 12;
pdcp_el->seq_num_size = 12; pdcp_el.cipheringAlgorithm = (resQ==1?"EEA1_128_ALG_ID":"EEA2_128_ALG_ID");
pdcp_el->cipheringAlgorithm = (resQ==1?"EEA1_128_ALG_ID":"EEA2_128_ALG_ID"); pdcp_data_req(0, 0, 10, DUMMY_BUFFER, &pdcp_el, &pdu_tx_list);
pdcp_data_req(0, 0, 10, DUMMY_BUFFER, pdcp_el, &pdu_tx_list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment