mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 21:32:58 +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.
|
||||
*/
|
||||
memcpy(((char *) ap) + sizeof(struct if_ath_alq_hdr),
|
||||
buf,
|
||||
len);
|
||||
if (buf != NULL) {
|
||||
memcpy(((char *) ap) + sizeof(struct if_ath_alq_hdr),
|
||||
buf,
|
||||
len);
|
||||
}
|
||||
|
||||
alq_post(alq->sc_alq_alq, ale);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user