C's lack of array size info strikes again:
memcpy(current_wmm_ie, ie->data, ie->len);
where "ie" points to data obtained from the net. replies(2):