Lines Matching refs:wep
875 static int hostapd_config_read_wep(struct hostapd_wep_keys *wep, int keyidx, in hostapd_config_read_wep() argument
886 bin_clear_free(wep->key[keyidx], wep->len[keyidx]); in hostapd_config_read_wep()
887 wep->key[keyidx] = NULL; in hostapd_config_read_wep()
888 wep->len[keyidx] = 0; in hostapd_config_read_wep()
890 if (wep->key[i]) in hostapd_config_read_wep()
894 wep->keys_set = 0; in hostapd_config_read_wep()
898 if (wep->key[keyidx] != NULL) in hostapd_config_read_wep()
905 wep->key[keyidx] = os_memdup(val + 1, len); in hostapd_config_read_wep()
906 if (wep->key[keyidx] == NULL) in hostapd_config_read_wep()
908 wep->len[keyidx] = len; in hostapd_config_read_wep()
913 wep->key[keyidx] = os_malloc(len); in hostapd_config_read_wep()
914 if (wep->key[keyidx] == NULL) in hostapd_config_read_wep()
916 wep->len[keyidx] = len; in hostapd_config_read_wep()
917 if (hexstr2bin(val, wep->key[keyidx], len) < 0) in hostapd_config_read_wep()
921 wep->keys_set++; in hostapd_config_read_wep()
3275 bss->ssid.wep.idx = atoi(pos); in hostapd_config_fill()
3276 if (bss->ssid.wep.idx > 3) { in hostapd_config_fill()
3279 bss->ssid.wep.idx); in hostapd_config_fill()
3286 if (hostapd_config_read_wep(&bss->ssid.wep, in hostapd_config_fill()