First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 94206
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Mobile Herd <mobile@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Marc Geerlings <m.geerlings@rad.unimaas.nl>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 94206 depends on: Show dependency tree
Show dependency graph
Bug 94206 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-05-27 10:50 0000
After emerging wireless-tools-28_pre7 my broadcom wireless doesn't work
anymore.
It finds my router but there is no traffic between router and card. going back
to   wireless-tools-28_pre6 solves the problem. 

Reproducible: Always
Steps to Reproduce:
1. /etc/init.d/net.wlan0 start


Actual Results:  
feed back is showing that the card finds the router and dhcpcd tries to get a
ip-address but doesn't get one. No traffic between router and card.

Expected Results:  
Getting a ip-address and a working network.

dmesg gives a ndiswrapper error:
ndiswrapper (iw_set_encr:692): removing encryption key 0 failed (c0010015).
If iwconf is not able to set the right encryption no wonder it fails.

Going back to wireless-tools-28_pre6 solves everything.

------- Comment #1 From Georg Müller 2005-05-27 14:40:58 0000 -------
Same here with prsim54 driver:

I have seen that there is the following output of iwconfig:

Rx invalid crypt: 8

(or other numbers, but >0)

------- Comment #2 From Georg Müller 2005-05-28 00:01:00 0000 -------
Ah - btw - here on x86, not on amd64

------- Comment #3 From Henrik Brix Andersen 2005-05-28 13:37:03 0000 -------
Which command leads to the failure?

------- Comment #4 From Doug Goldstein 2005-05-29 02:36:21 0000 -------
Unfortuately I don't have ndiswrapper hardware anymore so I can't easily work
around this one.

Please give the command that results in the failure.

------- Comment #5 From Marc Geerlings 2005-05-29 11:49:24 0000 -------
I had to reinstall pre7 to get the errors again, I usr pre6 because it works
without problem for me. Reinstalling pre7 does indeed let the network card stop
working. As far as I can see there is something wrong with iwconfig in pre7.

------- Comment #6 From Henrik Brix Andersen 2005-05-29 11:55:32 0000 -------
"It doesn't work" is not a very good bug report. Please provide details of
which
specific command makes it fail, and provide relevant output/log files to
document this.

------- Comment #7 From Marc Geerlings 2005-05-29 12:44:33 0000 -------
Configuration files with wireless tools pre6 and pre7:
/etc/conf.d/net:
=emtpty

/etc/conf.d/wireless:
essid_wlan0="hom"
key_hom="s:XXXXXXXXXXXXX enc open"
mode_wlan0="auto"
channel_wlan0="6"
preferred_aps=( "hom" )

niswrapper -l
Installed ndis drivers:
netbc564        driver present, hardware present

lsmod | grep ndiswrapper
ndiswrapper           162088  0

Command with pre6:
/etc/init.d/net.wlan0 start

results pre6:
 * Starting wlan0
 *   Configuring wireless network for wlan0
 *     wlan0 connected to "hom" at 00:09:F3:09:98:53
 *     in auto mode (WEP enabled - open)
 *   Bringing up wlan0
 *     Configuration not set for wlan0 - assuming dhcp
 *     dhcp
 *       Running dhcpcd ...                                               [ ok ]
*       wlan0 received address 192.168.1.100

ifconfig wlan0 (pre6):
wlan0     Link encap:Ethernet  HWaddr 00:90:4B:A5:1A:52
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2804 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2382 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1249249 (1.1 Mb)  TX bytes:198486 (193.8 Kb)
          Memory:e0104000-e0105fff

iwconfig wlan0 (pre6):
wlan0     IEEE 802.11g  ESSID:"hom"  Nickname:"hom"
          Mode:Auto  Frequency:2.437 GHz  Access Point: 00:09:F3:09:98:53
          Bit Rate=54 Mb/s   Tx-Power:24 dBm
          RTS thr:off   Fragment thr:off
          Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX   Security mode:open
          Power Management:off
          Link Quality:100/100  Signal level:-26 dBm  Noise level:-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:6  Invalid misc:1233   Missed beacon:0

route (pre6):
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
neuromancer     *               255.255.255.255 UH    0      0        0 tun2
wintermute      *               255.255.255.255 UH    0      0        0 tun1
192.168.1.0     *               255.255.255.0   U     0      0        0 wlan0
loopback        localhost       255.0.0.0       UG    0      0        0 lo
default         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0

ping 192.168.1.1 (pre6):
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=127 time=37.5 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=127 time=0.936 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=127 time=0.948 ms

Result pre6 does work!!!

Command with pre7:
/etc/init.d/net.wlan0 start

results pre7:
 * Starting wlan0
 *   Configuring wireless network for wlan0
 *     wlan0 connected to "hom" at 00:09:F3:09:98:53
 *     in auto mode (WEP enabled - open)
 *   Bringing up wlan0
 *     Configuration not set for wlan0 - assuming dhcp
 *     dhcp
 *       Running dhcpcd ...                                               [ !! ]

