  rx_out = rx_out(33:end); <span class="comment">% Discard A-MPDU header</span>
0215             <span class="keyword">if</span> (ampdu_len + 4 &gt; PHY.psdu_length)
0216                 <span class="comment">% A-MPDU header denotes a packet length that cannot fit into PSDU, must be an error</span>
0217                 err = 8;
0218                 <span class="keyword">return</span>
0219             <span class="keyword">end</span>
0220             <span class="keyword">if</span> (ampdu_len ~= TX.payload_l