LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-05-2009, 11:59 AM   #1
suChris
Member
 
Registered: Nov 2009
Distribution: Slackware 13
Posts: 56

Rep: Reputation: 15
Madwifi~wpa_supplicant Help


Ok after some time of trying to make my wireless work in Slackware, (here is the thread I requested help in LQ Click me) I am now completely sure that it is a driver problem. So I decided to install madwifi.

I followed the instructions mentioned here and installed madwifi without any problems.

Then, I tried to edit /etc/rc.d/rc.inet1.conf and change the value:
Code:
WLAN_WPADRIVER[4]="wext"
into
Code:
WLAN_WPADRIVER[4]="madwifi"
Which I assume would fix the problem. But it didn't...instead:
Code:
root@cb:/tmp# /etc/rc.d/rc.inet1 wlan0_restart
info, wlan0: sending signal 1 to pid 7110     
info, wlan0: exiting                          
SIOCSIFHWADDR: Device or resource busy - you may need to down the interface
/etc/rc.d/rc.inet1:  wlan0 information: 'Fill with your own settings...'   
Error for wireless request "Set Nickname" (8B1C) :                         
    SET failed on device wlan0 ; Operation not supported.                  
Unsupported driver 'madwifi'.                                              

Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
And of course this is the outcome of the wpa_supplicant command..
Code:
root@cb:/tmp# wpa_supplicant -d -c /etc/wpa_supplicant.conf -iwlan0 -Dmadwifi
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'madwifi' ctrl_interface 'N/A' bridge 'N/A'
Unsupported driver 'madwifi'.

Failed to add interface wlan0
Cancelling scan request
Cancelling authentication timeout
I then found this page: click

Which mentions:
Quote:
When using the madwifi driver

