LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 08-18-2006, 07:30 PM   #16
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41

I forgot to mention that I tried again to install ndiswrapper from source and also a version available on the apt repositories. Both attempts failed.

So, I decided to use the bcm43xx driver and I just cut the firmware following the instructions on your page, Hangdog42. It seems to be able to scan for networks (all of them encrypted, though, including mine). At this time I cannot disable wpa on my router for fear of messing up the stuff other people are doing in my household.

I've just installed wpa_supplicant through apt-get. On your web page you say:
Quote:
wpa_supplicant isn't the easiest program to compile, largely because you need to write your own .config file.
I didn't have to write any .config file because apt did it all. I don't know if that is a problem in the first place, because whatever defaults might not be what I need.

I see there are several examples of wpa_supplicant.conf. I can write mine. Is it supposed to be placed under /etc/wpa_supplicant/ ? Seems like the logical location.

As usual, I'm ready to take my chances here. I'll keep posting.
 
Old 08-19-2006, 07:22 AM   #17
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
I didn't have to write any .config file because apt did it all. I don't know if that is a problem in the first place, because whatever defaults might not be what I need.
The part you really need from wpa_supplicant is the wext driver, and I would be highly surprised if that wasn't in a binary package. I believe it is used by a number of drivers, not just bcm43xx, so I'm betting its there. If not, the .config example I give on my website does compile wext, so you could just use that and compile yourself.

Quote:
I see there are several examples of wpa_supplicant.conf. I can write mine. Is it supposed to be placed under /etc/wpa_supplicant/ ? Seems like the logical location.
You can have your conf file anywhere, namely because you have to supply the path when you start it. If you look at the bottom of the wpa_supplicant page on my site, you'll see that the -c flag is used to specify the config file. If you just use -c/etc/wpa_supplicant/config_filename, it should work.
 
Old 08-23-2006, 06:37 PM   #18
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
Smile I'm getting close

My rig, with the native bcm43xx and the SoftMAC stack, can access unencrypted access points.

Now, I haven't been able to make wpa_supplicant work.

Here's my wpa_supplicant.conf:
Quote:
ctrl_interface=/var/run/wpa_supplicant

network={
ssid="mypoint"
key_mgmt=WPA-PSK
proto=WPA
pairwise=TKIP
group=TKIP
psk="mysupersecretkey"
priority=5
}
After ifconfig:
Quote:

eth0 Link encap:Ethernet HWaddr 00:C0:9F:B9:F7:08
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:185 Base address:0xa000

eth1 Link encap:Ethernet HWaddr 00:14:A5:10:08:87
inet6 addr: fe80::214:a5ff:fe10:887/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:281 errors:0 dropped:1 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:93189 (91.0 KiB) TX bytes:1103 (1.0 KiB)
Interrupt:3 Base address:0x8000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:54 errors:0 dropped:0 overruns:0 frame:0
TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2396 (2.3 KiB) TX bytes:2396 (2.3 KiB)
After iwconfig:
Quote:
lo no wireless extensions.

eth0 no wireless extensions.

eth1 IEEE 802.11b/g ESSID:"default" Nickname:"Broadcom 4306"
Mode:Managed Frequency=2.462 GHz Access Point: 00:13:46:43:09:A6
Bit Rate=11 Mb/s Tx-Power=19 dBm
RTS thrff Fragment thrff
Encryption keyff
Link Quality=100/100 Signal level=2/3 Noise level=190/100
Rx invalid nwid:0 Rx invalid crypt:10 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

sit0 no wireless extensions.
After wpa_supplicant -c/etc/wpa_supplicant.conf -ieth1 -d:

