Support sending ATH_ALQ messages with no payload.

This commit is contained in:
Adrian Chadd 2013-05-13 21:17:27 +00:00
parent 44e8231cc7
commit 5086df9f1f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250618

View File

@ -184,9 +184,11 @@ if_ath_alq_post(struct if_ath_alq *alq, uint16_t op, uint16_t len,
/* /*
* Copy the payload _after_ the header field. * Copy the payload _after_ the header field.
*/ */
memcpy(((char *) ap) + sizeof(struct if_ath_alq_hdr), if (buf != NULL) {
buf, memcpy(((char *) ap) + sizeof(struct if_ath_alq_hdr),
len); buf,
len);
}
alq_post(alq->sc_alq_alq, ale); alq_post(alq->sc_alq_alq, ale);
} }