197     [rx_out] = <a href="data_rx.html" class="code" title="function [descr_msg] = data_rx(PHY, RX, rx_wf, idx0, h_est, data_f_mtx, r_cfo, snr_avg)">data_rx</a>(PHY, RX, rx_wf, idx0, h_est, data_f_mtx, r_cfo, snr_avg);
0198     
0199     <span class="keyword">if</span> (PHY.ppdu_fmt == 1)
0200         len = PHY.psdu_length;
0201     <span class="keyword">elseif</span> (PHY.ppdu_fmt == 2)
0202         <span class="comment">% For NGV transmissions, the payload length (=MPDU length) must be obtained from the