Make sure that the modules ath_pci, ath_hal, ath_rate_sample, wlan, wlan_tkip and wlan_xauth are loaded (using # lsmod).

Now you are able to start wpa_supplicant by

Code:
# wpa_supplicant -d -c /etc/wpa_supplicant.conf -iath0 -Dmadwifi
So I did this:
Code:
lsmod              
Module                  Size  Used by
i915                  151464  1      
drm                   137856  2 i915 
snd_seq_dummy           2464  0      
snd_seq_oss            29792  0      
snd_seq_midi_event      5980  1 snd_seq_oss
snd_seq                47984  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          6088  3 snd_seq_dummy,snd_seq_oss,snd_seq           
snd_pcm_oss            37728  0                                             
snd_mixer_oss          14300  1 snd_pcm_oss                                 
ipv6                  243508  14                                            
pcmcia                 33772  0                                             
pcmcia_core            32016  1 pcmcia                                      
cpufreq_ondemand        6632  2                                             
speedstep_lib           3840  0                                             
acpi_cpufreq            7500  0                                             
freq_table              3420  2 cpufreq_ondemand,acpi_cpufreq               
ppdev                   7200  0                                             
lp                      9316  0                                             
parport_pc             24036  0                                             
parport                30700  3 ppdev,lp,parport_pc                         
fuse                   54008  1                                             
snd_hda_codec_conexant    19804  1                                          
snd_hda_intel          23624  6                                             
thermal                15096  0                                             
snd_hda_codec          53788  2 snd_hda_codec_conexant,snd_hda_intel        
video                  16492  0                                             
processor              38600  4 acpi_cpufreq,thermal                        
snd_hwdep               6816  1 snd_hda_codec                               
uvcvideo               58184  0                                             
thermal_sys            10756  3 thermal,video,processor                     
snd_pcm                68128  4 snd_pcm_oss,snd_hda_intel,snd_hda_codec     
joydev                  9504  0
hwmon                   2104  1 thermal_sys
snd_timer              19108  3 snd_seq,snd_pcm
ac                      3840  0
snd                    50820  21 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               5824  1 snd
snd_page_alloc          7972  2 snd_hda_intel,snd_pcm
videodev               38688  1 uvcvideo
v4l1_compat            13184  2 uvcvideo,videodev
ath5k                 109216  0
mac80211              155588  1 ath5k
led_class               3392  1 ath5k
cfg80211               36468  2 ath5k,mac80211
battery                 9856  0
intel_agp              25628  1
i2c_i801                8784  0
8139too                22780  0
agpgart                29256  3 drm,intel_agp
mii                     4380  1 8139too
rtc_cmos               10124  0
rtc_core               15992  1 rtc_cmos
rtc_lib                 2332  1 rtc_core
wmi                     6280  0
output                  2396  1 video
button                  5708  0
psmouse                41676  0
evdev                   9152  13
serio_raw               5024  0
sg                     24912  0
None of the ath_pci, ath_hal, ath_rate_sample, wlan, wlan_tkip, wlan_xauth are loaded...

And I have followed the instruction mentioned in the alien slackbook webpage which states that I must add a line like
Code:
/sbin/modprobe ath_pci
into the /etc/rc.d/rc.modules file. I have done this and still, the ath_pci is not listed in the output of lsmod...

So it seems that the modules that were supposed to be loaded are not loaded after all, and the wpa_supplicant can't recognize the madwifi as a driver..
So how do I implement madwifi as a driver in wpa_supplicant?

Cheers!

Last edited by suChris; 12-05-2009 at 12:02 PM.
 
Old 12-05-2009, 04:59 PM   #2
suChris
Member
 
Registered: Nov 2009
Distribution: Slackware 13
Posts: 56

Original Poster
Rep: Reputation: 15
Hmmm...it seems that it can't even find the modules.
Code:
root@cb:/home/chris# modprobe ath_pci
FATAL: Module ath_pci not found.
 
Old 12-05-2009, 09:12 PM   #3
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Rep: Reputation: 56
I was able to set mine up using info found here:

http://madwifi-project.org/wiki/User...stro/Slackware
 
Old 12-06-2009, 11:31 AM   #4
suChris
Member
 
Registered: Nov 2009
Distribution: Slackware 13
Posts: 56

Original Poster
Rep: Reputation: 15
Nope, that doesn't help either...you see, I have followed the exact same instructions mentioned in the alien.slackbook (I even give you the link to my first post) and madwifi is not properly installed. (I assume it is not properly installed, as the modules that were supposed to get activated after the installation are not activated at all..) And during the installations I get absolutely no errors.
 
Old 12-06-2009, 06:06 PM   #5
suChris
Member
 
Registered: Nov 2009
Distribution: Slackware 13
Posts: 56

Original Poster
Rep: Reputation: 15
Ok I managed to make a big progress myself and I think that I managed to install madwifi successfully this time!

Code:
root@cb:/home/chris# lsmod
Module                  Size  Used by
i915                  151464  1      
drm                   137856  2 i915 
snd_seq_dummy           2464  0      
snd_seq_oss            29792  0      
snd_seq_midi_event      5980  1 snd_seq_oss
snd_seq                47984  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          6088  3 snd_seq_dummy,snd_seq_oss,snd_seq           
snd_pcm_oss            37728  0                                             
snd_mixer_oss          14300  1 snd_pcm_oss                                 
ipv6                  243508  14                                            
pcmcia                 33772  0                                             
pcmcia_core            32016  1 pcmcia                                      
wlan_xauth              1148  0                                             
wlan_tkip              10460  0                                             
ath_rate_sample        12060  0                                             
cpufreq_ondemand        6632  2                                             
speedstep_lib           3840  0                                             
acpi_cpufreq            7500  0                                             
freq_table              3420  2 cpufreq_ondemand,acpi_cpufreq               
ppdev                   7200  0                                             
lp                      9316  0                                             
parport_pc             24036  0                                             
parport                30700  3 ppdev,lp,parport_pc                         
fuse                   54008  1                                             
ath5k                 109216  0                                             
mac80211              155588  1 ath5k                                       
snd_hda_codec_conexant    19804  1                                          
joydev                  9504  0                                             
snd_hda_intel          23624  3                                             
led_class               3392  1 ath5k                                       
snd_hda_codec          53788  2 snd_hda_codec_conexant,snd_hda_intel        
cfg80211               36468  2 ath5k,mac80211                              
snd_hwdep               6816  1 snd_hda_codec                               
snd_pcm                68128  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec     
ath_pci                93308  0                                             
snd_timer              19108  2 snd_seq,snd_pcm                             
intel_agp              25628  1                                             
wlan                  189872  4 wlan_xauth,wlan_tkip,ath_rate_sample,ath_pci
uvcvideo               58184  0                                             
thermal                15096  0                                             
snd                    50820  17 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer                    
processor              38600  4 acpi_cpufreq,thermal                                            
agpgart                29256  3 drm,intel_agp                                                   
i2c_i801                8784  0                                                                 
ath_hal               189392  2 ath_rate_sample,ath_pci                                         
video                  16492  0
wmi                     6280  0
rtc_cmos               10124  0
8139too                22780  0
soundcore               5824  1 snd
thermal_sys            10756  3 thermal,processor,video
videodev               38688  1 uvcvideo
rtc_core               15992  1 rtc_cmos
psmouse                41676  0
mii                     4380  1 8139too
snd_page_alloc          7972  2 snd_hda_intel,snd_pcm
output                  2396  1 video
rtc_lib                 2332  1 rtc_core
v4l1_compat            13184  2 uvcvideo,videodev
hwmon                   2104  1 thermal_sys
ac                      3840  0
button                  5708  0
battery                 9856  0
serio_raw               5024  0
sg                     24912  0
evdev                   9152  13
As you can see, all the modules I mentioned above, are loaded.
But still...
Code:
root@cb:/home/chris# wpa_supplicant -d -c /etc/wpa_supplicant.conf -iwlan0 -Dmadwifi
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'madwifi' ctrl_interface 'N/A' bridge 'N/A'
Unsupported driver 'madwifi'.

Failed to add interface wlan0
Cancelling scan request
Cancelling authentication timeout
Now I am really stuck...
 
Old 12-06-2009, 06:33 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by suChris View Post
But still...
Code:
root@cb:/home/chris# wpa_supplicant -d -c /etc/wpa_supplicant.conf -iwlan0 -Dmadwifi
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'madwifi' ctrl_interface 'N/A' bridge 'N/A'
Unsupported driver 'madwifi'.

Failed to add interface wlan0
Cancelling scan request
Cancelling authentication timeout
Now I am really stuck...
You should have read my article a bit better then. There is a section that deals with WPA and this says:

Code:
Starting with the linux kernel 2.6.14, madwifi and wpa_supplicant can communicate using
wpa_supplicant's ”wext” driver using the kernel's “wireless extensions”.
For older kernel versions, you will need wpa_supplicant's ”madwifi” driver
... for which you would need to recompile Slackware's wpa_supplicant package btw... but it is not needed.

So, try this instead:
Code:
wpa_supplicant -d -c /etc/wpa_supplicant.conf -iwlan0 -Dwext
although I really wonder if your "wlan0" should not be "ath0" since that is the name for the wireless interface if the madwifi driver is loaded.

Eric
 
1 members found this post helpful.
Old 12-06-2009, 07:04 PM   #7
suChris
Member
 
Registered: Nov 2009
Distribution: Slackware 13
Posts: 56

Original Poster
Rep: Reputation: 15
Hey Eric. Thanks for replying to my thread. (it is a great help to have the original author here :P)

Here is the output of the command:
Code:
root@cb:/tmp/SBo/madwifi-0.9.4# wpa_supplicant -d -c /etc/wpa_supplicant.conf -iwlan0 -Dwext
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'                                                                                  
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'                     
Reading configuration file '/etc/wpa_supplicant.conf'                                           
ctrl_interface='/var/run/wpa_supplicant'                                                        
ctrl_interface_group='wheel'                                                                    
eapol_version=1                                                                                 
ap_scan=1                                                                                       
fast_reauth=1                                                                                   
Priority group 10                                                                               
   id=0 ssid='ThompsonB27795'                                                                   
Priority group 0                                                                                
   id=1 ssid=''                                                                                 
Initializing interface (2) 'wlan0'                                                              
ioctl[SIOCGIFFLAGS]: No such device                                                             
Could not get interface 'wlan0' flags                                                           
ioctl[SIOCSIWPMKSA]: No such device                                                             
ioctl[SIOCSIWMODE]: No such device                                                              
Could not configure driver to use managed mode                                                  
ioctl[SIOCGIWRANGE]: No such device                                                             
WEXT: Operstate: linkmode=1, operstate=5                                                        
ioctl[SIOCGIFINDEX]: No such device                                                             
Failed to add interface wlan0                                                                   
State: DISCONNECTED -> DISCONNECTED                                                             
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)                                         
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
ioctl[SIOCSIWENCODE]: No such device
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
ioctl[SIOCSIWENCODE]: No such device
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
ioctl[SIOCSIWENCODE]: No such device
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
ioctl[SIOCSIWENCODE]: No such device
wpa_driver_wext_set_wpa
WEXT: SIOCSIWAUTH(param 7 value 0x0) failed: No such device)
Failed to disable WPA in the driver.
wpa_driver_wext_set_drop_unencrypted
WEXT: SIOCSIWAUTH(param 5 value 0x0) failed: No such device)
wpa_driver_wext_set_countermeasures
WEXT: SIOCSIWAUTH(param 4 value 0x0) failed: No such device)
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
ioctl[SIOCSIWAP]: No such device
WEXT: Operstate: linkmode=0, operstate=6
ioctl[SIOCGIFFLAGS]: No such device
I really think I should recompile wpa_supplicant, point it to my madwifi driver and get on with it at last... or maybe I can get away with it in a less harmful way?
 
