[[PageOutline(2)]] = Troubleshooting = This page hold lots of FAQs related to troubleshooting MadWifi. Some of the entries are not relevant to recent driver versions, but have been left here to help out people who might be using older driver versions. Feel free to add entries to the bottom, but please don't just ask questions here. If you need help, start with the [wiki:Support] page. == My computer freezes when I {{{rmmod ath_pci}}} == Upgrade! You need a newer version, See UserDocs/GettingMadwifi == No wireless signal == Mini-PCI has a feature that allows the host to inhibit all IO that occurs via the card. This is a commonly used on laptops to implement an RF (Radio Frequency) kill switch, which allows all wireless signals to be stopped (e.g., so one can turn them off on an aeroplane). See [wiki:UserDocs/MiniPCI] == Intermittent Problems or Poor Signal == All Atheros hardware has the capability to host at least two antennae. However, all antennae ports are not always connected. Unfortunately, MadWiFi currently does no auto-detect this, so it needs to be set up manually. See UserDocs/AntennaDiversity for information. == "HAL Status 3" and ath5k == The pure ath5k driver is generally present in newer kernels and is auto-loaded. Unfortunately, with some hardware, it tries to initialise the Atheros hardware and fails. The HAL is then unable to initialise the hardware properly, or to reset the hardware, giving a "HAL Status 3" message. To prevent this, the ath5k must be stopped from loading and the computer must be rebooted (eww). == Performance related questions. == Check out the latest version (see UserDocs/GettingMadwifi) and use that before asking any question you may have through the normal channels. == I get: "Warning : Device ath0 has been compiled with version 15 (...)" == This is easy to fix, you need to rebuild your kernel with the latest [http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html#wext Wireless extensions] bear in mind that new kernel tend to ship with the latest version, so it might be worth just upgrading. == How do I see what version of the Wireless extensions I'm using? == Try this: {{{ cat /proc/net/wireless }}} And look in the final column (marked WE). You could also look at the wireless extensions home page (above). == The drivers compile fine, but I get "unresolved symbol" errors on modprobe == This generally means that your kernel was built with CONFIG_MODVERSIONS set, but the madwifi modules got compiled with different options. Rebuild your kernel with it disabled, hopefully that will fix it. You can also try to modprobe the module, by forcing it to strip the versioning information from the module, and it should go in. Read 'man modprobe' for more details. {{{ /sbin/modprobe ath_pci --force }}} Also make sure you have {{{CONFIG_NET_WIRELESS=y}}} in your /path/to/kernel/source/.config. == What does "HAL status 13" mean? == Unfortunately this is the status code returned when an unsupported card is detected. If you see this message, check the kernel log to see what your current HAL version is by running {{{dmesg | grep ath_hal}}}. If the version you see is the same as the version number at the bottom of: source:trunk/hal/version.h, then you are already running the latest HAL code, and unfortunately have to wait until the next HAL release before your hardware is supported. If the version number is less that the one in {{{version.h}}}, then you should upgrade your version of the driver. See UserDocs/GettingMadwifi for more information. Note: All laptops have some capability to disable the radio via a RF "kill" switch (generally on the front or side): on some hardware, loading the modules while the switch disables the radio produces this error. Try unloading all ath_* modules, pressing the switch, and loading the modules again. == IP Forwarding with WEP makes my kernel panic! == This issue was fixed early in 2004. You should upgrade (see UserDocs/GettingMadwifi). == My logs say "ath0: ath_chan_set: unable to reset channel 12 (2467Mhz) hal status 3" and nothing works, what can I do? == Try loading the ath_pci module with the parameter: {{{xchanmode=0}}} == On RedHat I get "SIOCGIFFLAGS: No such device". == This entry was sent in by Stuart Higgs, and only applies to the old code. The new code brings it's own set of Kudzu problems. See UserDocs/Distro/RedHat for more information. On Redhat, KUDZU detects the card, and makes it the next available eth (in my case, it was eth1). On network start, eth0 comes up, but you get 'SIOCGIFFLAGS: No such device' for the wireless card. The solution I worked out was: * Edit the {{{/etc/modules.conf}}} file * Change {{{eth1}}} to {{{ath0}}} (for the alias {{{eth1 ath_pci}}}). * Rename the file {{{/etc/sysconfig/network-scripts/ifcfg-eth1}}} to {{{/etc/sysconfig/network-scripts/ifcfg-ath0}}}. * And then execute: * {{{/etc/rc.d/init.d/network restart}}} == On my Thinkpad X31 I get: "kernel: ath0: hardware error; resetting" whenever I use the wireless tools. == Thanks to John Morgan Salomon for this tip. I am running madwifi on a Thinkpad x31 (Atheros 5211) under Debian kernel and I kept getting the following error messages: {{{kernel: ath0: hardware error; resetting}}} {{{kernel: ath_hal_wait: timeout on reg 0x8: 0x0000002 & 0x00000004 != 0x00000000}}} Whenever running iwconfig or any wireless utilities to set it up (it compiled and loaded fine otherwise.) If someone else has this problem, it might be useful to know that getting rid of acpi in the kernel made it work fine (I seem to recall stumbling across this in a newsgroup somewhere.) Maybe it's helpful as an interim fix. == When I try to run {{{iwlist ath0 scan}}}, I get "ath0: Interface doesn't support scanning : Invalid argument." == You need to run {{{ifconfig ath0 up}}} before you can scan. == Why won't my wireless NIC associate properly when I use enable restricted mode WEP on my AP? == This question and answer were supplied by Aaron Turner. If your AP is configured to have WEP enabled and is in restricted mode (rather then open mode) the madwifi driver won't properly associate. Symptoms of this include iwconfig showing the NIC associating and unassociating on a regular basis and not being able to send any traffic. The solution is to force the authentication to restricted mode using iwpriv in addition to iwconfig. The following commands should do the trick: {{{ iwconfig ath0 key restricted iwpriv ath0 authmode 2 }}} Hopefully the default behavior will change soon, so that this isn't necessary. Should iwpriv complain about no extensions, you're running an old version of the userspace wireless tools and need to upgrade (see above). == When I used my card in Master mode, my system gets sluggish, and clients disconnect. What can I do? == You may be suffering from the infamous 'Stuck Beacon Problem', as first described by Greg Chesson of Atheros. Have a look at our StuckBeacon page for more information, and experiences. == I see "ath0 (WE) : Buffer for request SIOGIWPRIV too small (x