Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Native Airport Extreme Drivers
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... , 40, 41, 42  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Daemoniis
n00b
n00b


Joined: 30 Oct 2004
Posts: 16
Location: Suburban Chicago

PostPosted: Mon Mar 05, 2007 7:24 am    Post subject: Reply with quote

Quote:
Do you have a wireless button on your machine?

Not really. The equivalent of that supposedly is the Fn+F2 key combination, but it doesn't work. It looks like the only thing that turns that radio on is ifconfig wlan0 up.

Quote:
Perhaps it's also your AP. Are you trying to connect to an AP with a hidden SSID?

Nope. The router is set to broadcast the SSID.

Quote:
Or perhaps an Ad-Hoc connection? Neither is supported in SoftMAC.

I seriously don't think so. It's juts a Netgear router.
Back to top
View user's profile Send private message
saintpa
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 77

PostPosted: Mon Mar 05, 2007 8:10 am    Post subject: Reply with quote

Daemoniis wrote:
Quote:
Do you have a wireless button on your machine?

Not really. The equivalent of that supposedly is the Fn+F2 key combination, but it doesn't work. It looks like the only thing that turns that radio on is ifconfig wlan0 up

Have you tried
Code:
iwconfig wlan0 power on
to turn on the light?
Back to top
View user's profile Send private message
zerointeger
n00b
n00b


Joined: 22 Jan 2007
Posts: 12

PostPosted: Mon Mar 05, 2007 12:22 pm    Post subject: Reply with quote

I also set the onboard wireless to "enabled" in the bios so I am not able to use the function keys to toggle between wireless and bluetooth.
Back to top
View user's profile Send private message
Daemoniis
n00b
n00b


Joined: 30 Oct 2004
Posts: 16
Location: Suburban Chicago

PostPosted: Mon Mar 05, 2007 3:37 pm    Post subject: Reply with quote

saintpa,
Quote:
Have you tried
Code:
iwconfig wlan0 power on
to turn on the light?

Here's what happens:
Code:
pestiferous ~ # iwconfig wlan0 power on
Error for wireless request "Set Power Management" (8B2D) :
    GET failed on device wlan0 ; Operation not supported.


zerointeger,
Quote:
I also set the onboard wireless to "enabled" in the bios so I am not able to use the function keys to toggle between wireless and bluetooth.

I have exactly the same setting.
Back to top
View user's profile Send private message
saintpa
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 77

PostPosted: Mon Mar 05, 2007 3:54 pm    Post subject: Reply with quote

Daemoniis, I hate to be the one suggesting this: have you tried to bring up the device via ndiswrapper?
Back to top
View user's profile Send private message
zerointeger
n00b
n00b


Joined: 22 Jan 2007
Posts: 12

PostPosted: Mon Mar 05, 2007 4:25 pm    Post subject: Reply with quote

I am not sure if you have the same h/w specs. Here are some details of my setup:
Code:

Dell Inspiron 9400/E1705
Intel Core Duo Processor T7200 (2GHz/667 FSB/4MB L2 Cache)
1GB Dual Channel 667MHz DDR2


and from lspci:
Code:

%> lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation Unknown device 0298 (rev a1)
03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd Unknown device 0832
03:01.1 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 19)
03:01.2 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 01)
03:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 0a)
03:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)
0c:00.0 Network controller: Broadcom Corporation Unknown device 4311 (rev 01)

On a side note I have found others with this same model that were required to use the Intel (ipw3945) drivers vs. the bcm43xx module.

In order to get the wireless working in my case I did the following:

1. Downloaded the linux-2.6.20.tar.bz2 kernel from kernel.org
2. Extracted the necessary info using bcm43xx-fwcutter against the wl_apsta.o like so:
Code:

%> bcm43xx-fwcutter -w /lib/firmware wl_apsta.o

3. Extracted the archive and applied the patch linked from: https://lists.berlios.de/pipermail/bcm43xx-dev/2007-February/003808.html
Code:

%> cd /usr/src/linux-2.6.20/ && patch -p0 <../patch-bcm43xx

4. Ran make menuconfig and applied the following kernel settings:
Code:

Networking --->
<*>   Generic IEEE 802.11 Networking Stack
  [*]     Enable full debugging output
 <M>     IEEE 802.11 WEP encryption (802.1x)
 <M>     IEEE 802.11i CCMP support
 <M>     IEEE 802.11i TKIP encryption
 <M>     Software MAC add-on to the IEEE 802.11 networking stack

Device Drivers --->
 Networking Device Support --->
   Wireless LAN (non-hamradio) --->
     <M>   IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)
      [*]    Support downloading firmware images with Host AP driver
      [*]    Support for non-volatile firmware download
     <M>   Host AP driver for Prism2/2.5/3 in PLX9052 PCI adaptors
     <M>   Host AP driver for Prism2.5 PCI adaptors
     <M>   Broadcom BCM43xx wireless support
      [*]    Broadcom BCM43xx debugging (RECOMMENDED)
              BCM43xx data transfer mode (DMA + PIO)  --->


Then of course:
Code:

%> make && make modules_install


Once I rebooted with the current kernel I just compiled, I did a simple command:
Code:

%> ifconfig -a #this should list your new interface and the wifi light should be lit up on the laptop
%> ifconfig [eth|wlan] up
%> iwlist [eth|wlan] scan


I hope this helps, just so you understand the portion regarding the bcm43xx-fwcutter. It seems the current Broadcom wireless drivers are closed source so some clever individuals developed that tool to extract the necessary firmware information the linux kernel would need to communicate with the hardware as a shared object or module. Again I hope this helps.
Back to top
View user's profile Send private message
Daemoniis
n00b
n00b


Joined: 30 Oct 2004
Posts: 16
Location: Suburban Chicago

PostPosted: Mon Mar 05, 2007 5:53 pm    Post subject: Reply with quote

