completed code to resend nacked packets on AC