Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
madwifi-ng wpa_supplicant HELP! can't find any ap's
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fintan
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 150
Location: Dublin

PostPosted: Sat Jul 22, 2006 12:00 pm    Post subject: madwifi-ng wpa_supplicant HELP! can't find any ap's Reply with quote

Hi I've been trying to get wireless working for ages. I've a atheros card in my laptop. No matter what version of madwifi I have install, I can't detect any ap's. I've madwifi-ng-0.9.1 installed & my kernel is 2.6.17-suspend2-r2. Any help would be apprieciate. Thanks


Code:

wpa_supplicant -Dmadwifi -iath0 -c /etc/wpa_supplicant/wpa_supplicant.conf -dd
Initializing interface 'ath0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'madwifi' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=440
ap_scan=1
update_config=1
Line: 6 - start of a new network block
ssid - hexdump_ascii(len=5):
     67 68 6f 73 74                                    ghost
PSK (ASCII passphrase) - hexdump_ascii(len=18): [REMOVED]
proto: 0x1
key_mgmt: 0x2
pairwise: 0x8
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Line 12: removed CCMP from group cipher list since it was not allowed for pairwise cipher
Priority group 0
   id=0 ssid='ghost'
Initializing interface (2) 'ath0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=20 WE(source)=13 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:0b:6b:37:8e:74
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_set_countermeasures: enabled=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Added interface ath0
Wireless event: cmd=0x8b06 len=8
Ignore event for foreign ifindex 5
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=8
CTRL_IFACE monitor attached - hexdump(len=22): 2f 74 6d 70 2f 77 70 61 5f 63 74 72 6c 5f 31 32 38 38 37 2d 30 00
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING
RX ctrl_iface - hexdump_ascii(len=4):
     53 43 41 4e                                       SCAN
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=8
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING
RX ctrl_iface - hexdump_ascii(len=12):
     53 43 41 4e 5f 52 45 53 55 4c 54 53               SCAN_RESULTS
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47                                       PING
RX ctrl_iface - hexdump_ascii(len=4):
     50 49 4e 47   
Back to top
View user's profile Send private message
Da Fox
Guru
Guru


Joined: 06 Jul 2005
Posts: 342

PostPosted: Sat Jul 22, 2006 2:56 pm    Post subject: Reply with quote

do you have any AP's configured in /etc/wpa_supplicant.conf?
Can you scan for access points with iwconfig? (do an "iwlist atho scan", iwlist might be part of the net-wireless/wireless-tools)
Have you configured wireless extensions in your kernel? (Probably you have, since madwifi might not work at all otherwise)
_________________
"Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami

JGBE, a Java based GameBoy Emulator
Back to top
View user's profile Send private message
nadi
Apprentice
Apprentice


Joined: 06 Aug 2004
Posts: 280
Location: Norway

PostPosted: Sat Jul 22, 2006 3:29 pm    Post subject: Reply with quote

I have exactly the same card (I agree, I hate it, but it is integrated in my T40p laptop). we can get it to work, it took me also a lot of time to do it.
here is my /etc/wpa_supplicant.conf
Code:
nadi barc # cat /etc/wpa_supplicant.conf
ctrl_interface_group=0
#eapol_version=1
ap_scan=1
#fast_reauth=1
       
# Static WEP keys

ctrl_interface=/var/run/wpa_supplicant

network={
        ssid="felix"
        key_mgmt=NONE
#       wep_key0="xxxxxxxxxxxx" # work
        wep_key0="XXXXX" # home
        wep_tx_keyidx=0
        priority=1
}

as you see, I am using a simple WEP key encryption.
now, if you run /etc/init.d/net.ath0, it looks like nothing happens, I agree with you. try this as root:
Code:
# wpa_supplicant -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf
# dhcp ath0

and try to ping www.vg.no
What I found is that running /etc/init.d/net.ath0 somewhat fail to complete the association, only scanning. If you check
Code:

#cat /sys/class/net/ath0/wireless/status