Gentlemen, we have a breakthrough. It's working. I'm writing this connected to my router with bcm4311. I don't have to time to write more right now, but once I get home, I'll do some more testing and share my experiences in detail. For now, all I can say is that enabling those Prism2-related options in kernel somehow did the trick.

Thank you all for your help, I really appreciate it.
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Mar 05, 2007 5:56 pm    Post subject: Reply with quote

fwcutter does exactly what its name would suggest. It cuts the firmware from existing Broadcom drivers. This firmware is microcode that is uploaded to the card on initialization. It is not executed by Linux and it is machine independent. In most other hardware, the firmware would be stored on a ROM on the card and you would never see it. Broadcom chose to save money by forcing the upload from the driver and leaving out the ROM. Since the bcm43xx team hasn't written an open source firmware yet, we must use Broadcom's firmware.

So, again, bcm43xx is not a binary driver. It uses no binary blob in the kernel. The files produced by fwcutter are uploaded without any changes directly to the card and are not executed in Linux.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Daemoniis
n00b
n00b


Joined: 30 Oct 2004
Posts: 16
Location: Suburban Chicago

PostPosted: Tue Mar 06, 2007 12:59 am    Post subject: Reply with quote

I am absolutely and utterly puzzled. After getting home, I tested different kernel configurations, enabling and disabling different modules, to determine how exactly I made the driver work. I have no clue how. Certainly, it had nothing to do with Prism2 host AP modules. Those are used to turn a Prism2-based wifi card into an AP. Not even close to my bcm4311. Unless it was a pure kernel miracle, somewhere, somehow I must have enabled (or disabled) something, and now bcm4311 can scan for AP and associate without any problems.

Anyway, it works, and in the end it's all that matters. No more NDISWrapper!!! Once again, thanks to my fellow Gentooers for offering their insight and advice.
Back to top
View user's profile Send private message
zerointeger
n00b
n00b


Joined: 22 Jan 2007
Posts: 12

PostPosted: Tue Mar 06, 2007 12:10 pm    Post subject: Reply with quote

I have a new problem dealing with the current bcm43xx driver authenticating using wpa_supplicant. The return errors from wpa_supplicant show errors in regards to not binding to the broadcom 4311 using the bcm43xx driver.

Details:
Code:

%> wpa_supplicant -Dwext -ieth1 -c /etc/wpa_supplicant/wpa_supplicant.conf
Trying to associate with 00:0b:0e:18:70:c2 (SSID='network.com' freq=2462 MHz)
ioctl[SIOCSIWFREQ]: Invalid argument
Association request to the driver failed
Associated with 00:0b:0e:18:70:c2
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys


the wpa_supplicant.conf
Code:

%> cat wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant

network={
   ssid="network.com"
   scan_ssid=1
   proto=WPA2
   key_mgmt=WPA-EAP
   pairwise=TKIP
   eap=TTLS
   identity="username@network.com"
   password="password"
   ca_cert="public-certificate.cer"
   phase2="auth=PAP"
}


The only reason I am posting this question here is because the return response is indicating the 'association request to the driver failed' vs. something to do with the AP. Any help or pointers are appreciated.
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Mar 06, 2007 2:01 pm    Post subject: Reply with quote

Please check dmesg for any relevant errors.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
zerointeger
n00b
n00b


Joined: 22 Jan 2007
Posts: 12

PostPosted: Tue Mar 06, 2007 2:30 pm    Post subject: Reply with quote

Sure, here is some output from running wpa_supplicant:

Code:

%> wpa_supplicant -Dwext -ieth1 -dd
Initializing interface 'eth1' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' 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'
Line: 6 - start of a new network block
ssid - hexdump_ascii(len=17):
     75 63 6f 6e 6e 65 63 74 2e 75 74 61 68 2e 65 64   wpa-networ
     75                                                k
scan_ssid=1 (0x1)
proto: 0x2
key_mgmt: 0x1
pairwise: 0x8
eap methods - hexdump(len=16): 00 00 00 00 15 00 00 00 00 00 00 00 00 00 00 00
identity - hexdump_ascii(len=17):
     75 30 33 36 38 38 33 39 40 75 74 61 68 2e 65 64   username@wpa-networ
     75                                                k
password - hexdump_ascii(len=8): [REMOVED]
ca_cert - hexdump_ascii(len=48):
     2f 68 6f 6d 65 2f 6a 61 73 6f 6e 2f 55 6f 66 55   /home/username/UofU
     57 69 72 65 6c 65 73 73 2f 55 6f 66 55 5f 50 75   Wireless/UofU_Pu
     62 6c 69 63 5f 43 41 5f 43 65 72 74 2e 63 65 72   blic_CA_Cert.cer
phase2 - hexdump_ascii(len=8):
     61 75 74 68 3d 50 41 50                           auth=PAP
Line 17: removed CCMP from group cipher list since it was not allowed for pairwise cipher
Priority group 0
   id=0 ssid='wpa-network'
Initializing interface (2) 'eth1'
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)=21 WE(source)=18 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:1a:92:42:40:d3
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Using existing control interface directory.
ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists, but does not allow connections - assuming it was leftover from forced program termination
Successfully replaced leftover ctrl_iface socket '/var/run/wpa_supplicant/eth1'
Added interface eth1
RTM_NEWLINK: operstate=0 ifi_flags=0x11023 ([UP][LOWER_UP])
Wireless event: cmd=0x8b06 len=12
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=17):
     75 63 6f 6e 6e 65 63 74 2e 75 74 61 68 2e 65 64   wpa-network
     75                                                u
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)
RTM_NEWLINK: operstate=0 ifi_flags=0x11023 ([UP][LOWER_UP])
Wireless event: cmd=0x8b19 len=16
Received 657 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
0: 00:0b:0e:18:70:c2 ssid='wpa-network' wpa_ie_len=30 rsn_ie_len=26 caps=0x11
   selected based on RSN IE
