From 7b31dcd7b6da4f26db8f09924adc059f5a6ee589 Mon Sep 17 00:00:00 2001 From: James Rayner Date: Tue, 28 Apr 2009 22:15:43 +1000 Subject: Add WEP support to wireless-dbus, remove broken interface type check in wireless --- src-wireless/wireless-dbus | 58 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 46 insertions(+), 12 deletions(-) (limited to 'src-wireless') diff --git a/src-wireless/wireless-dbus b/src-wireless/wireless-dbus index 2a60fc4..0e241a9 100755 --- a/src-wireless/wireless-dbus +++ b/src-wireless/wireless-dbus @@ -26,6 +26,25 @@ def read_config(config): options[var] = value return options + +def wep_hex2dec(key): + if len(key) not in [10, 26]: + print "Bad key" + raise SyntaxError + + x=0 + new_key=[] + while x