Lines Matching refs:key
160 wsec_key_t key;
162 unsigned char *data=key.data;
201 // Set WEP key
204 memset(&key, 0, sizeof(wsec_key_t));
206 key.index = i;
215 key.algo = CRYPTO_ALGO_WEP1;
216 key.len=5;
220 key.algo = CRYPTO_ALGO_WEP128;
221 key.len=13;
224 strncpy(key.data, keystr, key.len);
226 //printf("%x %x %x\n", key.data[0], key.data[1], key.len);
227 if (i==profile->wepkeyactive) key.flags=WSEC_PRIMARY_KEY;
228 wl_ioctl(WIF, WLC_SET_KEY, &key, sizeof(key));
410 char key[4][36];
447 UnpackKey(weptype, profiles_g[i].wepkey1, key[0], key[1], key[2], key[3]);
455 UnpackKey(weptype, profiles_g[i].wepkey1, key[0], key[1], key[2], key[3]);
459 key[0][weplen*2] = 0;
460 key[1][weplen*2] = 0;
461 key[2][weplen*2] = 0;
462 key[3][weplen*2] = 0;
464 nvram_set_str("wlp_wepkey1", key[0], i);
465 nvram_set_str("wlp_wepkey2", key[1], i);
466 nvram_set_str("wlp_wepkey3", key[2], i);
467 nvram_set_str("wlp_wepkey4", key[3], i);