Exemple #1
0
u16_t zfwStaAddIeWpaRsn(zdev_t* dev, zbuf_t* buf, u16_t offset, u8_t frameType)
{
    struct usbdrv_private *macp = dev->ml_priv;
    
    if (macp->supIe[1] != 0)
    {
        copyToIntTxBuffer(dev, buf, macp->supIe, offset, macp->supIe[1]+2);
        
        offset += (macp->supIe[1]+2);
    }

    return offset;
}
u16_t zfwStaAddIeWpaRsn(zdev_t *dev, zbuf_t *buf, u16_t offset, u8_t frameType)
{
	struct usbdrv_private *macp = dev->ml_priv;
	/* zm_msg1_mm(ZM_LV_0, "CWY - add wpaie content Length : "
	 * 		, macp->supIe[1]);
	 */
	if (macp->supIe[1] != 0) {
		copyToIntTxBuffer(dev, buf, macp->supIe, offset,
					 macp->supIe[1]+2);
		/* memcpy(buf->data[offset], macp->supIe, macp->supIe[1]+2);*/
		offset += (macp->supIe[1]+2);
	}

	return offset;
}