/* Lock free operation, be careful of the use scheme Returns: _TRUE push success  */
bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf)
/* Lock free operation, be careful of the use scheme Returns: _TRUE push success  */
bool rtw_cbuf_push(struct rtw_cbuf *cbuf, void *buf)
{
	if (rtw_cbuf_full(cbuf))
		return _FAIL;
	if (0)
		DBG_871X("%s on %u\n", __func__, cbuf->write);
	cbuf->bufs[cbuf->write] = buf;
	cbuf->write = (cbuf->write+1)%cbuf->size;
	return _SUCCESS;
}