Quote:
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'default' 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'
Priority group 5
id=0 ssid='mypoint'
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)=20 WE(source)=18 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:14:a5:10:08:87
wpa_driver_hostap_set_wpa: enabled=1
Driver does not support WPA.
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
Failed to set encryption.
wpa_driver_hostap_set_countermeasures: enabled=0
wpa_driver_hostap_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Added interface eth1
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' 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
Scan results: -1
Failed to get scan results
Failed to get scan results - try scanning again
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b19 len=8
Received 411 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 5
0: 00:13:46:3f:93:06 ssid='mypoint' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
selected based on WPA IE
Trying to associate with 00:13:46:3f:93:06 (SSID='mypoint' freq=0 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_hostap_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_hostap_associate
hostap: Failed to configure ieee_802_1x param
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b1a len=16
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:13:46:3f:93:06 into blacklist
State: ASSOCIATING -> 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
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b19 len=8
Received 412 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 5
0: 00:13:46:3f:93:06 ssid='mypoint' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
selected based on WPA IE
Trying to associate with 00:13:46:3f:93:06 (SSID='mypoint' freq=0 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipheioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Invalid argument
r suites: group 8 pairwise 8 key_mgmt 2
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_hostap_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_hostap_associate
hostap: Failed to configure ieee_802_1x param
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b1a len=16
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:13:46:3f:93:06 blacklist count incremented to 2
State: ASSOCIATING -> 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
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b19 len=8
Received 605 bytes of scan results (3 BSSes)
Scan results: 3
Selecting BSS from priority group 5
0: 00:13:46:3f:93:06 ssid='mypoint' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
skip - blacklisted
1: 00:14:bf:20:91:90 ssid='pepper01' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
2: 00:13:46:43:09:a6 ssid='default' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
skip - no WPA/RSN IE
No APs found - clear blacklist and try again
Removed BSSID 00:13:46:3f:93:06 from blacklist (clear)
Selecting BSS from priority group 5
0: 00:13:46:3f:93:06 ssid='mypoint' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
selected based on WPA IE
Trying to associate with 00:13:46:3f:93:06 (SSID='mypoint' freq=0 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_hostap_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_hostap_associate
hostap: Failed to configure ieee_802_1x param
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b1a len=16
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface eth1
State: ASSOCIATING -> 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_hostap_set_wpa: enabled=0
Failed to disable WPA in the driver.
wpa_driver_hostap_set_drop_unencrypted: enabled=0
wpa_driver_hostap_set_countermeasures: enabled=0
No keys have been configured - skip key clearing
WEXT: Operstate: linkmode=0, operstate=6
Cancelling scan request
Finally, after wpa_supplicant -w -Dwext -c/etc/wpa_supplicant.conf -ieth1:

Quote:
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Initializing interface 'eth1' 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'
Priority group 5
id=0 ssid='mypoint'
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)=20 WE(source)=18 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:14:a5:10:08:87
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
Added interface eth1
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' 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
Scan results: -1
Failed to get scan results
Failed to get scan results - try scanning again
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b19 len=8
Received 222 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 5
0: 00:13:46:3f:93:06 ssid='mypoint' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
selected based on WPA IE
Trying to associate with 00:13:46:3f:93:06 (SSID='mypoint' freq=0 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b1a len=16
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:13:46:3f:93:06 into blacklist
State: ASSOCIATING -> 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
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b19 len=8
Received 800 bytes of scan results (4 BSSes)
Scan results: 4
Selecting BSS from priority group 5
0: 00:13:46:3f:93:06 ssid='mypoint' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
selected based on WPA IE
Trying to associate with 00:13:46:3f:93:06 (SSID='mypoint' freq=0 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b1a len=16
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface eth1
State: ASSOCIATING -> 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_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
WEXT: Operstate: linkmode=0, operstate=6
Removed BSSID 00:13:46:3f:93:06 from blacklist (clear)
Cancelling scan request
I could use some pointers at this point. Thank you!!
 
Old 08-28-2006, 06:55 AM   #19
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Sorry for the delay in responding, I was called away for a bit....

I'm guessing that the problem in your last post stem from incorrectly starting wpa_supplicant, particularly the first time. The command I use is this:

wpa_supplicant -Bw -Dwext -c/etc/wpa_supplicant.conf -ieth0

In your commands, you never use -B (which starts daemon mode and might be necessary) and you have a colon ( at the end of your command. If that isn't a typo, then that could be causing trouble. Also, how are you trying to get an IP address once you've run wpa_supplicant? I don't know if this makes any difference, but in my wpa_supplicant.conf I don't have the ctrl_interface line.
 
Old 08-29-2006, 09:44 AM   #20
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
Thanks for your answer, Hangdog42.

This evening I will try again and follow your advice and will post again.
 
Old 08-29-2006, 10:34 PM   #21
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
Hangdog42, here is what I did:

I gor rid of the ctrl_interface line

Then I did this

sudo rmmod bcm43xx
sudo modprobe bcm43xx
sudo wpa_supplicant -Bw -Dwext -c/etc/wpa_supplicant.conf -ieth1
sudo dhclient eth1 -d


The output was:

Quote:
Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth1/00:14:a5:10:08:87
Sending on LPF/eth1/00:14:a5:10:08:87
Sending on Socket/fallback/fallback-net
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
Trying recorded lease 192.168.0.103
PING 192.168.0.1 (192.168.0.1): 56 data bytes

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
No working leases in persistent database.

Sleeping.

receive_packet failed on eth1: Network is down
Then iwconfig

Quote:
lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.

eth1 IEEE 802.11b/g ESSID:"mynetwork" Nickname:"Broadcom 4306"
Mode:Managed Frequency=2.437 GHz Access Point: 00:13:46:3F:93:06
Bit Rate=11 Mb/s
RTS thrff Fragment thrff
Link Quality=100/100 Signal level=2/3 Noise level=186/100
Rx invalid nwid:0 Rx invalid crypt:59 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

My router's IP is 192.168.0.3
Is that a problem for dhclient? I ask because it says it is trying to ping 192.168.0.1
 
Old 08-30-2006, 07:05 AM   #22
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
OK, I'm not sure what the ping problem is about, but it looks as if dhclient isn't receiving a response. Just to check, is your router set up as a DHCP server? You could also set up a static IP address, just to see if the driver is working. You need to do three things:

1) Assign an IP address to the card:
ifconfig eth1 192.168.0.x (just use a free IP address)

2) Set your router as the gateway:
route add default gw 192.168.0.3

3) Edit your /etc/resolv.conf to contain your ISP's DNS servers. For each DNS, add a line like this:

nameserver xxx.xxx.xxx.xxx Where xxx is the IP address of the server. You can usually find out what the IP addresses are from your router's configuration pages.

It looks as if you are close. The card appears to be configured correctly and associating with the access point. The IP address appears to be the last problem (I hope!).
 
Old 08-30-2006, 07:42 PM   #23
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
Thank you, Hangdog42.

I followed the 3 steps you suggested. It didn't work. Then I decided to configure /etc/network/interfaces, to get my static IP. It didn't work, either.

It is ironic, but I'm about to spend the next few weeks in a place with a public, unencrypted AP; no LANs for me there. On my return, I will go about this problem again, and I'll post.

Thanks to all the folks who have been helping here, especially to Hangdog42. This is a great community.
 
Old 08-31-2006, 07:31 AM   #24
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
It is ironic, but I'm about to spend the next few weeks in a place with a public, unencrypted AP;
Well, that will give my hair a chance to grow back......I'm a bit stumped about what is going on here.
 
Old 09-28-2006, 05:42 PM   #25
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
I'm back

I am back to continue my fight where I left it. I followed the instructions below and set up my static IP.

Quote:
1) Assign an IP address to the card:
ifconfig eth1 192.168.0.x (just use a free IP address)

2) Set your router as the gateway:
route add default gw 192.168.0.3

