Home | History | Annotate | Download | only in hostapd

Lines Matching refs:wep

723 static int hostapd_config_read_wep(struct hostapd_wep_keys *wep, int keyidx,
728 if (keyidx < 0 || keyidx > 3 || wep->key[keyidx] != NULL)
735 wep->key[keyidx] = os_malloc(len);
736 if (wep->key[keyidx] == NULL)
738 os_memcpy(wep->key[keyidx], val + 1, len);
739 wep->len[keyidx] = len;
744 wep->key[keyidx] = os_malloc(len);
745 if (wep->key[keyidx] == NULL)
747 wep->len[keyidx] = len;
748 if (hexstr2bin(val, wep->key[keyidx], len) < 0)
752 wep->keys_set++;
2069 wpa_printf(MSG_ERROR, "Line %d: invalid WEP key len %lu (= %lu bits)",
2080 wpa_printf(MSG_ERROR, "Line %d: invalid WEP key len %d (= %d bits)",
2534 bss->ssid.wep.idx = atoi(pos);
2535 if (bss->ssid.wep.idx > 3) {
2538 bss->ssid.wep.idx);
2545 if (hostapd_config_read_wep(&bss->ssid.wep,
2547 wpa_printf(MSG_ERROR, "Line %d: invalid WEP key '%s'",