7 * make factotum add wep keys to an 802.11 device
10 auth_wep(char *dev, char *fmt, ...)
21 werrstr("no device specified");
25 fd = open("/mnt/factotum/rpc", ORDWR);
29 rpc = auth_allocrpc(fd);
31 quotefmtinstall(); /* just in case */
33 params = vsmprint(fmt, arg);
36 p = smprint("proto=wep %s", params);
38 if(auth_rpc(rpc, "start", p, strlen(p)) == ARok
39 && auth_rpc(rpc, "write", dev, strlen(dev)) == ARok)