and see which mode wpa_supplicant is in. 0x4 should be operated network if I understood correctly. 0x0 is inoperating and 0x1 is scanning( ?). anyway, mine is 0x1 after /etc/init.d/net.ath0 restart, so running the wpa_supplicant line above renders it to 0x4.

I also suggest not using dhcpcd, emerge dhcp instead (dhclient). It caused lockups in my machine.

post the results.
_________________
-----------
Blue Skies!
Back to top
View user's profile Send private message
fintan
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 150
Location: Dublin

PostPosted: Sat Jul 22, 2006 11:13 pm    Post subject: Reply with quote

Thanks guys for the reply. Here's my wpa conf file.

Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=440
ap_scan=1
update_config=1

network={
        ssid="ghost"
        psk="this is my psk"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=TKIP
}


I've wireless setup right in the kernel. The output from iwconfig is

Code:

iwconfig ath0

ath0      IEEE 802.11g  ESSID:""
          Mode:Managed  Channel:0  Access Point: Not-Associated
          Bit Rate:0 kb/s   Tx-Power:16 dBm   Sensitivity=0/3
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/94  Signal level=-95 dBm  Noise level=-95 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


I've tried running wpa_supplicant from the command line & dhcping it with no joy. Just can't find any ap's

Code:

cat /sys/class/net/ath0/wireless/status
0x1


It's seems just to be scanning all the time and not really doing anything. Oh my baselayout is

Code:

eix baselayout
* sys-apps/baselayout
     Available versions:  1.11.13-r2 1.11.14-r8 1.11.15-r3 1.12.0-r1 1.12.1
     Installed:           1.12.1
     Homepage:            http://www.gentoo.org/
     Description:         Filesystem baselayout and init scripts


When I run wpa_supplicant from the command line I'm getting

Code:

wpa_supplicant -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf

ioctl[SIOCSIWSCAN]: Invalid argument
Failed to initiate AP scan.
ioctl[SIOCSIWSCAN]: Invalid argument
Failed to initiate AP scan.
ioctl[SIOCSIWSCAN]: Invalid argument
Failed to initiate AP scan.
Back to top
View user's profile Send private message
Da Fox
Guru
Guru


Joined: 06 Jul 2005
Posts: 342

PostPosted: Sun Jul 23, 2006 12:48 pm    Post subject: Re: madwifi-ng wpa_supplicant HELP! can't find any ap's Reply with quote

fintan wrote:
I've madwifi-ng-0.9.1 installed & my kernel is 2.6.17-suspend2-r2.

What version of madwifi and wpa_supplicant do you have installed?
I don't see madwifi-ng-0.9.1 in portage?
Code:
dafox@shogoki ~/.themes $ eix madwifi-ng
* net-wireless/madwifi-ng
     Available versions:  0.0.1443.20060207 0.0.1531.20060427
     Installed:           0.0.1531.20060427
     Homepage:            http://www.madwifi.org/
     Description:         Next Generation driver for Atheros based IEEE 802.11a/b/g wireless LAN cards

The wireless extensions themselves appear to be working as you get output from iwconfig. Have you tried manually scanning for AP's with iwlist?
If it's possible to disable the security on the router (for a short while), you could try with the commandline tools only and without wpa_supplicant to see if it works with an unsecured accespoints (to pinpoint the problem to wpa_supplicant). Otherwise it could be the drivers.
_________________
"Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami

JGBE, a Java based GameBoy Emulator
Back to top
View user's profile Send private message
fintan
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 150
Location: Dublin

PostPosted: Sun Jul 23, 2006 9:54 pm    Post subject: Reply with quote

I go it from here

https://bugs.gentoo.org/show_bug.cgi?id=134438

It's in my overlay. It's just in portage now. With iwlist I get no results found. Tried with & without security, no ap's found. What use flags do you have set for wpa_supplicant?

Oh I've wpa_supplicant-0.5.4 installed.
Back to top
View user's profile Send private message
nadi
Apprentice
Apprentice


