Using WEP 128-bit Passphrase, Ad-hoc connection cannot be established

Bug #1032433 reported by Kent Lin
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OEM Priority Project
Won't Fix
Medium
Ara Pulido
network-manager (Ubuntu)
Confirmed
Low
Mathieu Trudel-Lapierre

Bug Description

When setting up an ad-hoc wifi connection, if choose "WEP 128-bit Passphrase", the connection cannot be established.
If choose "None" or "WEP 40/128-bit Key", it can be established successfully.

Steps to reproduce:
1. Choose "Create new Wireless Network" in network applet
2. Choose "WEP 128-bit Passphrase" and create an ad-hoc connection
3. Use another computer to connect the same ad-hoc ESSID
4. The connection cannot be established

Changed in oem-priority:
status: New → Confirmed
assignee: nobody → James M. Leddy (jm-leddy)
tags: added: rls-q-incoming
Revision history for this message
James M. Leddy (jm-leddy) wrote :

Does anyone even use WEP passpharase mode? Can we just remove this?

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

No, WEP passphrase does get used... it's much easier to use a passphrase than the hex keys, at least ;)

This bug needs additional information in order to be debuggable. Could you please run 'apport-collect 1032433' and make sure at least WifiSyslog.txt is attached automatically. If not, please include at least an excerpt of /var/log/syslog for an attempted connection.

Thanks in advance!

Changed in network-manager (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
James M. Leddy (jm-leddy) wrote :

Hi Mathieu,

I just tried to reproduce the issue, but was unable to. I'll get more information from Kent.

Changed in oem-priority:
status: Confirmed → Incomplete
Revision history for this message
Nara Huang (narahuang) wrote :

Hi,
I can still reproduce this on 12.04.1
First I setup an Ad-hoc connection with WEP 128-bit Passphrase on Computer1,
and using another computer (ComputerU) as client to connect, but the connection cannot be established, attached file is syslog on ComputerU (client).

Revision history for this message
Nara Huang (narahuang) wrote :

And then I create new ad-hoc connection "test2" on computer1 using "WEP 40/128-bit Key(Hex or ASCII)", this time I can use ComputerU (client) to establish an ad-hoc connection successfully.
Attached file is the syslog of this connection.

Revision history for this message
Kent Lin (kent-jclin) wrote :

@James,

I have asked Nara help to provide more information in comment#4 and comment#5

Revision history for this message
James M. Leddy (jm-leddy) wrote :

Looks like in both cases wpa-supplicant got past the authentication stage. Oddly, even though it should not work in the second trial, it still gets past authentication.

The problem with the first trial is that it couldn't get a dhcp lease, which makes me think it's a problem on the other machine. Would you please attach a syslog from that machine as well?

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

@James: please readd rls-q-incoming if you get more directions on the user's machine, and we'll deal with it. Thanks :)

Revision history for this message
Gabriele Vivinetto (gabriele.vivinetto) wrote :

Affects me too.

tags: removed: rls-q-incoming
Changed in oem-priority:
status: Incomplete → Confirmed
Changed in oem-priority:
status: Confirmed → Invalid
status: Invalid → Incomplete
Changed in oem-priority:
importance: Undecided → Medium
Revision history for this message
Scott Sweeny (ssweeny) wrote :

I was able to reproduce this using my dev laptop and a netbook, both running Precise.

I created the adhoc network on my laptop, then tried and failed to connect using the NetworkManager applet on the netbook.

I then dropped to the command line on the netbook and manually connected using wpa_supplicant. This succeeded.

Next I cranked up the logging on both NetworkManager and wpa_supplicant to prove that NM was feeding in the right keys and so forth. The keys were right, and I noticed in the output that NM thought that connection was successful and launched the DHCP client. However, those DHCP packets never reached my dev laptop (confirmed via syslog).

Now here's the weird part: I attached strace to the NM process and tried to connect via the applet, and it succeeded. Now all subsequent attempts to connect are succeeding. Even creating a new network with a different password, I can no longer reproduce this bug.

Changed in oem-priority:
status: Incomplete → In Progress
Changed in network-manager (Ubuntu):
status: Incomplete → In Progress
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Are both machines running Ubuntu, and are they using the same version?