No message in /var/log/everything/current (pre7)
No message in /var/log/kernel/current (pre7)

ifconfig wlan0 (pre7):
wlan0     Link encap:Ethernet  HWaddr 00:90:4B:A5:1A:52
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:4720 (4.6 Kb)
          Memory:e0104000-e0105fff

iwconfig wlan0 (pre7):
wlan0     IEEE 802.11g  ESSID:"hom"  Nickname:"hom"
          Mode:Auto  Frequency:2.437 GHz  Access Point: 00:09:F3:09:98:53
          Bit Rate=54 Mb/s   Tx-Power:24 dBm
          RTS thr:off   Fragment thr:off
          Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX   Security mode:open
          Power Management:off
          Link Quality:100/100  Signal level:-37 dBm  Noise level:-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:46   Missed beacon:0

Route (pre7)
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
neuromancer     *               255.255.255.255 UH    0      0        0 tun2
wintermute      *               255.255.255.255 UH    0      0        0 tun1
loopback        localhost       255.0.0.0       UG    0      0        0 lo

ping 192.168.1.1 (pre7):
connect: Network is unreachable

Result pre7 doesn't work!!!

------- Comment #8 From Doug Goldstein 2005-05-29 13:38:47 0000 -------
Are you using 64-bit WEP or 128-bit WEP?

Brix: I've seen this issue before with bad configs when they made wireless-tools
a little more strict on what it was taking in as input.

------- Comment #9 From Marc Geerlings 2005-05-29 14:13:07 0000 -------
128 WEP, I use a 13 byte character string, the wireless accept also character
input and is also set to 128

------- Comment #10 From Doug Goldstein 2005-05-29 14:26:25 0000 -------
Unfortunately running the net.wlan0 script doesn't really provide any info. If
you could do the steps manually.. That would help a lot more.

iwconfig wlan0 mode auto
iwconfig wlan0 channel 6
iwconfig wlan0 essid hom
iwconfig wlan0 enc XXXXX open
dhcpcd -h mysystem wlan0

And tell us where it fails and give us any error msgs. Also monitor dmesg for
any errors.

------- Comment #11 From Doug Goldstein 2005-05-29 14:30:00 0000 -------
Also you have some redundancy in your config...

essid_wlan0="hom"
key_hom="s:XXXXXXXXXXXXX enc open"
mode_wlan0="auto"
channel_wlan0="6"
preferred_aps=( "hom" )

Trim that down to...
essid_wlan0="hom"
key_hom="s:XXXXXXXXXXXXX enc open"

Why?

Well you're telling it that ONLY use the "hom" network so there's no point in
setting a preferred network. Locking to Channel 6 is not good cause it defaults
to that and your AP might be listening somewhere else. And setting mode to auto
is totally pointless since default is to auto.

------- Comment #12 From Marc Geerlings 2005-05-29 23:04:47 0000 -------
reinstalled pre7 halted and did a boot

Here is the router information (Acer WLAN-G-RU1)
iwlist wlan0 scan:
wlan0     Scan completed :
          Cell 01 - Address: 00:09:F3:09:98:53
                    ESSID:"hom"
                    Protocol:IEEE 802.11g
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality:0/100  Signal level:-61 dBm  Noise level:-256 dBm
                    Encryption key:on
                    Bit Rate:1 Mb/s
                    Bit Rate:2 Mb/s
                    Bit Rate:5.5 Mb/s
                    Bit Rate:6 Mb/s
                    Bit Rate:9 Mb/s
                    Bit Rate:11 Mb/s
                    Bit Rate:12 Mb/s
                    Bit Rate:18 Mb/s
                    Bit Rate:24 Mb/s
                    Bit Rate:36 Mb/s
                    Bit Rate:48 Mb/s
                    Bit Rate:54 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0

first I did (took a test key so I can show the real results):
iwconfig wlan0 channel 6
iwconfig wlan0 mode auto
iwconfig wlan0 essid hom
iwconfig wlan0 key s:7L60TR3R0T5K4 enc open
dhcpcd -h rio wlan0

The card is not getting a IP. But no errors either!
 
result iwconf wlan0:
wlan0     IEEE 802.11g  ESSID:"hom"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:09:F3:09:98:53
          Bit Rate=54 Mb/s   Tx-Power:25 dBm
          RTS thr:off   Fragment thr:off
          Encryption key:0E4C-3630-5452-3352-3054-354B-34   Security mode:open
          Power Management:off
          Link Quality:100/100  Signal level:-47 dBm  Noise level:-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:185   Missed beacon:0

I halted the machine, booted again and did:
iwconfig wlan0 essid hom
iwconfig wlan0 key s:7L60TR3R0T5K4 enc open
dhcpcd -h rio wlan0

Again, the card is not getting a IP. Above commands didn generate a error.

