Air720U在linux下的驱动修改

参考Air720模块Linux USB驱动以及PPP拨号说明

查看模块的vidpid,分别是17824e00

Air720UAir720的驱动修改方式一致,都需要添加对应的Vendor IDProduct ID。增加如下代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// option.c
static const struct usb_device_id option_ids[] = {
{ USB_DEVICE(0x1782, 0x4e00) },
...
};

static int option_probe(struct usb_serial *serial, const struct usb_device_id *id)
{
...
if (dev_desc->idVendor == cpu_to_le16(0x1782) && dev_desc->idProduct == cpu_to_le16(0x4e00) && iface_desc->bInterfaceNumber <= 1)
{
return -ENODEV;
}
...
}

剩余部分请参考Air720的驱动修改来操作。

上次更新 2021-01-28