Old 12-06-2009, 07:20 PM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You did not use "iwconfig" to find out that you do not have a "wlan0" interface at all, right?

Quote:
Initializing interface (2) 'wlan0'
ioctl[SIOCGIFFLAGS]: No such device
Try "ath0" instead of "wlan0" in your commandline, as I suggested already in my earlier post.

Eric
 
Old 12-06-2009, 07:25 PM   #9
suChris
Member
 
Registered: Nov 2009
Distribution: Slackware 13
Posts: 56

Original Poster
Rep: Reputation: 15
Code:
root@cb:/var/log/packages# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.
Code:
root@cb:/var/log/packages# wpa_supplicant -d -c /etc/wpa_supplicant.conf -iath0 -Dwext
Initializing interface 'ath0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'                                                                                   
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'                     
Reading configuration file '/etc/wpa_supplicant.conf'                                           
ctrl_interface='/var/run/wpa_supplicant'                                                        
ctrl_interface_group='wheel'                                                                    
eapol_version=1                                                                                 
ap_scan=1                                                                                       
fast_reauth=1                                                                                   
Priority group 10                                                                               
   id=0 ssid='ThompsonB27795'                                                                   
Priority group 0                                                                                
   id=1 ssid=''                                                                                 
Initializing interface (2) 'ath0'                                                               
ioctl[SIOCGIFFLAGS]: No such device                                                             
Could not get interface 'ath0' flags                                                            
ioctl[SIOCSIWPMKSA]: No such device                                                             
ioctl[SIOCSIWMODE]: No such device                                                              
Could not configure driver to use managed mode                                                  
ioctl[SIOCGIWRANGE]: No such device                                                             
WEXT: Operstate: linkmode=1, operstate=5                                                        
ioctl[SIOCGIFINDEX]: No such device                                                             
Failed to add interface ath0                                                                    
State: DISCONNECTED -> DISCONNECTED                                                             
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)                                         
WEXT: Operstate: linkmode=-1, operstate=5                                                       
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0                           
ioctl[SIOCSIWENCODEEXT]: No such device                                                         
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE                                   
ioctl[SIOCSIWENCODE]: No such device                                                            
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0                           
ioctl[SIOCSIWENCODEEXT]: No such device                                                         
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
ioctl[SIOCSIWENCODE]: No such device
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
ioctl[SIOCSIWENCODE]: No such device
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: No such device
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
ioctl[SIOCSIWENCODE]: No such device
wpa_driver_wext_set_wpa
WEXT: SIOCSIWAUTH(param 7 value 0x0) failed: No such device)
Failed to disable WPA in the driver.
wpa_driver_wext_set_drop_unencrypted
WEXT: SIOCSIWAUTH(param 5 value 0x0) failed: No such device)
wpa_driver_wext_set_countermeasures
WEXT: SIOCSIWAUTH(param 4 value 0x0) failed: No such device)
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
ioctl[SIOCSIWAP]: No such device
WEXT: Operstate: linkmode=0, operstate=6
ioctl[SIOCGIFFLAGS]: No such device
 