Trying to associate with 00:0b:0e:18:70:c2 (SSID='wpa-network' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
RSN: using IEEE 802.11i/D9.0
WPA: Selected cipher suites: group 8 pairwise 24 key_mgmt 1 proto 2
WPA: set AP WPA IE - hexdump(len=30): dd 1c 00 50 f2 01 01 00 00 50 f2 02 02 00 00 50 f2 02 00 50 f2 04 01 00 00 50 f2 01 00 00
WPA: set AP RSN IE - hexdump(len=26): 30 18 01 00 00 0f ac 02 02 00 00 0f ac 02 00 0f ac 04 01 00 00 0f ac 01 00 00
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT 802.1X
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 02 01 00 00 0f ac 02 01 00 00 0f ac 01 00 00
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
ioctl[SIOCSIWFREQ]: Invalid argument
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=Auto
RSN: Ignored PMKID candidate without preauth flag
RTM_NEWLINK: operstate=0 ifi_flags=0x11023 ([UP][LOWER_UP])
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x11023 ([UP][LOWER_UP])
Wireless event: cmd=0x8b1a len=33
RTM_NEWLINK: operstate=0 ifi_flags=0x11023 ([UP][LOWER_UP])
Wireless event: cmd=0x8b19 len=16
Received 657 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
0: 00:0b:0e:18:70:c2 ssid='wpa-network' wpa_ie_len=30 rsn_ie_len=26 caps=0x11
   selected based on RSN IE
Already associated with the selected AP.
RSN: Ignored PMKID candidate without preauth flag
^XCTRL-EVENT-TERMINATING - signal 2 received
Removing interface eth1
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
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_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6

%> dmesg
...
SoftMAC: Authentication response received from 00:11:24:91:61:fd but no queue item exists.
SoftMAC: Authentication response received from 00:0b:0e:18:70:c2 but no queue item exists.
SoftMAC: Authentication response received from 00:11:24:91:62:81 but no queue item exists.
SoftMAC: Authentication response received from 00:0b:0e:18:70:c2 but no queue item exists.
SoftMAC: Authentication response received from 00:11:24:92:a9:9d but no queue item exists.
SoftMAC: Authentication response received from 00:0b:0e:18:70:c2 but no queue item exists.
SoftMAC: Authentication response received from 00:11:24:91:61:40 but no queue item exists.
SoftMAC: Authentication response received from 00:0b:0e:18:70:c2 but no queue item exists.
SoftMAC: Authentication response received from 00:0b:0e:18:70:c2 but no queue item exists.
SoftMAC: Authentication response received from 00:11:24:91:5d:fb but no queue item exists.
printk: 1 messages suppressed.
SoftMAC: Authentication response received from 00:11:24:91:fb:f4 but no queue item exists.
SoftMAC: Scanning finished: scanned 14 channels starting with channel 1
SoftMAC: Scanning finished: scanned 14 channels starting with channel 1
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
wpa_supplicant[14935]: segfault at 0000000000000048 rip 0000000000420ef6 rsp 00007fffbe6a8c50 error 4
bcm43xx: Radio turned off
bcm43xx: DMA-32 0x0200 (RX) max used slots: 2/64
bcm43xx: DMA-32 0x02A0 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0280 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0260 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0240 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0220 (TX) max used slots: 2/512
bcm43xx: DMA-32 0x0200 (TX) max used slots: 0/512
bcm43xx: Microcode rev 0x127, pl 0xe (2005-04-18  02:36:27)
bcm43xx: Radio turned on
bcm43xx: Chip initialized
bcm43xx: 32-bit DMA initialized
bcm43xx: Keys cleared
bcm43xx: Selected 802.11 core (phytype 2)
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
wpa_supplicant[14943]: segfault at 0000000000000048 rip 0000000000420ef6 rsp 00007fff641af750 error 4
eth1: no IPv6 routers present
bcm43xx: Radio turned off

%> iwlist eth1 scan
eth1      Scan completed :
          Cell 01 - Address: 00:0B:0E:18:70:C0
                    ESSID:"network-1"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Channel:6
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Quality=100/100  Signal level=-34 dBm  Noise level=-69 dBm
                    Extra: Last beacon: 216ms ago
          Cell 02 - Address: 00:0B:0E:18:70:C2
                    ESSID:"wpa-network"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Channel:6
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Quality=99/100  Signal level=-37 dBm  Noise level=-69 dBm
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : 802.1X
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : 802.1X
                    Extra: Last beacon: 284ms ago


I am not good with using the 802.1x authentication but it almost seems as if the wpa_supplicant application cannot find any information regarding this authentication method within the bcm43xx firmware to associate with. If I am missing something regarding the dmesg output please let me know.

Thanks for the assistance.
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Mar 06, 2007 3:04 pm    Post subject: Reply with quote

Quote:
wpa_supplicant[14943]: segfault


WPA Supplicant is segfaulting, solve this first.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
zerointeger
n00b
n00b


Joined: 22 Jan 2007
Posts: 12

PostPosted: Tue Mar 06, 2007 5:09 pm    Post subject: Reply with quote

Well I did a few things against the wpa_supplicant application to see if there were anything strange and here are the results, perhaps you could assist in pointing out the problem with the wpa_supplicant segfaults:

Code:

%> emerge --search wpa_supplicant
Searching...
[ Results for search key : wpa_supplicant ]
[ Applications found : 1 ]

*  net-wireless/wpa_supplicant
      Latest version available: 0.5.7
      Latest version installed: 0.5.7
      Size of files: 696 kB
      Homepage:      http://hostap.epitest.fi/wpa_supplicant/
      Description:   IEEE 802.1X/WPA supplicant for secure wireless transfers
      License:       || ( GPL-2 BSD )


And according to the information at http://hostap.epitest.fi/wpa_supplicant the latest 'stable' release is 0.5.7, so that seems to be ok. Next I went ahead and made sure it is linking to the correct libraries:

Code:

%> ldd /sbin/wpa_supplicant
  libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x00002abd8df9f000)
  libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x00002abd8e0e5000)
  libdl.so.2 => /lib/libdl.so.2 (0x00002abd8e356000)
  libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00002abd8e45b000)
  libc.so.6 => /lib/libc.so.6 (0x00002abd8e592000)
  /lib64/ld-linux-x86-64.so.2 (0x00002abd8de82000)


