Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2059  / 2 Years ago, sat, april 30, 2022, 2:06:11

I've connected a '3G Dongle' to my PC and I've wondered how it automatically connected in Ubuntu 14.04 without installing any supporting software of the Dongle manually, but I've installed that while I was working in Windows .



lsusb



Bus 001 Device 004: ID 05c6:6001 Qualcomm, Inc.


usb-devices | awk '/6001/' RS=



Bus=01 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#=  4 Spd=480 MxCh= 0> Ver= 2.00
Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
Vendor=05c6 ProdID=6001 Rev=00.00
Manufacturer=Qualcomm, Incorporated
Product=Qualcomm mobile device
#Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
If#= 0 Alt= 0 #EPs= 1 Cls=e0(wlcon) Sub=01 Prot=03 Driver=rndis_host
If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=06 Prot=00 Driver=rndis_host


What is the reason?



Can we edit/view that file and also give some additional details regarding that?


More From » 14.04

 Answers
4

If you run lsusb terminal command, you will see what chip is installed in your dongle. Your device is



05c6:6001 Qualcomm, Inc.


In most cases Linux identifies the dongle by the chip code 12d1:1506.



Some of devices are implicitly defined in the option kernel module by vendor and product ids, but some are identified by some other parameters.



Your device works as a network card, not as a serial modem and it is identified differently.



You can see in your output Cls=e0(wlcon) this means that the device is a USB_CLASS_WIRELESS_CONTROLLER. That is defined in /include/uapi/linux/usb/ch9.h.



It is managed by rndis_host driver. It is linked to it because Sub=01 Prot=03.



That is defined in the /drivers/net/usb/rndis_host.c in



USB_INTERFACE_INFO(USB_CLASS_WIRELESS_CONTROLLER, 1, 3),
.driver_info = (unsigned long) &rndis_info,


Do not look for these files in your computer. They are in the Linux source tree.
E.g. rndis_host.c


[#18669] Sunday, May 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rinstracte

Total Points: 221
Total Questions: 114
Total Answers: 120

Location: France
Member since Fri, Jan 28, 2022
2 Years ago
;