3) Edit your /etc/resolv.conf to contain your ISP's DNS servers. For each DNS, add a line like this: nameserver xxx.xxx.xxx.xxx
Now, as root:

rmmod bcm43xx
modprobe bcm43xx
wpa_supplicant -Bw -Dwext -c/etc/wpa_supplicant.conf -ieth1


Nothing happens.

After iwconfig

Quote:
eth1 IEEE 802.11b/g ESSID:"mynetwork" Nickname:"Broadcom 4306"
Mode:Managed Frequency=2.437 GHz Access Point: 00:13:46:3F:93:06
Bit Rate=11 Mb/s Tx-Power=19 dBm
RTS thrff Fragment thrff
Link Quality=100/100 Signal level=2/3 Noise level=187/100
Rx invalid nwid:0 Rx invalid crypt:22 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
I am pretty sure that I've followed all the right steps. At this point, obtaining an IP address is not a problem any more, since my IP is static.

I'll certanly appreciate your input.
 
Old 09-29-2006, 06:45 AM   #26
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
From the output of iwconfig, you're good to go. What does ifconfig and route -n look like? Can you access any sites? One test that might help narrow things down a bit is try connecting to http://www.linuxquestions.org. If that works, then you're set. However if it doesn't, try connecting to http://64.179.4.146. If that gets you to LQ then we have a DNS problem.
 
Old 09-29-2006, 12:32 PM   #27
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
Success!!

Here is the reason why it didn't work on my last post:
  1. After setting up my static IP as shown above, I proceeded to
  2. remove the driver, load it again and then call wpa_supplicant, as described on my last post. I did this to make sure I didn't miss the short time window mentioned above on this thread before the driver turns off the radio.

For some reason, by doing (2) I lost the IP and route settings I had defined before. What I just did is invert the order(i.e. (2) first and then (1)). That way, the IP settings remain in function.

Now all I have to do is to work on my .bashrc to make sure I am connected at boot time.

Special thanks to Hangdog42, whose kindness, talents and excellent web site saved the day once more.
 
Old 09-29-2006, 02:18 PM   #28
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Congrats!

By removing the driver, you are essentially removing the device and all information associated with it. So when you load it again, you have a brand-new situation.
 
Old 04-26-2008, 01:52 PM   #29
xri
Member
 
Registered: Aug 2002
Distribution: Archlinux, Garuda Linux
Posts: 283

Original Poster
Blog Entries: 11

Rep: Reputation: 41
Hi folks. About 1.5 year have elapsed on this thread.

I just wanted to point out that for newer installations on my laptop, the use of wicd has made my life much easier. All you have to do is installing the firmware and using the native driver that comes with the current kernels.

Believe me. It's a cinch. Linux is definitely getting better.
 
  


Reply

Tags
broadcom, security



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
Help!!! BCM4306 ndiswrapper setup under 64 bit SUSE 10 tavisor Linux - Wireless Networking 11 10-08-2006 08:07 PM
HP nx6110-BCM4306-essid bartmann Linux - Laptop and Netbook 2 01-11-2006 01:43 PM
Wireless BCM4306 + Suse 9.2 kemplej Linux - Laptop and Netbook 1 02-24-2005 07:02 AM
HP 54g (BCM4306) in Compaq 2100 and WPA kyuso Linux - Wireless Networking 0 01-07-2005 11:53 PM
Mandrake 9.0 Wireless Works without encryption.. does not with encryption topcat Linux - Wireless Networking 3 05-04-2003 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 04:59 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