That seems to be ok. I mean it has the encryption routines available for PAP/WEP etc. Next I went ahead and took a look at some of the sybols for wpa_supplicant to make sure they are accurate:

Code:

%> nm -CDeglnPrs /sbin/wpa_supplicant
_end A 0000000000554b78
stdout B 0000000000554a70 0000000000000008
optarg B 0000000000554a68 0000000000000008
stderr B 0000000000554a60 0000000000000008
_edata A 0000000000554a60
__bss_start A 0000000000554a60
_DYNAMIC A 0000000000554028
_fini T 0000000000438d74
_init T 0000000000404848
vsnprintf U
vfprintf U
usleep U
unsetenv U
unlink U
strstr U
strspn U
strrchr U
strncpy U
strlen U
strerror U
strcmp U
strchr U
strcasecmp U
socket U
snprintf U
sleep U
sk_value U
sk_pop U
sk_num U
sk_free U
signal U
setsockopt U
setenv U
sendto U
sendmsg U
send U
select U
rmdir U
recvfrom U
realloc U
random U
raise U
qsort U
puts U
putchar U
printf U
perror U
open U
mktime U
mkdir U
memset U
memmove U
memcpy U
malloc U
ioctl U
inet_ntoa U
if_nametoindex U
gettimeofday U
getpid U
getopt U
getgrnam U
getcwd U
fwrite U
ftell U
fseek U
free U
fread U
fprintf U
fopen U
fgets U
fclose U
exit U
dbus_watch_set_data U
dbus_watch_handle U
dbus_watch_get_flags U
dbus_watch_get_fd U
dbus_watch_get_enabled U
dbus_timeout_set_data U
dbus_timeout_handle U
dbus_timeout_get_interval U
dbus_timeout_get_enabled U
dbus_message_unref U
dbus_message_new_signal U
dbus_message_new_method_return U
dbus_message_new_error U
dbus_message_iter_recurse U
dbus_message_iter_open_container U
dbus_message_iter_next U
dbus_message_iter_init_append U
dbus_message_iter_init U
dbus_message_iter_get_element_type U
dbus_message_iter_get_basic U
dbus_message_iter_get_array_len U
dbus_message_iter_get_arg_type U
dbus_message_iter_close_container U
dbus_message_iter_append_basic U
dbus_message_get_signature U
dbus_message_get_path U
dbus_message_get_member U
dbus_message_get_interface U
dbus_message_get_args U
dbus_message_append_args U
dbus_error_init U
dbus_error_free U
dbus_connection_unregister_object_path U
dbus_connection_unref U
dbus_connection_set_watch_functions U
dbus_connection_set_wakeup_main_function U
dbus_connection_set_timeout_functions U
dbus_connection_send U
dbus_connection_register_object_path U
dbus_connection_register_fallback U
dbus_connection_ref U
dbus_connection_get_dispatch_status U
dbus_connection_dispatch U
dbus_bus_request_name U
dbus_bus_get U
daemon U
d2i_X509 U
d2i_PKCS12_fp U
d2i_PKCS12 U
connect U
close U
chown U
chmod U
calloc U
bind U
alarm U
__strtoul_internal U
__strtol_internal U
__strdup U
__libc_start_main U
__gmon_start__ w
__errno_location U
__ctype_b_loc U
_Jv_RegisterClasses w
X509_verify_cert_error_string U
X509_get_subject_name U
X509_get_ext_d2i U
X509_free U
X509_STORE_set_flags U
X509_STORE_add_lookup U
X509_STORE_add_cert U
X509_STORE_CTX_get_ex_data U
X509_STORE_CTX_get_error_depth U
X509_STORE_CTX_get_error U
X509_STORE_CTX_get_current_cert U
X509_NAME_oneline U
X509_LOOKUP_file U
X509_LOOKUP_ctrl U
TLSv1_method U
SSL_write U
SSL_use_certificate_file U
SSL_use_certificate_ASN1 U
SSL_use_certificate U
SSL_use_RSAPrivateKey_ASN1 U
SSL_use_PrivateKey_file U
SSL_use_PrivateKey_ASN1 U
SSL_use_PrivateKey U
SSL_state_string_long U
SSL_state U
SSL_shutdown U
SSL_set_verify U
SSL_set_quiet_shutdown U
SSL_set_ex_data U
SSL_set_cipher_list U
SSL_set_bio U
SSL_set_accept_state U
SSL_read U
SSL_new U
SSL_load_error_strings U
SSL_load_client_CA_file U
SSL_library_init U
SSL_get_ex_data_X509_STORE_CTX_idx U
SSL_get_ex_data U
SSL_get_error U
SSL_get_current_cipher U
SSL_free U
SSL_ctrl U
SSL_connect U
SSL_check_private_key U
SSL_alert_type_string_long U
SSL_alert_desc_string_long U
SSL_CTX_use_certificate_file U
SSL_CTX_use_certificate U
SSL_CTX_use_PrivateKey_file U
SSL_CTX_use_PrivateKey U
SSL_CTX_set_default_passwd_cb_userdata U
SSL_CTX_set_default_passwd_cb U
SSL_CTX_set_client_CA_list U
SSL_CTX_new U
SSL_CTX_load_verify_locations U
SSL_CTX_get_cert_store U
SSL_CTX_free U
SSL_CTX_ctrl U
SSL_CTX_check_private_key U
SSL_CIPHER_get_name U
SHA1_Update U
SHA1_Transform U
SHA1_Init U
SHA1_Final U
PKCS12_parse U
PKCS12_free U
PKCS12_PBE_add U
PEM_read_bio_DSAparams U
PEM_read_bio_DHparams U
MD5_Update U
MD5_Init U
MD5_Final U
MD4_Update U
MD4_Init U
MD4_Final U
EVP_cleanup U
EVP_PKEY_free U
ERR_peek_error U
ERR_load_ENGINE_strings U
ERR_get_error U
ERR_free_strings U
ERR_error_string U
ERR_clear_error U
ENGINE_remove U
ENGINE_load_private_key U
ENGINE_load_dynamic U
ENGINE_init U
ENGINE_free U
ENGINE_finish U
ENGINE_ctrl_cmd_string U
ENGINE_cleanup U
ENGINE_by_id U
DSA_free U
DSA_dup_DH U
DH_free U
DES_set_key U
DES_ecb_encrypt U
BIO_write U
BIO_s_mem U
BIO_read U
BIO_new_file U
BIO_new U
BIO_free U
BIO_ctrl_pending U
BIO_ctrl U
AES_set_encrypt_key U
AES_set_decrypt_key U
AES_encrypt U
AES_decrypt U