Old 12-07-2009, 03:16 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
suChris, looking at the loaded modules list, your computer is loading both the kernel's "ath5k" driver and the "ath_pci" (aka madwifi) driver. They are conflicting drivers, which may be the reason that you do not have a wireless interface now (as shown by the "iwconfig" command).

The kernel thinks it should load the "ath5k" driver for your wireless card... which does not mean that this driver really supports your card (some hardware will not work with it, and then you have to use madwifi).

In your case you must blacklist "ath5k" so that it will no longer load. This will give the ath_pci driver a chance to initialize the hardware properly.
Add a line with just "ath5k" to the file /etc/modprobe.d/blacklist.conf and reboot the computer. That will prevent this module from loading next time the computer boots.

After reboot, check the output of the "dmesg" command to see what the kernel, and more specific the madwifi driver, thinks about your hardware. the kernel log that you see with "dmesg" should show whether the hardware is initialized correctly

Use "iwconfig" to check if there is a wireless network interface present on your system.

Eric
 
Old 12-07-2009, 05:57 AM   #11
suChris
Member
 
Registered: Nov 2009
Distribution: Slackware 13
Posts: 56

Original Poster
Rep: Reputation: 15
I added "blacklist ath5k" to /etc/modprobe.d/blacklist.conf
Rebooted and...
Code:
# lsmod
Module                  Size  Used by
i915                  151464  1      
drm                   137856  2 i915 
snd_seq_dummy           2464  0      
snd_seq_oss            29792  0      
snd_seq_midi_event      5980  1 snd_seq_oss
snd_seq                47984  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          6088  3 snd_seq_dummy,snd_seq_oss,snd_seq           
snd_pcm_oss            37728  0                                             
snd_mixer_oss          14300  1 snd_pcm_oss                                 
ipv6                  243508  14                                            
pcmcia                 33772  0                                             
pcmcia_core            32016  1 pcmcia                                      
wlan_xauth              1148  0                                             
wlan_tkip              10460  0                                             
ath_rate_sample        12060  0                                             
cpufreq_ondemand        6632  2                                             
speedstep_lib           3840  0                                             
acpi_cpufreq            7500  0                                             
freq_table              3420  2 cpufreq_ondemand,acpi_cpufreq               
ppdev                   7200  0                                             
lp                      9316  0                                             
parport_pc             24036  0                                             
parport                30700  3 ppdev,lp,parport_pc                         
joydev                  9504  0                                             
fuse                   54008  1                                             
snd_hda_codec_conexant    19804  1                                          
snd_hda_intel          23624  2                                             
snd_hda_codec          53788  2 snd_hda_codec_conexant,snd_hda_intel        
snd_hwdep               6816  1 snd_hda_codec                               
snd_pcm                68128  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec     
uvcvideo               58184  0                                             
snd_timer              19108  2 snd_seq,snd_pcm                             
intel_agp              25628  1                                             
snd                    50820  15 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer                                                                    
thermal                15096  0                                                 
rtc_cmos               10124  0                                                 
psmouse                41676  0                                                 
i2c_i801                8784  0                                                 
ath_pci                93308  0                                                 
soundcore               5824  1 snd
processor              38600  4 acpi_cpufreq,thermal
agpgart                29256  3 drm,intel_agp
rtc_core               15992  1 rtc_cmos
snd_page_alloc          7972  2 snd_hda_intel,snd_pcm
videodev               38688  1 uvcvideo
video                  16492  0
8139too                22780  0
wlan                  189872  4 wlan_xauth,wlan_tkip,ath_rate_sample,ath_pci
thermal_sys            10756  3 thermal,processor,video
wmi                     6280  0
output                  2396  1 video
rtc_lib                 2332  1 rtc_core
mii                     4380  1 8139too
v4l1_compat            13184  2 uvcvideo,videodev
battery                 9856  0
sg                     24912  0
serio_raw               5024  0
ath_hal               189392  2 ath_rate_sample,ath_pci
hwmon                   2104  1 thermal_sys
button                  5708  0
ac                      3840  0
evdev                   9152  13
I don't see any ath5k anymore. Here is the output of dmesg.(see bottom of post)

