Lines Matching refs:key
118 /* set WEP key */
122 wl_wsec_key_t key;
125 unsigned char *data = key.data;
128 memset(&key, 0, sizeof(key));
129 key.index = i - 1;
136 key.len = strlen(keystr);
137 strcpy((char *)key.data, keystr);
141 key.len = strlen(keystr) / 2;
149 key.len = 0;
153 /* Set current WEP key */
154 if (key.len && i == atoi(nvram_safe_get(strcat_r(prefix, "key", wl_key))))
155 key.flags = WL_PRIMARY_KEY;
157 WL_BSSIOVAR_SET(name, "wsec_key", bsscfg_idx, &key, sizeof(key));
708 char *key;
710 if (((key = nvram_get(strcat_r(prefix, "wpa_psk", tmp))) != NULL) &&
711 (strlen(key) < WSEC_MAX_PSK_LEN)) {
712 psk.key_len = (ushort) strlen(key);
714 strcpy((char *)psk.key, key);