Well that seems to be ok, as all of my encryption for the public/private keys are there as well as the other functions wpa_supplicant requires. Since both of those seemed to give me valid results I went ahead and did an strace on it to see what was going on during the authentication and here is that information in its entirety. I am sorry for posting this but I am wondering if the latest patch for bcm43xx has a problem with the wpa_supplicant.

Code:

%> strace /sbin/wpa_supplicant -Dwext -ieth1 -c /etc/wpa_supplicant/wpa_supplicant.conf
execve("/sbin/wpa_supplicant", ["wpa_supplicant", "-Dwext", "-ieth1", "-c", "/etc/wpa_supplicant/wpa_supplica"...], [/* 14 vars */]) = 0
brk(0)                                  = 0x555000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b0f80063000
uname({sys="Linux", node="juxtapose", ...}) = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=133347, ...}) = 0
mmap(NULL, 133347, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b0f80064000
close(3)                                = 0
open("/usr/lib/libssl.so.0.9.8", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\32\1\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=289504, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b0f80085000
mmap(NULL, 1334704, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2b0f80165000
mprotect(0x2b0f801a5000, 1048576, PROT_NONE) = 0
mmap(0x2b0f802a5000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x40000) = 0x2b0f802a5000
close(3)                                = 0
open("/usr/lib/libcrypto.so.0.9.8", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\373"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=1513104, ...}) = 0
mmap(NULL, 2557048, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2b0f802ab000
mprotect(0x2b0f803f6000, 1044480, PROT_NONE) = 0
mmap(0x2b0f804f5000, 143360, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14a000) = 0x2b0f804f5000
mmap(0x2b0f80518000, 13432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2b0f80518000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\20\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=15112, ...}) = 0
mmap(NULL, 1061152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2b0f8051c000
mprotect(0x2b0f8051e000, 1048576, PROT_NONE) = 0
mmap(0x2b0f8061e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x2b0f8061e000
close(3)
open("/usr/lib/libdbus-1.so.3", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200h\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=227320, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b0f80620000
mmap(NULL, 1273256, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2b0f80621000
mprotect(0x2b0f80657000, 1044480, PROT_NONE) = 0
mmap(0x2b0f80756000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x35000) = 0x2b0f80756000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\324\1\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1318352, ...}) = 0
mmap(NULL, 2334920, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2b0f80758000
mprotect(0x2b0f80889000, 1048576, PROT_NONE) = 0
mmap(0x2b0f80989000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x131000) = 0x2b0f80989000
mmap(0x2b0f8098e000, 16584, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2b0f8098e000
close(3)
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b0f80993000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b0f80994000
arch_prctl(ARCH_SET_FS, 0x2b0f80993ae0) = 0
open("/dev/urandom", O_RDONLY)          = 3
read(3, "\313_\7,\361\372\35H", 8)      = 8
close(3)                                = 0
mprotect(0x2b0f80989000, 12288, PROT_READ) = 0
mprotect(0x2b0f80163000, 4096, PROT_READ) = 0
munmap(0x2b0f80064000, 133347)          = 0
brk(0)                                  = 0x555000
brk(0x576000)                           = 0x576000
open("/dev/null", O_RDWR)               = 3
close(3)                                = 0
open("/etc/wpa_supplicant/wpa_supplicant.conf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=432, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b0f80064000
read(3, "# This is a network block that c"..., 4096) = 432
read(3, "", 4096)                       = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2b0f80064000, 4096)            = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=133347, ...}) = 0
mmap(NULL, 133347, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b0f80064000
close(3)
open("/lib/libz.so", O_RDONLY)          = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \35\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=82672, ...}) = 0
mmap(NULL, 1128808, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2b0f80995000
mprotect(0x2b0f809a9000, 1044480, PROT_NONE) = 0
mmap(0x2b0f80aa8000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13000) = 0x2b0f80aa8000
close(3)                                = 0
munmap(0x2b0f80064000, 133347)          = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
socket(PF_NETLINK, SOCK_RAW, 0)         = 4
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000001}, 12) = 0
ioctl(3, 0x8b36, 0x7fff2aa5ef60)        = -1 EOPNOTSUPP (Operation not supported)
ioctl(3, SIOCSIWMODE, 0x7fff2aa5ef70)   = 0
ioctl(3, SIOCGIFFLAGS, {ifr_name="eth1", ifr_flags=IFF_BROADCAST|IFF_NOTRAILERS|IFF_MULTICAST}) = 0
ioctl(3, SIOCSIFFLAGS, 0x7fff2aa5ef60)  = 0
ioctl(3, SIOCGIWRANGE, 0x7fff2aa5efb0)  = 0
access("/proc/net", R_OK)               = 0
access("/proc/net/unix", R_OK)          = 0
socket(PF_FILE, SOCK_DGRAM, 0)          = 5
ioctl(5, SIOCGIFINDEX, {ifr_name="eth1", ifr_index=4}) = 0
close(5)                                = 0
sendto(4, "-\0\0\0\23\0\1\0\1\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\0\0\0"..., 45, 0, NULL, 0) = 45
socket(PF_PACKET, SOCK_DGRAM, 36488)    = 5
ioctl(5, SIOCGIFINDEX, {ifr_name="eth1", ifr_index=4}) = 0
bind(5, {sa_family=AF_PACKET, proto=0x888e, if4, pkttype=PACKET_HOST, addr(0)={0, }, 20) = 0
ioctl(5, SIOCGIFHWADDR, {ifr_name="eth1", ifr_hwaddr=00:1a:92:42:40:d3}) = 0
ioctl(3, 0x8b32, 0x7fff2aa5efa0)        = 0
ioctl(3, 0x8b34, 0x7fff2aa5ef40)        = 0
ioctl(3, 0x8b34, 0x7fff2aa5ef40)        = 0
ioctl(3, 0x8b34, 0x7fff2aa5ef40)        = 0
ioctl(3, 0x8b34, 0x7fff2aa5ef40)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5efa0)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5efa0)        = 0
mkdir("/var/run/wpa_supplicant", 0770)  = 0
socket(PF_FILE, SOCK_DGRAM, 0)          = 6
bind(6, {sa_family=AF_FILE, path="/var/run/wpa_supplicant/eth1"}, 110) = 0
chmod("/var/run/wpa_supplicant/eth1", 0770) = 0
rt_sigaction(SIGINT, {0x409d20, [INT], SA_RESTORER|SA_RESTART, 0x2b0f80787940}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x409d20, [TERM], SA_RESTORER|SA_RESTART, 0x2b0f80787940}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x409d20, [HUP], SA_RESTORER|SA_RESTART, 0x2b0f80787940}, {SIG_DFL}, 8) = 0
select(7, [4 5 6], [], [], {0, 99584})  = 1 (in [4], left {0, 99584})
recvfrom(4, "0\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\4\0\0\0\"\20\0"..., 8192, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000001}, [12]) = 48
recvfrom(4, "\0\1\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\4\0\0\0#\20\0"..., 8192, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000001}, [12]) = 256
recvfrom(4, "\0\1\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\4\0\0\0#\20\0"..., 8192, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000001}, [12]) = 256
recvfrom(4, 0x7fff2aa5cdd0, 8192, 64, 0x7fff2aa5efb0, 0x7fff2aa5efbc) = -1 EAGAIN (Resource temporarily unavailable)
select(7, [4 5 6], [], [], {0, 99319})  = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 424})    = 0 (Timeout)
ioctl(3, SIOCGIWSCAN, 0x7fff2aa5ed80)   = -1 EAGAIN (Resource temporarily unavailable)
dup(2)                                  = 7
fcntl(7, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(7, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b0f80064000
lseek(7, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(7, "ioctl[SIOCGIWSCAN]: Resource tem"..., 53) = 53
close(7)                                = 0
munmap(0x2b0f80064000, 4096)            = 0
select(7, [4 5 6], [], [], {0, 0})      = 0 (Timeout)
ioctl(3, SIOCSIWSCAN, 0x7fff2aa5ef50)   = 0
select(7, [4 5 6], [], [], {0, 520713}) = 1 (in [4], left {0, 272000})
recvfrom(4, "4\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\4\0\0\0#\20\0"..., 8192, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000001}, [12]) = 52
ioctl(3, SIOCGIWSCAN, 0x7fff2aa5cb30)   = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b0f80064000
write(1, "Trying to associate with 00:0b:0"..., 84) = 84
ioctl(3, 0x8b32, 0x7fff2aa5ca00)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5ca10)        = 0
sendto(4, "%\0\0\0\23\0\1\0\2\0\0\0\0\0\0\0\0V\0\0\4\0\0\0\0\0\0\0"..., 37, 0, NULL, 0) = 37
ioctl(3, SIOCSIWMODE, 0x7fff2aa5c990)   = 0
ioctl(3, 0x8b30, 0x7fff2aa5c9e0)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, SIOCSIWFREQ, 0x7fff2aa5c990)   = -1 EINVAL (Invalid argument)
dup(2)                                  = 7
fcntl(7, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(7, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b0f80065000
lseek(7, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(7, "ioctl[SIOCSIWFREQ]: Invalid argu"..., 37) = 37
close(7)
munmap(0x2b0f80065000, 4096)            = 0
ioctl(3, SIOCSIWESSID, 0x7fff2aa5c980)  = 0
ioctl(3, SIOCSIWAP, 0x7fff2aa5c990)     = 0
write(1, "Association request to the drive"..., 41) = 41
recvfrom(4, "0\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\4\0\0\0#\20\0"..., 8192, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000001}, [12]) = 48
recvfrom(4, "H\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\4\0\0\0#\20\0"..., 8192, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000001}, [12]) = 72
recvfrom(4, 0x7fff2aa5cdd0, 8192, 64, 0x7fff2aa5efb0, 0x7fff2aa5efbc) = -1 EAGAIN (Resource temporarily unavailable)
select(7, [4 5 6], [], [], {0, 271871}) = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 1306})   = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 999996}) = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 999996}) = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 999996}) = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 999997}) = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 725058}) = 0 (Timeout)
write(1, "Authentication with 00:00:00:00:"..., 49) = 49
sendto(4, "%\0\0\0\23\0\1\0\3\0\0\0\0\0\0\0\0t\0\0\4\0\0\0\0\0\0\0"..., 37, 0, NULL, 0) = 37
select(7, [4 5 6], [], [], {0, 0})      = 0 (Timeout)
ioctl(3, SIOCSIWSCAN, 0x7fff2aa5ef50)   = 0
select(7, [4 5 6], [], [], {0, 267568}) = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 999996}) = 1 (in [4], left {0, 872000})
recvfrom(4, "4\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\4\0\0\0#\20\0"..., 8192, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000001}, [12]) = 52
ioctl(3, SIOCGIWSCAN, 0x7fff2aa5cb30)   = 0
write(1, "Trying to associate with 00:0b:0"..., 84) = 84
ioctl(3, 0x8b32, 0x7fff2aa5ca00)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5ca10)        = 0
sendto(4, "%\0\0\0\23\0\1\0\4\0\0\0\0\0\0\0\0V\0\0\4\0\0\0\0\0\0\0"..., 37, 0, NULL, 0) = 37
ioctl(3, SIOCSIWMODE, 0x7fff2aa5c990)   = 0
ioctl(3, 0x8b30, 0x7fff2aa5c9e0)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, SIOCSIWFREQ, 0x7fff2aa5c990)   = -1 EINVAL (Invalid argument)
dup(2)                                  = 7
fcntl(7, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(7, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b0f80065000
lseek(7, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(7, "ioctl[SIOCSIWFREQ]: Invalid argu"..., 37) = 37
close(7)                                = 0
munmap(0x2b0f80065000, 4096)            = 0
ioctl(3, SIOCSIWESSID, 0x7fff2aa5c980)  = 0
ioctl(3, SIOCSIWAP, 0x7fff2aa5c990)     = 0
write(1, "Association request to the drive"..., 41) = 41
recvfrom(4, "0\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\4\0\0\0#\20\0"..., 8192, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000001}, [12]) = 48
recvfrom(4, "H\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\4\0\0\0#\20\0"..., 8192, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000001}, [12]) = 72
recvfrom(4, 0x7fff2aa5cdd0, 8192, 64, 0x7fff2aa5efb0, 0x7fff2aa5efbc) = -1 EAGAIN (Resource temporarily unavailable)
select(7, [4 5 6], [], [], {0, 870695}) = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 999996}) = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 999996}) = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 999996}) = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 999996}) = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 128879}) = 0 (Timeout)
write(1, "Authentication with 00:00:00:00:"..., 49) = 49
sendto(4, "%\0\0\0\23\0\1\0\5\0\0\0\0\0\0\0\0t\0\0\4\0\0\0\0\0\0\0"..., 37, 0, NULL, 0) = 37
select(7, [4 5 6], [], [], {0, 0})      = 0 (Timeout)
ioctl(3, SIOCSIWSCAN, 0x7fff2aa5ef50)   = 0
select(7, [4 5 6], [], [], {0, 863653}) = 1 (in [4], left {0, 468000})
recvfrom(4, "4\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\4\0\0\0#\20\0"..., 8192, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000001}, [12]) = 52
ioctl(3, SIOCGIWSCAN, 0x7fff2aa5cb30)   = 0
write(1, "Trying to associate with 00:0b:0"..., 84) = 84
ioctl(3, 0x8b32, 0x7fff2aa5ca00)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5ca10)        = 0
sendto(4, "%\0\0\0\23\0\1\0\6\0\0\0\0\0\0\0\0V\0\0\4\0\0\0\0\0\0\0"..., 37, 0, NULL, 0) = 37
ioctl(3, SIOCSIWMODE, 0x7fff2aa5c990)   = 0
ioctl(3, 0x8b30, 0x7fff2aa5c9e0)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, 0x8b32, 0x7fff2aa5c980)        = 0
ioctl(3, SIOCSIWFREQ, 0x7fff2aa5c990)   = -1 EINVAL (Invalid argument)
dup(2)                                  = 7
fcntl(7, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(7, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b0f80065000
lseek(7, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(7, "ioctl[SIOCSIWFREQ]: Invalid argu"..., 37) = 37
close(7)


Again I am sorry for posting the output of an strace but I am just trying to track down the problem I am experiencing trying to authenticate against an AP with the bcm43xx firmware.

The only problems I can see with the wpa_supplicant is when it seems to seek to a piece of memory that isn't available to the wpa_supplicant application and of course the ioctl error regarding an invalid argument.

Code:

select(7, [4 5 6], [], [], {0, 99584})  = 1 (in [4], left {0, 99584})
recvfrom(4, "0\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\4\0\0\0\"\20\0"..., 8192, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000001}, [12]) = 48
recvfrom(4, "\0\1\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\4\0\0\0#\20\0"..., 8192, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000001}, [12]) = 256
recvfrom(4, "\0\1\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\4\0\0\0#\20\0"..., 8192, MSG_DONTWAIT, {sa_family=AF_NETLINK, pid=0, groups=00000001}, [12]) = 256
recvfrom(4, 0x7fff2aa5cdd0, 8192, 64, 0x7fff2aa5efb0, 0x7fff2aa5efbc) = -1 EAGAIN (Resource temporarily unavailable)
select(7, [4 5 6], [], [], {0, 99319})  = 0 (Timeout)
select(7, [4 5 6], [], [], {0, 424})    = 0 (Timeout)
ioctl(3, SIOCGIWSCAN, 0x7fff2aa5ed80)   = -1 EAGAIN (Resource temporarily unavailable)
dup(2)                                  = 7
fcntl(7, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(7, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b0f80064000
lseek(7, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(7, "ioctl[SIOCGIWSCAN]: Resource tem"..., 53) = 53
close(7)                                = 0


Is with the bcm43xx firmware? To me it seems to be but it very well could be wpa_supplicant's problem. In any event any help debugging this is appreciated. ** Or more specifically with using the wpa_supplicant and bcm43xx against the Broadcom 4311 devices.
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Mar 06, 2007 7:01 pm    Post subject: Reply with quote

It is not the firmware. Please read the post that I posted above regarding firmware.

Can you provide your CFLAGS? Perhaps you've over optimized. What useflags did you build wpa_supplicant against?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
zerointeger
n00b
n00b


Joined: 22 Jan 2007
Posts: 12

PostPosted: Wed Mar 07, 2007 1:18 pm    Post subject: Reply with quote

Sure, and I appreciate the help with this... I am sure it is something simple I am over looking.

Code:
%> cat make.conf
CFLAGS="-O2 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
...
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 638
Location: Uppsala, Sweden

PostPosted: Mon Mar 12, 2007 3:16 pm    Post subject: Reply with quote

Hi all

I have been trying to get this up and running on my Dell M1210 with minor success.

I have patched my kernel with the combined patch and the fix for 4311 (the chip I got) and extracted the firmware from the v3 version of the driver.

When I insert the module it doesn't create any device for me. :(

I'm quite inexperienced with wlan config in linux, any help is welcomed.

ps: yes I have rebooted into the new kernel.
_________________
From Gentoo with love
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Mar 12, 2007 3:51 pm    Post subject: Reply with quote

zerointeger:
It seems that there are issues with 64bit systems and the wireless tools. See this thread for more information:
http://marc.theaimsgroup.com/?l=linux-netdev&m=117318706226473&w=1

Sedrik:
Does lspci list your device? If so, what does
Code:
lspci -vn | grep 14e4
return?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 638
Location: Uppsala, Sweden

PostPosted: Mon Mar 12, 2007 4:04 pm    Post subject: Reply with quote

JoseJX wrote:
Sedrik:
Does lspci list your device? If so, what does
Code:
lspci -vn | grep 14e4
return?


Code:

LappySlappy sedrik # lspci -vn | grep 14e4
03:00.0 0200: 14e4:170c (rev 02)
0c:00.0 0280: 14e4:4311 (rev 01)

_________________
From Gentoo with love
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Mar 12, 2007 10:58 pm    Post subject: Reply with quote

Okay, so you definitely have a 4311. Are you sure that you've compiled the driver as directed in the first post (with debugging, etc.)? Are you sure you've compiled the kernel that you applied the patches to? How do you know the device doesn't exist? What messages do you see in dmesg?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Sedrik
l33t
l33t


Joined: 08 Apr 2005
Posts: 638
Location: Uppsala, Sweden

PostPosted: Tue Mar 13, 2007 12:44 am    Post subject: Reply with quote

Kernel version
Code:
sedrik@LappySlappy ~ $ uname -a
Linux LappySlappy 2.6.19-gentoo-r5 #6 SMP Mon Mar 12 16:06:00 CET 2007 x86_64 Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz GenuineIntel GNU/Linux


Kernel options
Code:

CONFIG_IEEE80211=m
CONFIG_IEEE80211_DEBUG=y
CONFIG_IEEE80211_CRYPT_WEP=m
CONFIG_IEEE80211_CRYPT_CCMP=m
CONFIG_IEEE80211_SOFTMAC=m
CONFIG_IEEE80211_SOFTMAC_DEBUG=y
CONFIG_WIRELESS_EXT=y
CONFIG_BCM43XX=m
CONFIG_BCM43XX_DEBUG=y
CONFIG_BCM43XX_DMA=y
CONFIG_BCM43XX_PIO=y
CONFIG_BCM43XX_DMA_AND_PIO_MODE=y
CONFIG_NET_WIRELESS=y


I used the driver found here. http://www.zcentric.com/blog/2006/12/get_the_broadcom_bcm4311_to_wo_1.html

Code:
LappySlappy sedrik # emerge -av udev hotplug

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-fs/udev-104-r11  USE="(-selinux)" 0 kB
[ebuild   R   ] sys-apps/hotplug-20040923-r2  0 kB


Could that be a problem? That I have hotplug to (I don't know why I have it).

Dmesg output when probing the module.
Code:
ieee80211_crypt: registered algorithm 'NULL'
ieee80211: 802.11 data/management/control stack, git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
bcm43xx driver

_________________
From Gentoo with love
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Mar 13, 2007 1:37 am    Post subject: Reply with quote

Please use the latest 2.6.20 with Larry's combined 2.6.20 patch. It looks like you haven't applied the 4311 patches to the driver.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Tue Mar 13, 2007 1:39 am    Post subject: Reply with quote

For us bcm4311 users, are we going to get our full 802.11g connection strength anytime soon? 11mbps is alright, but 54mbps is a lot better..
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Mar 13, 2007 2:22 am    Post subject: Reply with quote

11Mbps is a lot better than 0Mbps :p

That said, the current 2.6.21 (or Larry's patches to bring your kernel up to that version) should give decent rates.

Here's the numbers from Larry as of March 5th for an idea of the relative rates you might get in a relatively quite environment with the card model listed:

Quote:

Mbps:
Rate Set 11 18 24 36 48
----------------------------------------------------
4306 4.65 3.34 6.64 3.48 2.34
4318 6.12 9.86 11.8 14.6 16.2
4311 5.83 9.19 10.8 12.9 3.08


Quote:

Power Output:
Card Amplitude at 1.8 m with rate=24 Mbs
---------------------------------------------------
4306 -50 to -60 dBm
4318 -60 to -70 dBm
4311 -55 to -65 dBm


Hope that's helpful, the numbers have improved quite a bit over the past few months or so and we're still working on it.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Tue Mar 13, 2007 2:27 am    Post subject: Reply with quote

Where can I find larry's patches then. And does it replace the speed fix that was required a few pages back. (the change of <= to < 8 or whatever it was)
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Goto page Previous  1, 2, 3 ... , 40, 41, 42  Next
Page 41 of 42

 
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