And the ouput of lspci -vv.
Code:
# lspci -vv
01:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)                                                               
        Subsystem: Hewlett-Packard Company Device 137b                          
        Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-                                                   
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-                                                    
        Interrupt: pin A routed to IRQ 16                                       
        Region 0: Memory at d1300000 (64-bit, non-prefetchable) [disabled] [size=64K]                                                                           
        Capabilities: [40] Power Management version 2                           
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot-,D3cold-)                                                                    
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-          
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-              
                Address: 00000000  Data: 0000                                   
        Capabilities: [60] Express (v1) Legacy Endpoint, MSI 00                 
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <512ns, L1 <64us                                                                         
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset-         
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-                                                                              
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-            
                        MaxPayload 128 bytes, MaxReadReq 512 bytes              
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-                                                                             
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <512ns, L1 <64us                                                              
                        ClockPM- Surprise- LLActRep- BwNot-                     
                LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-          
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-                                                              
        Capabilities: [90] MSI-X: Enable- Count=1 Masked-                       
                Vector table: BAR=0 offset=00000000                             
                PBA: BAR=0 offset=00000000
        Capabilities: [100] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq+ ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
                AERCap: First Error Pointer: 14, GenCap+ CGenEn- ChkCap+ ChkEn-
        Capabilities: [140] Virtual Channel <?>
        Kernel modules: ath_pci, ath5k
