Lines Matching refs:wep
749 static int hostapd_config_read_wep(struct hostapd_wep_keys *wep, int keyidx, in hostapd_config_read_wep() argument
754 if (keyidx < 0 || keyidx > 3 || wep->key[keyidx] != NULL) in hostapd_config_read_wep()
761 wep->key[keyidx] = os_malloc(len); in hostapd_config_read_wep()
762 if (wep->key[keyidx] == NULL) in hostapd_config_read_wep()
764 os_memcpy(wep->key[keyidx], val + 1, len); in hostapd_config_read_wep()
765 wep->len[keyidx] = len; in hostapd_config_read_wep()
770 wep->key[keyidx] = os_malloc(len); in hostapd_config_read_wep()
771 if (wep->key[keyidx] == NULL) in hostapd_config_read_wep()
773 wep->len[keyidx] = len; in hostapd_config_read_wep()
774 if (hexstr2bin(val, wep->key[keyidx], len) < 0) in hostapd_config_read_wep()
778 wep->keys_set++; in hostapd_config_read_wep()
2676 bss->ssid.wep.idx = atoi(pos); in hostapd_config_fill()
2677 if (bss->ssid.wep.idx > 3) { in hostapd_config_fill()
2680 bss->ssid.wep.idx); in hostapd_config_fill()
2687 if (hostapd_config_read_wep(&bss->ssid.wep, in hostapd_config_fill()