Lines Matching refs:keyidx
875 static int hostapd_config_read_wep(struct hostapd_wep_keys *wep, int keyidx, in hostapd_config_read_wep() argument
880 if (keyidx < 0 || keyidx > 3) in hostapd_config_read_wep()
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()
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()