Can you provide the debug logs for wpasupplicant? This would likely shed more light on the problem.

Furthermore, I'd be very interested on output such as what the Android "Wifi Analyzer" app is saying about the created network, if that output is feasible to obtain. It's usually pretty good at saying exactly how the scanned/detected network is configured, and if it was correctly created as WEP-128 with a passphrase rather than using the passphrase as a hex key or something.

Revision history for this message
James M. Leddy (jm-leddy) wrote :

Because this does not block certification of systems, we are closing the bug in OEM prio for now.

Changed in oem-priority:
status: In Progress → Won't Fix
Changed in network-manager (Ubuntu):
importance: Medium → Low
Revision history for this message
Ara Pulido (ara) wrote :

Reopening the OEM priority bug, as there are some OEMs still requesting this

Changed in oem-priority:
status: Won't Fix → New
assignee: James M. Leddy (jm-leddy) → Ara Pulido (apulido)
Revision history for this message
Franz Hsieh (franz-hsieh) wrote :

Test environment:
HP laptop runs ubuntu-12.04.2 as client side
ASUS laptop runs ubuntu-12.04.2 as server side.
Set password 12345 in the server side and then use client to connect the server.

If the security type is set to WEP40/128 bit Key, the result is success ( see adhoc/success/syslog.client.log & adhoc/success/syslog.server.log)
If the type is set to WEP-128 passphrase, the result is failed (see adhoc/fail/syslog.client.log & adhoc/fail/syslog.server.log)

The logs are attached in the tarball.

Changed in network-manager (Ubuntu):
status: In Progress → Confirmed
importance: Low → Undecided
Revision history for this message
James M. Leddy (jm-leddy) wrote :

Franz,

12345 from the "server side" looks like a 40 bit key (8 bits per character, multiplied by 5 characters). This would explain why it's working when you use that option. In order to be completely sure that it's not a 40 bit key, would you please re-create your server environment with a WEP-128 passphrase of something like '123456'? Thank you.

More information here: https://mail.gnome.org/archives/networkmanager-list/2007-December/msg00226.html

Changed in network-manager (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Franz Hsieh (franz-hsieh) wrote :

@James,

Update log files.
I use '1234567890abc' as wep key, here are the fail logs of client/server both sides.
Note, I aslo tested the key in hex format ( 31323334353637383930616263 ), it failed too. The logs are attached.

Ara Pulido (ara)
Changed in network-manager (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Ara Pulido (ara) wrote :

Can we get someone to have a look to this bug, please?

Changed in network-manager (Ubuntu):
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
Changed in network-manager (Ubuntu):
assignee: Canonical Desktop Team (canonical-desktop-team) → Mathieu Trudel-Lapierre (mathieu-tl)
Revision history for this message
Franz Hsieh (franz-hsieh) wrote :

Attach logs.

Config WiFi adhoc network and set WEP key to 1234567890abc.
The connection can't be established.

Logs are attached (server/client side dmesg output and syslog)

Changed in network-manager (Ubuntu):
status: Confirmed → Incomplete
importance: Undecided → Low
Ara Pulido (ara)
Changed in oem-priority:
status: New → Incomplete
Revision history for this message
Franz Hsieh (franz-hsieh) wrote :

Attach syslog for client and server side.
The wpa_supplication debug output (-ddd option) is enabled.

Revision history for this message
Franz Hsieh (franz-hsieh) wrote :

The same issue can be reproduced on Trusty (14.04)

The attachment is the syslog on same platform but is installed with trusty.

Revision history for this message
Franz Hsieh (franz-hsieh) wrote :

syslog of comment #21

Ara Pulido (ara)
Changed in network-manager (Ubuntu):
status: Incomplete → Confirmed
Changed in oem-priority:
status: Incomplete → Confirmed
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

NM doesn't really ask for the type of key when you get to connecting to the previously-created network. It's however possible to create the connection, and then edit it from the connection editor to set "WEP passphrase" and enter in the passphrase, which will allow the connection to work.

Not sure we'll be able to land a fix for this just now, given how late in the cycle it is. I can however start figuring out how to add the feature properly and submit it for review from the upstream developers.

Ara Pulido (ara)
Changed in oem-priority:
status: Confirmed → Won't Fix
no longer affects: oem-priority/precise
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.