e: The non-common 20 MHz 802.11p requires n_chan_rx=1</span>
0036 n_chan_rx = RX.n_chan;
0037 
0038 <span class="comment">% Packet detection / coarse CFO estimation</span>
0039 [c_idx, c_cfo, pdet_err] = <a href="pdet.html" class="code" title="function [idx, c_cfo, err] = pdet(in, s0_len, pdet_thold, n_chan)">pdet</a>(rx_wf, s0_len, RX.pdet_thold, n_chan_rx);
0040 
0041 <span class="comment">% If no packet error, proceed with packet decoding</span>
0042 err = 0;
0043 <span class="keyword">if</span> pdet_err