Look at
Code:
Kernel modules: ath_pci, ath5k
I don't think that ath5k should be here...

Code:
# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.
Attached Files
File Type: txt dmesg.txt (50.0 KB, 14 views)
 
Old 12-07-2009, 08:25 AM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by suChris View Post
I added "blacklist ath5k" to /etc/modprobe.d/blacklist.conf
That is good.

[QUOTE]Look at
Code:
Kernel modules: ath_pci, ath5k
I don't think that ath5k should be here...

This is perfectly OK. The kernel finds that it has two drivers that support your card, and therefore it would have loaded both, but since you blacklisted one, only the other will be loaded.

Quote:
Code:
# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.
And in your "dmesg" output I see why:
Code:
wifi%d: unable to attach hardware: 'Hardware revision not supported' (HAL status 13)
The madwifi driver does not support this particular type of card. Your only option would be to remove "ath5k" from the blacklist file, and then either remove the madwifi driver completely from your system, or add "ath_pci" and "ath_hal" to the /etc/modprobe.d/blacklist.conf file. Then reboot and look if "iwconfig" shows a wireless interface. Your first posts do not make it 100% clear if the "ath5k" driver works for your card, because your issues with wpa_supplicant were masking this. Worth a try.

Eric
 
Old 12-07-2009, 09:25 AM   #13
suChris
Member
 
Registered: Nov 2009
Distribution: Slackware 13
Posts: 56

Original Poster
Rep: Reputation: 15
I blacklisted ath_pci and ath_hal and un-blacklisted ath5k.
Code:
# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:""
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
          Tx-Power=0 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
Well...it is visible now. But this kinda leads me back to my old problem of trying to configure wpa_supplicant with no luck.
Here is /etc/rc.d/rc.inet1.conf:
Code:
# Config information for wlan0
IFNAME[4]="wlan0"
IPADDR[4]=""
NETMASK[4]=""
USE_DHCP[4]="yes"
DHCP_HOSTNAME[4]="ThomsonB27795"
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext"
wpa_supplicant.conf:
Code:
# WPA protected network, supply your own ESSID and WPAPSK here:
network={
  scan_ssid=0
  ssid="ThomsonB27795"
  proto=WPA RSN
  key_mgmt=NONE
  pairwise=CCMP TKIP
  group=CCMP TKIP WEP104 WEP40
  #psk=your_64_char_psk_here
  priority=10
}
And here is the configuration of my home network WAP.
Code:
Wireless Access Point - ThomsonB27795	

	Configuration
			
