/* Save private data from incoming connection requests to iw_cm_event, so the low level driver doesn't have to. Adjust the event ptr to point to the local copy.  */
static int copy_private_data(struct iw_cm_event *event)
/* Save private data from incoming connection requests to iw_cm_event, so the low level driver doesn't have to. Adjust the event ptr to point to the local copy.  */
static int copy_private_data(struct iw_cm_event *event)
{
	void *p;
	p = kmemdup(event->private_data, event->private_data_len, GFP_ATOMIC);
	if (!p)
		return -ENOMEM;
	event->private_data = p;
	return 0;
}