llc: use memset to fill llc dummy frame padding
Change-Id: Iaa55549f979ca23dad0bddd308c1144aa4b17255
This commit is contained in:
parent
9688dc9aca
commit
a70bf72ce5
|
@ -59,8 +59,10 @@ void gprs_llc::put_dummy_frame(size_t req_len)
|
||||||
|
|
||||||
/* Add further stuffing, if the requested length exceeds the minimum
|
/* Add further stuffing, if the requested length exceeds the minimum
|
||||||
* dummy command length */
|
* dummy command length */
|
||||||
while (m_length < req_len)
|
if (m_length < req_len) {
|
||||||
frame[m_length++] = 0x2b;
|
memset(&frame[m_length], 0x2b, req_len - m_length);
|
||||||
|
m_length = req_len;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void gprs_llc::put_frame(const uint8_t *data, size_t len)
|
void gprs_llc::put_frame(const uint8_t *data, size_t len)
|
||||||
|
|
Loading…
Reference in New Issue