manufacturer id is typically 4 bytes
This commit is contained in:
parent
378be70959
commit
7740d7ce21
@ -246,7 +246,7 @@ cis_info(struct cis *cp, unsigned char *p, int len)
|
||||
static void
|
||||
cis_manuf_id(struct cis *cp, unsigned char *p, int len)
|
||||
{
|
||||
if (len > 4) {
|
||||
if (len >= 4) {
|
||||
cp->manufacturer = tpl16(p);
|
||||
cp->product = tpl16(p+2);
|
||||
if (len == 5)
|
||||
|
Loading…
Reference in New Issue
Block a user