Joined: 06 Aug 2004
Posts: 280
Location: Norway

PostPosted: Sun Jul 23, 2006 11:56 pm    Post subject: Reply with quote

Code:
nadi barc # equery u wpa_supplicant
[ Searching for packages matching wpa_supplicant... ]
[ Colour Code : set unset ]
[ Legend        : Left column  (U) - USE flags from make.conf                     ]
[                  : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for net-wireless/wpa_supplicant-0.5.4 ]
 U I
 - - dbus     : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
 - - gsm      : Add support for EAP-SIM authentication algorithm
 + + madwifi  : Add support for madwifi (Atheros chipset)
 + + qt       : <unknown>
 + + readline : Enables support for libreadline, a GNU line-editing library that almost everyone wants
 + + ssl      : Adds support for Secure Socket Layer connections

_________________
-----------
Blue Skies!
Back to top
View user's profile Send private message
nadi
Apprentice
Apprentice


Joined: 06 Aug 2004
Posts: 280
Location: Norway

PostPosted: Sun Jul 23, 2006 11:59 pm    Post subject: Reply with quote

oh, and I am using madwifi-ng-0.0.1531.20060427 and not the recent one 0.9.1. I am actually afraid to emerge the recent one :-)
N

p.s. can you debug the wpa_supplicant and post it here?
Code:
# wpa_supplicant -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf -Bdd

_________________
-----------
Blue Skies!
Back to top
View user's profile Send private message
fintan
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 150
Location: Dublin

PostPosted: Mon Jul 24, 2006 8:30 am    Post subject: Reply with quote

I've tried with/without qt3,qt4 & dbus.

Quote:
I am actually afraid to emerge the recent one :-)


I know what you mean. I had this working briefly. Here's the output form

wpa_supplicant -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf -dd

Code:

Initializing interface 'ath0' conf '/etc/wpa_supplicant.conf' driver 'madwifi' 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=440
ap_scan=1
update_config=1
Line: 6 - start of a new network block
ssid - hexdump_ascii(len=5):
     67 68 6f 73 74                                    ghost           
PSK (ASCII passphrase) - hexdump_ascii(len=18): [REMOVED]
proto: 0x1
key_mgmt: 0x2
pairwise: 0x8
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Line 12: removed CCMP from group cipher list since it was not allowed for pairwise cipher
Priority group 0
   id=0 ssid='ghost'
Initializing interface (2) 'ath0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=20 WE(source)=13 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:0b:6b:37:8e:74
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_set_countermeasures: enabled=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Added interface ath0
Wireless event: cmd=0x8b06 len=8
Ignore event for foreign ifindex 5
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=8
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=8
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
No suitable AP found.
Setting scan request: 5 sec 0 usec
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface ath0
State: SCANNING -> DISCONNECTED
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=0
wpa_driver_madwifi_set_countermeasures: enabled=0
No keys have been configured - skip key clearing
WEXT: Operstate: linkmode=0, operstate=6
Cancelling scan request
Back to top
View user's profile Send private message
fintan
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 150
Location: Dublin

PostPosted: Tue Jul 25, 2006 7:27 pm    Post subject: Reply with quote

Just want to bump this *bump* :)

Anyone have any ideas?
Back to top
View user's profile Send private message
fintan
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 150
Location: Dublin

PostPosted: Thu Jul 27, 2006 1:57 pm    Post subject: Reply with quote

Ok I've installed ndiswrapper & configured it. I'm getting the same problem. I'm beginning to think my wifi card is screwed. Going to try hostapd and see if I can get some better results.
Back to top
View user's profile Send private message
thaper
n00b
n00b


Joined: 06 Nov 2004
Posts: 42

PostPosted: Fri Jul 28, 2006 2:16 am    Post subject: MadWiFi FoR YoU Reply with quote

