Networking Forums

Networking Forums > Computer Networking > Linux Networking > How does Linux handle wireless card drivers?

Reply
Thread Tools Display Modes

How does Linux handle wireless card drivers?

 
 
Robert Glueck
Guest
Posts: n/a

 
      03-21-2006, 12:07 AM
A few questions about how Linux handles wireless drivers:

I understand that in Linux most device drivers are already
compiled into the kernel, others can be inserted later as
kernel modules. What is the situation with regard to
wireless card drivers? Which ones come already compiled
into the kernel, e.g. the current v.2.6.15? What about
prism2, prism54, madwifi, wlan-ng, etc.? How can I find
out? And how do I find that out for the kernel I'm
currently running, v.2.6.11?

Are all the wireless drivers any distro provides beyondA
what comes already compiled into the kernel to be found
in /lib/modules/2.6.xx/kernel/drivers/net/wireless, as
xxxx.ko files?

And how are the wireless drivers loaded on bootup? Is it
correct to assume that during hardware recognition the OS
first identifies the hardware, then looks whether an
appropriate driver is in the above directory, then runs
insmod for it and finally brings up the interface? And
where does the lookup table reside that presumably matches
wireless adapter pciid's and usbid's with drivers in the
above directory? I'm running Debian 3.1.

Robert


 
Reply With Quote
 
 
 
 
Keith Keller
Guest
Posts: n/a

 
      03-21-2006, 03:04 AM
On 2006-03-21, Robert Glueck <(E-Mail Removed)> wrote:
>
> I understand that in Linux most device drivers are already
> compiled into the kernel, others can be inserted later as
> kernel modules. What is the situation with regard to
> wireless card drivers? Which ones come already compiled
> into the kernel, e.g. the current v.2.6.15? What about
> prism2, prism54, madwifi, wlan-ng, etc.? How can I find
> out? And how do I find that out for the kernel I'm
> currently running, v.2.6.11?


In backwards order, you can zless /proc/config.gz or less /proc/config,
if your kernel supports that feature. For each driver, some are
included in the kernel source, some not; you'd need to look at the
config (the easiest way for me is to make menuconfig in the kernel
source tree). Which specific drivers are in the kernel vs. compiled as
modules is an option you select in make menuconfig, so the person
compiling the kernel can do what they want. IME, most network device
drivers are generally compiled as modules. Drivers that are not in the
source tree are more frequently compiled as kernel modules.

> Are all the wireless drivers any distro provides beyondA
> what comes already compiled into the kernel to be found
> in /lib/modules/2.6.xx/kernel/drivers/net/wireless, as
> xxxx.ko files?


Probably yes, unless the distro maintainer chose to compile a module
into the kernel directly. Again, zless /proc/config.gz or less
/proc/config to find out.

> And how are the wireless drivers loaded on bootup? Is it
> correct to assume that during hardware recognition the OS
> first identifies the hardware, then looks whether an
> appropriate driver is in the above directory, then runs
> insmod for it and finally brings up the interface? And
> where does the lookup table reside that presumably matches
> wireless adapter pciid's and usbid's with drivers in the
> above directory? I'm running Debian 3.1.


I'll give you a tentative yes here, with the caveats that a) I don't
know hotplug, udev, and friends very well, and b) I don't run Debian.
Strictly speaking, it would be hotplug, not any hardware recognition
tool (like kudzu?), that would find the right kernel module to load.
(And it probably runs modprobe, not insmod.) hotplug would then call a
helper script to bring up the interface.

If you don't use hotplug, then typically you load the appropriate
modules in a boot script.

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
see X- headers for PGP signature information

 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      03-21-2006, 06:03 AM
Robert Glueck <(E-Mail Removed)> writes:

>A few questions about how Linux handles wireless drivers:


>I understand that in Linux most device drivers are already


No. Only critical drivers (eg ext2, or other filesystem stuff since it is
needed to read the modules from the disk)

>compiled into the kernel, others can be inserted later as
>kernel modules. What is the situation with regard to


Most of them.

>wireless card drivers? Which ones come already compiled


Modules

>into the kernel, e.g. the current v.2.6.15? What about


None.

>prism2, prism54, madwifi, wlan-ng, etc.? How can I find
>out? And how do I find that out for the kernel I'm
>currently running, v.2.6.11?


None.


>Are all the wireless drivers any distro provides beyondA
>what comes already compiled into the kernel to be found
>in /lib/modules/2.6.xx/kernel/drivers/net/wireless, as
>xxxx.ko files?


No. It depends. depmod tell s the system where the modules are. (It
searches /lib/modules/<kernel number>/)



>And how are the wireless drivers loaded on bootup? Is it


modules.

>correct to assume that during hardware recognition the OS
>first identifies the hardware, then looks whether an
>appropriate driver is in the above directory, then runs
>insmod for it and finally brings up the interface? And


No. The installation scripts will try to recognize the hardware and set up
the system to load the correct module.

>where does the lookup table reside that presumably matches
>wireless adapter pciid's and usbid's with drivers in the
>above directory? I'm running Debian 3.1.


No idea. It depends on the distribution and I do not know Debian.


>Robert



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux to handle internet connection Marco Linux Networking 5 08-08-2006 03:49 PM
Wireless drivers in Linux Gregory Johnston Wireless Internet 4 07-25-2006 05:42 AM
Wi-linx B Wireless card -drivers as well hop you enjoy this Frank Dowling Wireless Internet 9 10-28-2004 12:49 PM
What new drivers are needed for this wireless card ?? Dave Broadband 6 02-12-2004 09:13 AM
Linux Drivers for Sony Ericsson GC82 Wireless Edge card Thomas B. Linux Networking 0 01-05-2004 10:05 PM



1 2 3 4 5 6 7 8 9 10 11