mirror of https://github.com/PentHertz/srsLTE.git
c7343cf6d8
this patch adds a buffer len paramter to the receive_samples() call that protects the (also) provided buffer from overflowing. currently each call to srslte_ue_sync_zerocopy() which then calls receive_samples() relies on a buffer that is "big enough". But that buffer is sometimes 2 subframes, sometimes 3 or 5, sometimes has space for the maximum PRB size, sometimes only for 6 PRBs (i.e. during cell search). By extending the interface to pass the buffer size we can make sure that only samples are received that actually fit inside the provided buffer. |
||
---|---|---|
.. | ||
async_scell_recv.h | ||
intra_measure.h | ||
scell_recv.h |