My modules:::
Module Size Used by
wlan_tkip 11008 0
realtime 7688 0
button 5136 0
fan 3460 0
thermal 10760 0
video 14084 0
toshiba_acpi 5012 0
processor 15024 1 thermal
battery 7812 0
ac 3588 0
snd_pcm_oss 48032 0
snd_mixer_oss 17024 2 snd_pcm_oss
snd_seq_oss 31488 0
snd_seq_midi_event 6016 1 snd_seq_oss
snd_seq 48080 4 snd_seq_oss,snd_seq_midi_event
snd_seq_device 6924 2 snd_seq_oss,snd_seq
wlan_wep 5888 1
uhci_hcd 30096 0
psmouse 37512 0
ath_pci 70300 0
ath_rate_sample 15112 1 ath_pci
wlan 130972 5 wlan_tkip,wlan_wep,ath_pci,ath_rate_sample
ath_hal 146896 3 ath_pci,ath_rate_sample
ehci_hcd 30856 0
ohci_hcd 19332 0
8250_pci 19200 0
8250 21012 1 8250_pci
serial_core 18432 1 8250
i2c_ali15x3 6660 0
i2c_core 17424 1 i2c_ali15x3
snd_ali5451 20748 3
snd_ac97_codec 91424 1 snd_ali5451
snd_ac97_bus 1920 1 snd_ac97_codec
snd_pcm 79240 4 snd_pcm_oss,snd_ali5451,snd_ac97_codec
snd_timer 21508 2 snd_seq,snd_pcm
snd 46052 12 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_seq_device,snd_ali5451,snd_ac97_codec,snd_pcm,snd_timer
soundcore 7776 2 snd
snd_page_alloc 8456 1 snd_pcm
usbcore 115588 4 uhci_hcd,ehci_hcd,ohci_hcd

----------------------------------------------------------------------------------
My Programs::::
sky_dragon administrator # etcat -v madwifi-old-tools
[ Results for search key : madwifi-old-tools ]
[ Candidate applications found : 2 ]

Only printing found installed programs.

* net-wireless/madwifi-old-tools :
[ ~ ] 0.0.1417.20060128 (0)
[M~I] 0.1417.20060128 (0) OVERLAY
sky_dragon administrator # etcat -v madwifi-old
[ Results for search key : madwifi-old ]
[ Candidate applications found : 2 ]

Only printing found installed programs.

* net-wireless/madwifi-old :
[ ~ ] 0.0.1417.20060128 (0)
[M~I] 0.1417.20060128 (0) OVERLAY
sky_dragon administrator # etcat -v baselayout
[ Results for search key : baselayout ]
[ Candidate applications found : 5 ]

Only printing found installed programs.

* sys-apps/baselayout :
[ ~ ] 1.11.13-r2 (0)
[ ] 1.11.14-r8 (0)
[ ] 1.11.15-r3 (0)
[ ~ ] 1.12.0-r1 (0)
[ ~I] 1.12.1 (0)
sky_dragon administrator #
------------------------------------------------------------------------
/etc/conf.d/net:::
config_ath0=( "dhcp" )
--------------------------------------------------------------------------
/etc/conf.d/wireless:::

essid_ath0="ICU"
mode_ath0="managed"
iwconfig_ath0="txpower 15 rate 54M"
sleep_scan_eth0="1"
sleep_associate_eth0="25"
key_ICU="YoUrKeY open"
----------------------------------------------------------------------



Hope this helps.
Back to top
View user's profile Send private message
fintan
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 150
Location: Dublin

PostPosted: Fri Jul 28, 2006 7:56 am    Post subject: Reply with quote

Thanks thaper I'll give it a run through. I think I'll end up using hostapd though. Have you tried madwifi-ng at all?
Back to top
View user's profile Send private message
thaper
n00b
n00b


Joined: 06 Nov 2004
Posts: 42

PostPosted: Sat Jul 29, 2006 11:24 pm    Post subject: madwifi Reply with quote

yes I have tried every single madwifi package on my toshiba...

the only one that works is madwifi-old

I actually wrote a script just to test all the madwifi packages.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum