mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
Support sending ATH_ALQ messages with no payload.
This commit is contained in:
parent
44e8231cc7
commit
5086df9f1f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250618
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user