Lines Matching refs:keyidx
765 static int hostapd_config_read_wep(struct hostapd_wep_keys *wep, int keyidx, in hostapd_config_read_wep() argument
770 if (keyidx < 0 || keyidx > 3) in hostapd_config_read_wep()
776 bin_clear_free(wep->key[keyidx], wep->len[keyidx]); in hostapd_config_read_wep()
777 wep->key[keyidx] = NULL; in hostapd_config_read_wep()
778 wep->len[keyidx] = 0; in hostapd_config_read_wep()
788 if (wep->key[keyidx] != NULL) in hostapd_config_read_wep()
795 wep->key[keyidx] = os_memdup(val + 1, len); in hostapd_config_read_wep()
796 if (wep->key[keyidx] == NULL) in hostapd_config_read_wep()
798 wep->len[keyidx] = len; in hostapd_config_read_wep()
803 wep->key[keyidx] = os_malloc(len); in hostapd_config_read_wep()
804 if (wep->key[keyidx] == NULL) in hostapd_config_read_wep()
806 wep->len[keyidx] = len; in hostapd_config_read_wep()
807 if (hexstr2bin(val, wep->key[keyidx], len) < 0) in hostapd_config_read_wep()