/external/wpa_supplicant_8/wpa_supplicant/ |
ap.c | 182 struct hostapd_wep_keys *wep = &bss->ssid.wep; local 187 wep->key[i] = os_malloc(ssid->wep_key_len[i]); 188 if (wep->key[i] == NULL) 190 os_memcpy(wep->key[i], ssid->wep_key[i], 192 wep->len[i] = ssid->wep_key_len[i]; 194 wep->idx = ssid->wep_tx_keyidx; 195 wep->keys_set = 1; 223 bss->ssid.wep.default_len = bss->default_wep_key_len; 230 } else if (bss->ssid.wep.keys_set) [all...] |
/external/wpa_supplicant_8/hostapd/ |
config_file.c | 675 static int hostapd_config_read_wep(struct hostapd_wep_keys *wep, int keyidx, 680 if (keyidx < 0 || keyidx > 3 || wep->key[keyidx] != NULL) 687 wep->key[keyidx] = os_malloc(len); 688 if (wep->key[keyidx] == NULL) 690 os_memcpy(wep->key[keyidx], val + 1, len); 691 wep->len[keyidx] = len; 696 wep->key[keyidx] = os_malloc(len); 697 if (wep->key[keyidx] == NULL) 699 wep->len[keyidx] = len; 700 if (hexstr2bin(val, wep->key[keyidx], len) < 0 1108 int wep, i; local [all...] |
/external/wpa_supplicant_8/src/ap/ |
wps_hostapd.c | 375 struct hostapd_wep_keys *wep = &bss->ssid.wep; local 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) [all...] |
ap_config.h | 64 struct hostapd_wep_keys wep; member in struct:hostapd_ssid
|
/external/wpa_supplicant_8/src/drivers/ |
driver_ndis.c | 949 NDIS_802_11_WEP *wep; local 954 wep = os_zalloc(len); 955 if (wep == NULL) 957 wep->Length = len; 958 wep->KeyIndex = key_idx; 960 wep->KeyIndex |= 1 << 31; 963 wep->KeyIndex |= 1 << 30; 965 wep->KeyLength = key_len; 966 os_memcpy(wep->KeyMaterial, key, key_len); 969 (u8 *) wep, len) [all...] |