Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ifconfig can't set WEP key.



Hi,

After updated to 20080508, ifconfig can't set WEP key.

# ifconfig ath0 inet 192.168.0.1 nwkey xxxxxxxxxxxxx
ifconfig: setifnwkey: nwkey too long.

I think it to be corrected with attached patch.

Regards,
-- 
NONAKA Kimihiro
--- src/sbin/ifconfig/env.c.orig        Fri May 09 10:27:18 2008
+++ src/sbin/ifconfig/env.c     Fri May 09 10:28:46 2008
@@ -142,7 +142,7 @@
        prop_data_t data;
        size_t datalen;
 
-       data = (prop_data_t)prop_dictionary_get(env, "bssid");
+       data = (prop_data_t)prop_dictionary_get(env, key);
        if (data == NULL) {
                errno = ENOENT;
                return -1;


Home | Main Index | Thread Index | Old Index