From owner-freebsd-drivers@freebsd.org Thu Oct 12 20:17:21 2017 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D03BE33987 for ; Thu, 12 Oct 2017 20:17:21 +0000 (UTC) (envelope-from jailedemon@googlemail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0823C659D1 for ; Thu, 12 Oct 2017 20:17:20 +0000 (UTC) (envelope-from jailedemon@googlemail.com) Received: by mail-wm0-x231.google.com with SMTP id u138so16465820wmu.4 for ; Thu, 12 Oct 2017 13:17:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=5VorNT8eI1qNm6JZLwEFhR+qnLmho/EdJWhwC3yJrZ4=; b=Mc2ZE6d9PigQZrwvf6f7tVGPc1olC+K8aYtNNYoc+H6cDa7o+ccDI9ftAYwJ7vT78/ 8e/Q6WWAWcmAoBZ34l6r7fJ+9jZKaOCcVYphyAqFN29jAqPHM626/G5axeISmy/mHUXY ng6PokcmP0XPAPvSZK/wsbH8YrwOySQmzZNxUZEo7RWIv+WXZkpre8KvLkzA3L28Wv3T rmYeq7oDaq5QCKHzN7fitbUxnHJRqxNYNdfmlJAq3ScggRqchYMtGdrINqIHszOqq3yf QExXh2z1cP4wDkHJ37DlvAT6ZMRlGulx7AHqOFoZZfNyT8HQ7YcM8AZsDh1Rcc4R6JXI SO+A== X-Gm-Message-State: AMCzsaULneSt3Vsj1sPMxKe7Um8HnatH0JfWUZmh58eTiaEFq06TsjDX 8mbeidrxAOGTnHlIDLc= X-Google-Smtp-Source: ABhQp+RKJS1mNn/wmV9kH4uoi8rbTH5rOd5myvhVJmvFxQPqvT7WCmEBTl0mc4iR2G2vUqqNDVrmiw== X-Received: by 10.28.154.137 with SMTP id c131mr107526wme.142.1507839438961; Thu, 12 Oct 2017 13:17:18 -0700 (PDT) Received: from ?IPv6:2001:a62:1017:c101:42a8:f0ff:fec9:1b13? ([2001:a62:1017:c101:42a8:f0ff:fec9:1b13]) by smtp.gmail.com with ESMTPSA id k105sm24876385wrc.90.2017.10.12.13.17.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Oct 2017 13:17:18 -0700 (PDT) To: freebsd-drivers@freebsd.org From: jaileDemon Subject: Patch for D-Link DWM-222 Message-ID: Date: Thu, 12 Oct 2017 22:17:06 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Oct 2017 20:17:21 -0000 Hi, I got a D-Link DWM-222 LTE Dongle which did not work on my FreeBSD 10-STABLE Installation. Adding some lines of code made it work. Could someone who has the necessary privileges please review and add this code to the FreeBSD Sources, so that FreeBSD supports this piece of Hardware. Thank you very much, Daniel Index: sys/dev/usb/serial/u3g.c =================================================================== --- sys/dev/usb/serial/u3g.c (revision 324156) +++ sys/dev/usb/serial/u3g.c (working copy) @@ -241,6 +241,8 @@ U3G_DEV(DLINK, DWR510, 0), U3G_DEV(DLINK, DWM157_CD, U3GINIT_SCSIEJECT), U3G_DEV(DLINK, DWM157, 0), + U3G_DEV(DLINK, DWM222_CD, U3GINIT_SCSIEJECT), + U3G_DEV(DLINK, DWM222, 0), U3G_DEV(DLINK3, DWM652, 0), U3G_DEV(HP, EV2200, 0), U3G_DEV(HP, HS2300, 0), Index: sys/dev/usb/usbdevs =================================================================== --- sys/dev/usb/usbdevs (revision 324156) +++ sys/dev/usb/usbdevs (working copy) @@ -1653,6 +1653,8 @@ product DLINK DWR510 0x7e12 DWR-510 product DLINK DWM157 0x7d02 DWM-157 product DLINK DWM157_CD 0xa707 DWM-157 CD-ROM Mode +product DLINK DWM222 0x7e35 DWM-222 +product DLINK DWM222_CD 0xab00 DWM-222 CD-ROM Mode product DLINK RTL8188CU 0x3308 RTL8188CU product DLINK RTL8192CU_1 0x3307 RTL8192CU product DLINK RTL8192CU_2 0x3309 RTL8192CU