software/drivers/sd8887/src/wlan/mlan/mlan_txrx.c
/**
 *  @brief Add packet to Bypass TX queue
 *
 *  @param pmadapter  Pointer to the mlan_adapter driver data struct
 *  @param pmbuf      Pointer to the mlan_buffer data struct
 *
 *  @return         N/A
 */
@brief Add packet to Bypass TX queue
@param pmadapter  Pointer to the mlan_adapter driver data struct
@param pmbuf      Pointer to the mlan_buffer data struct

@return         N/A
@brief Add packet to Bypass TX queue @param pmadapter Pointer to the mlan_adapter driver data struct @param pmbuf Pointer to the mlan_buffer data struct @return N / A
t_void
wlan_add_buf_bypass_txqueue(mlan_adapter *pmadapter, pmlan_buffer pmbuf)
{
	pmlan_private priv = pmadapter->priv[pmbuf->bss_index];
	ENTER();
	if (pmbuf->buf_type != MLAN_BUF_TYPE_RAW_DATA)
		pmbuf->buf_type = MLAN_BUF_TYPE_DATA;
	pmadapter->callbacks.moal_spin_lock(pmadapter->pmoal_handle,
					    priv->bypass_txq.plock);
	pmadapter->bypass_pkt_count++;
	util_enqueue_list_tail(pmadapter->pmoal_handle, &priv->bypass_txq,
			       (pmlan_linked_list)pmbuf, MNULL, MNULL);
	pmadapter->callbacks.moal_spin_unlock(pmadapter->pmoal_handle,
					      priv->bypass_txq.plock);
	LEAVE();
}
t_void wlan_add_buf_bypass_txqueue ( mlan_adapter * pmadapter , pmlan_buffer pmbuf ) { pmlan_private priv = pmadapter -> priv [ pmbuf -> bss_index ] ; ENTER ( ) ; if ( pmbuf -> buf_type != MLAN_BUF_TYPE_RAW_DATA ) pmbuf -> buf_type = MLAN_BUF_TYPE_DATA ; pmadapter -> callbacks . moal_spin_lock ( pmadapter -> pmoal_handle , priv -> bypass_txq . plock ) ; pmadapter -> bypass_pkt_count ++ ; util_enqueue_list_tail ( pmadapter -> pmoal_handle , & priv -> bypass_txq , ( pmlan_linked_list ) pmbuf , MNULL , MNULL ) ; pmadapter -> callbacks . moal_spin_unlock ( pmadapter -> pmoal_handle , priv -> bypass_txq . plock ) ; LEAVE ( ) ; }
@brief Add packet to Bypass TX queue
  @param pmadapter  Pointer to the mlan_adapter driver data struct
  @param pmbuf      Pointer to the mlan_buffer data struct
@brief Add packet to Bypass TX queue @param pmadapter Pointer to the mlan_adapter driver data struct @param pmbuf Pointer to the mlan_buffer data struct