Lines Matching refs:wep
375 struct hostapd_wep_keys *wep = &bss->ssid.wep;
379 wep->idx = idx;
381 os_free(wep->key[idx]);
382 wep->key[idx] = os_malloc(cred->key_len / 2);
383 if (wep->key[idx] == NULL ||
385 wep->key[idx],
388 wep->len[idx] = cred->key_len / 2;
390 os_free(wep->key[idx]);
391 wep->key[idx] = os_malloc(cred->key_len);
392 if (wep->key[idx] == NULL)
394 os_memcpy(wep->key[idx], cred->key,
396 wep->len[idx] = cred->key_len;
398 wep->keys_set = 1;
587 /* WEP key as a hex string */
591 /* Raw WEP key; convert to hex */
1119 } else if (conf->ssid.wep.keys_set && conf->ssid.wep.key[0]) {
1120 wps->network_key = os_malloc(conf->ssid.wep.len[0]);
1125 os_memcpy(wps->network_key, conf->ssid.wep.key[0],
1126 conf->ssid.wep.len[0]);
1127 wps->network_key_len = conf->ssid.wep.len[0];
1655 else if (os_strncmp(encr, "WEP", 3) == 0)