Interface Enabled:	Yes
Physical Address:	xx:xx:xx:xx:xx:xx
Network Name (SSID):	ThomsonB27795
Interface Type:	802.11b/g
Actual Speed:	36 Mbps
Band:	2.4G Hz
Channel Selection:	Auto
Region:	Europe
Channel:	1
Allow multicast from Broadband Network:	Yes

	Security

Broadcast Network Name:	Yes
Allow New Devices:	New stations are allowed (automatically)
Security Mode:	none
And here is the output of the wlan0_restart command: (an output I have been seeing for the past week)
Code:
# /etc/rc.d/rc.inet1 wlan0_restart
info, wlan0: sending signal 1 to pid 4924
info, wlan0: exiting
/etc/rc.d/rc.inet1:  wlan0 information: 'Any ESSID'
Error for wireless request "Set Nickname" (8B1C) :
    SET failed on device wlan0 ; Operation not supported.
Polling for DHCP server on interface wlan0:
err, wlan0: timed out
warn, wlan0: using IPV4LL address 169.254.162.167
And I have used other drivers at wpa_supplicant (wext, ndiswrapper etc. etc.) and wicd. Wicd doesn't see any wireless networks.

Shall I buy a wireless USB adapter now? :P

Last edited by suChris; 12-07-2009 at 09:27 AM.
 
Old 12-07-2009, 09:37 AM   #14
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by suChris View Post
Shall I buy a wireless USB adapter now? :P
You might be trading one driver problem for another.

I'm not a wireless network guru but I can share what I experienced recently. I had problems with an Atheros wireless driver on an Acer netbook. It used the ath9k driver instead of the ath5k driver. Instead of installing MadWiFi I built and installed the most recent compat-wireless available here: http://linuxwireless.org/en/users/Download

There a numerous updates for the ath5k in each of the stable downloads. I suggest using the latest version available titled compat-wireless-2.6.32-rc7.tar.bz2 to get all the changes for the ath5k.

YMMV

Last edited by Chuck56; 12-07-2009 at 09:50 AM. Reason: spelling
 
1 members found this post helpful.
Old 12-07-2009, 10:01 AM   #15
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
Quote:
Originally Posted by suChris View Post
wpa_supplicant.conf:
Code:
# WPA protected network, supply your own ESSID and WPAPSK here:
network={
  scan_ssid=0
  ssid="ThomsonB27795"
  proto=WPA RSN
  key_mgmt=NONE
  pairwise=CCMP TKIP
  group=CCMP TKIP WEP104 WEP40
  #psk=your_64_char_psk_here
  priority=10
}
you can try with this wpa_supplicant.conf, substituting your_psk with your actual psk
Code:
# WPA protected network, supply your own ESSID and WPAPSK here:
network={
  scan_ssid=1
  ssid="ThomsonB27795"
  proto=WPA RSN
  key_mgmt=WPA-PSK
  pairwise=CCMP TKIP
  group=CCMP TKIP WEP104 WEP40
  psk="your_psk"
}
then
Code:
/etc/rc.d/rc.inet1 restart
you can try also launching wpa_supplicant manually with -dd option to see debugging output
Code:
/etc/rc.d/rc.inet1 stop
wpa_supplicant -B -c/etc/wpa_supplicant.conf -dd -iath0

Last edited by ponce; 12-07-2009 at 10:03 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
madwifi and wpa_supplicant, won't authenticate. mr.gizm0 Linux - Wireless Networking 2 09-12-2007 06:48 AM
wpa_supplicant without madwifi support? dlock Slackware 3 07-13-2007 01:41 PM
atheros madwifi wpa_supplicant troubles jb2006 Slackware 3 03-27-2006 02:33 PM
2.6.14, Madwifi & wpa_supplicant on Slack 10.2... rkelsen Slackware 4 11-03-2005 05:59 AM
Madwifi / wpa_supplicant on Kanotix (debian3.1) mattshort Linux - Wireless Networking 2 09-05-2005 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration