Your message dated Mon, 25 Sep 2006 14:52:07 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#389457: fixed in linux-wlan-ng 0.2.5-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: linux-wlan-ng
Version: 0.2.5-1
Severity: normal
Tags: patch


The linux-wlan-ng package (and the prism2 kernel modules) is very 
picky about how you enter the WEP key. It is of course documented 
somewhere that the format should be xx:xx:xx:xx:xx, but this is not 
obvious when using the Gnome Networking user interface.

For other types of wireless cards, the wireless-tools library does a 
reformatting of the entered key in order to be more robust about how the 
user enters the key. linux-wlan-ng can easily do something similar to 
be as user friendly.

The attached patch removes any delimiters that the users have entered 
and formats the key in pair of hex digits. The conversion supports any 
key length and is free of bashisms.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages linux-wlan-ng depends on:
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries
ii  udev                         0.093-1     /dev/ and hotplug management daemo
ii  wireless-tools               28-1        Tools for manipulating Linux Wirel

Versions of packages linux-wlan-ng recommends:
pn  linux-wlan-ng-doc             <none>     (no description available)

-- no debconf information
--- linux-wlan-ng-pre-up.orig   2006-09-12 00:14:15.000000000 +0200
+++ linux-wlan-ng-pre-up        2006-09-15 00:23:24.000000000 +0200
@@ -125,6 +125,26 @@
        fi
 done
 
+# Make the WEP key xx:xx:xx:xx:xx
+format_key() {
+  KEY="$1"
+
+  # Don't touch a string key
+  if [ x$(printf "%.2s" "$KEY") != "xs:" ]; then
+
+    # Strip any delimiters (all non-digits)
+    KEY=$(echo $KEY | tr -d -c '[:xdigit:]')
+
+    # Inserts colon between pairs of hex digits
+    while [ ${#KEY} -gt 2 ]; do
+        NEWKEY=$(printf "%s%.2s:" "$NEWKEY" "$KEY")
+        KEY=${KEY#??}
+    done
+    KEY=${NEWKEY}${KEY}
+  fi
+  echo $KEY
+}
+
 if [ "$IF_WIRELESS_ENC" = "on" ]; then
        # Set up WEP.
        result=`$WLANCTL $IFACE dot11req_mibget 
mibattribute=dot11PrivacyOptionImplemented`
@@ -173,16 +193,16 @@
                done
        else
                $WLANCTL $IFACE dot11req_mibset \
-                       mibattribute=dot11WEPDefaultKey0=$IF_WLAN_NG_KEY0 \
+                       mibattribute=dot11WEPDefaultKey0=`format_key 
$IF_WLAN_NG_KEY0` \
                     >/dev/null
                $WLANCTL $IFACE dot11req_mibset \
-                       mibattribute=dot11WEPDefaultKey1=$IF_WLAN_NG_KEY1 \
+                       mibattribute=dot11WEPDefaultKey1=`format_key 
$IF_WLAN_NG_KEY1` \
                     >/dev/null
                $WLANCTL $IFACE dot11req_mibset \
-                       mibattribute=dot11WEPDefaultKey2=$IF_WLAN_NG_KEY2 \
+                       mibattribute=dot11WEPDefaultKey2=`format_key 
$IF_WLAN_NG_KEY2` \
                     >/dev/null
                $WLANCTL $IFACE dot11req_mibset \
-                       mibattribute=dot11WEPDefaultKey3=$IF_WLAN_NG_KEY3 \
+                       mibattribute=dot11WEPDefaultKey3=`format_key 
$IF_WLAN_NG_KEY3` \
                     >/dev/null
        fi
 fi

--- End Message ---
--- Begin Message ---
Source: linux-wlan-ng
Source-Version: 0.2.5-2

We believe that the bug you reported is fixed in the latest version of
linux-wlan-ng, which is due to be installed in the Debian FTP archive:

linux-wlan-ng-doc_0.2.5-2_all.deb
  to pool/main/l/linux-wlan-ng/linux-wlan-ng-doc_0.2.5-2_all.deb
linux-wlan-ng-firmware_0.2.5-2_all.deb
  to pool/contrib/l/linux-wlan-ng/linux-wlan-ng-firmware_0.2.5-2_all.deb
linux-wlan-ng-source_0.2.5-2_all.deb
  to pool/main/l/linux-wlan-ng/linux-wlan-ng-source_0.2.5-2_all.deb
linux-wlan-ng_0.2.5-2.diff.gz
  to pool/main/l/linux-wlan-ng/linux-wlan-ng_0.2.5-2.diff.gz
linux-wlan-ng_0.2.5-2.dsc
  to pool/main/l/linux-wlan-ng/linux-wlan-ng_0.2.5-2.dsc
linux-wlan-ng_0.2.5-2_amd64.deb
  to pool/main/l/linux-wlan-ng/linux-wlan-ng_0.2.5-2_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Enrico Tassi <[EMAIL PROTECTED]> (supplier of updated linux-wlan-ng package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 25 Sep 2006 23:13:31 +0200
Source: linux-wlan-ng
Binary: linux-wlan-ng-firmware linux-wlan-ng-doc linux-wlan-ng-source 
linux-wlan-ng
Architecture: source all amd64
Version: 0.2.5-2
Distribution: unstable
Urgency: low
Maintainer: Victor Seva <[EMAIL PROTECTED]>
Changed-By: Enrico Tassi <[EMAIL PROTECTED]>
Description: 
 linux-wlan-ng - utilities for wireless prism2 cards
 linux-wlan-ng-doc - documentation for wlan-ng
 linux-wlan-ng-firmware - firmware files used by the linux-wlan-ng driver
 linux-wlan-ng-source - linux-wlan-ng driver
Closes: 389457
Changes: 
 linux-wlan-ng (0.2.5-2) unstable; urgency=low
 .
   * Added patch for hex key reformatting. Kudos to Tormod Volden.
     (Closes: #389457)
Files: 
 0c00da77c48a0e9768aa9c7f9f211c64 733 admin extra linux-wlan-ng_0.2.5-2.dsc
 187888df49372625aba930c5ddccc2b3 41570 admin extra 
linux-wlan-ng_0.2.5-2.diff.gz
 5f8ad2ab35f9bff34e682da866044121 380658 admin extra 
linux-wlan-ng-source_0.2.5-2_all.deb
 b69eb107e1846cc04f64903d37d2a5d9 85242 admin extra 
linux-wlan-ng-doc_0.2.5-2_all.deb
 112c37e6aaba765ac3cf84225b851303 47334 contrib/admin extra 
linux-wlan-ng-firmware_0.2.5-2_all.deb
 b8370751648b6a67668f49a51f672f03 124444 admin extra 
linux-wlan-ng_0.2.5-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD4DBQFFGEkz7kkcPgEj8vIRAnosAKCuLsQt7lZeCFMAODttx+BEs3YMYACXYjEZ
So10Rbw1Ad/LIXu5dR6O6A==
=C/UX
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to