iwconfig wlan0 result:
wlan0     IEEE 802.11g  ESSID:"hom"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:09:F3:09:98:53
          Bit Rate=54 Mb/s   Tx-Power:25 dBm
          RTS thr:off   Fragment thr:off
          Encryption key:0E4C-3630-5452-3352-3054-354B-34   Security mode:open
          Power Management:off
          Link Quality:100/100  Signal level:-47 dBm  Noise level:-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:185   Missed beacon:0

I reemerged ndiswrapper and installed the card with it again. Did the above
again with the same result, no IP.

I reemerged wirelesstools 28pre6 halted and did a boot again. Next the following
commands:
iwconfig wlan0 essid hom
iwconfig wlan0 key s:7L60TR3R0T5K4 enc open
dhcpcd -h rio wlan0

Result is a IP and a fully functioning wireless network.

 

------- Comment #13 From Doug Goldstein 2005-05-29 23:21:25 0000 -------
Verify on the router that s:7L60TR3R0T5K4 is producing
0E4C-3630-5452-3352-3054-354B-34.

Verify that pre6 is doing 0E4C-3630-5452-3352-3054-354B-34 too.

------- Comment #14 From Marc Geerlings 2005-05-29 23:47:41 0000 -------
No it isn't pre6 produces:
374C-3630-5452-3352-3054-354B-34

The key is given as a string to the card and the router. 
7L60TR3R0T5K4, pre6 conversion is accepted, pre7 not.

------- Comment #15 From Marc Geerlings 2005-05-29 23:48:15 0000 -------
No it isn't pre6 produces:
374C-3630-5452-3352-3054-354B-34

The key is given as a string to the card and the router. 
7L60TR3R0T5K4, the pre6 conversion variant is accepted, the pre7 one not.

------- Comment #16 From Marc Geerlings 2005-05-30 05:40:17 0000 -------
Bug isn't resolved, reopen it as bug.

------- Comment #17 From ranson@mit.edu 2005-05-30 21:15:16 0000 -------
*** Bug 94561 has been marked as a duplicate of this bug. ***

------- Comment #18 From ranson@mit.edu 2005-05-30 21:20:23 0000 -------
I am having the nearly the exact same issue using the ipw2200 driver and
wirelesss-tools-pre_7. In my case, the first two hex digits of the WEP key are
being changed to 0E, just as is happening in your case. 

I found that with ifconfig and iwconfig I could manually set the WEP key and
bring up the interface, and then use dhcpcd and get everything working, but the
init script failed every time.

See bug 94561 for details.

------- Comment #19 From Marc Geerlings 2005-05-30 23:20:05 0000 -------
Had the time to check the wireless router and I can comfirm that the key is
374C-3630-5452-3352-3054-354B-34.on the router
I changed the key in /etc/wireless.conf to:
key_hom="374C-3630-5452-3352-3054-354B-34 enc open"
and reemerged pre7, did a halt (completely shutdown the laptop) and a boot.

/etc/init.d/net.wlan0 and
iwconfig wlan0 key 374C-3630-5452-3352-3054-354B-34 enc open
both resulted in a crippled key with iwconfig wlan0:
0E instead of the first two numbers (37).

reemerged pre6 did a /etc/init.d/net.wlan0 start and everything functions.

------- Comment #20 From Henrik Brix Andersen 2005-05-31 00:01:02 0000 -------
Adding Uberlord to CC: as this seems likely to be an init script problem
related
to wireless-tools-28_pre7.

------- Comment #21 From Henrik Brix Andersen 2005-05-31 00:08:23 0000 -------
I can now reproduce the problem with the leading byte being set to 0xOE by
running 'iwconfig' manually - so it's not an init script problem. Sorry about
the false alarm, Uberlord.

I have added =net-wireless/wireless-tools-28_pre7 to package.mask.

------- Comment #22 From ranson@mit.edu 2005-05-31 07:54:01 0000 -------
Interestingly, these two commands have different results:

"iwconfig eth0 key XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX" works and sets the key properly

but

"iwconfig eth0 key XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX enc open" fails, setting the
key to the wrong value"

but

"iwconfig eth0 key XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX key open" works and sets the
key properly.


The error seems to happen with the "enc open" tacked on to the end.


However, running these two commands in a row works properly:
"iwconfig eth0 key XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX"
"iwconfig eth0 enc open"

------- Comment #23 From Jean Tourrilhes 2005-05-31 10:12:29 0000 -------
   Hi,

   Thanks you guys for the very detailed bug report, that did speed up
resolution. 28.pre8 is available on my web site and I guess will be soon
available through the normal channels, for those who like to live dangerously.
   Sorry for this bug (especially that this is a tricky one).

   Jean

------- Comment #24 From Henrik Brix Andersen 2005-05-31 10:44:27 0000 -------
Thank you for the prompt fix, Jean.

I have added net-wireless/wireless-tools-28_pre8 to portage.

------- Comment #25 From manny15 2005-05-31 14:26:47 0000 -------
*** Bug 94674 has been marked as a duplicate of this bug. ***

First Last Prev Next    No search results available      Search page      Enter new bug