Lines Matching refs:reply_len
3988 int reply_len, res; in hostapd_ctrl_iface_receive_process() local
3991 reply_len = 3; in hostapd_ctrl_iface_receive_process()
3995 reply_len = 5; in hostapd_ctrl_iface_receive_process()
3998 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4004 reply_len = hostapd_ctrl_iface_status(hapd, reply, in hostapd_ctrl_iface_receive_process()
4007 reply_len = hostapd_drv_status(hapd, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4009 reply_len = ieee802_11_get_mib(hapd, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4010 if (reply_len >= 0) { in hostapd_ctrl_iface_receive_process()
4011 res = wpa_get_mib(hapd->wpa_auth, reply + reply_len, in hostapd_ctrl_iface_receive_process()
4012 reply_size - reply_len); in hostapd_ctrl_iface_receive_process()
4014 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4016 reply_len += res; in hostapd_ctrl_iface_receive_process()
4018 if (reply_len >= 0) { in hostapd_ctrl_iface_receive_process()
4019 res = ieee802_1x_get_mib(hapd, reply + reply_len, in hostapd_ctrl_iface_receive_process()
4020 reply_size - reply_len); in hostapd_ctrl_iface_receive_process()
4022 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4024 reply_len += res; in hostapd_ctrl_iface_receive_process()
4027 if (reply_len >= 0) { in hostapd_ctrl_iface_receive_process()
4029 reply + reply_len, in hostapd_ctrl_iface_receive_process()
4030 reply_size - reply_len); in hostapd_ctrl_iface_receive_process()
4032 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4034 reply_len += res; in hostapd_ctrl_iface_receive_process()
4038 reply_len = hostapd_ctrl_iface_mib(hapd, reply, reply_size, in hostapd_ctrl_iface_receive_process()
4041 reply_len = hostapd_ctrl_iface_sta_first(hapd, reply, in hostapd_ctrl_iface_receive_process()
4044 reply_len = hostapd_ctrl_iface_sta(hapd, buf + 4, reply, in hostapd_ctrl_iface_receive_process()
4047 reply_len = hostapd_ctrl_iface_sta_next(hapd, buf + 9, reply, in hostapd_ctrl_iface_receive_process()
4051 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4054 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4057 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4061 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4064 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4067 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4070 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4073 reply_len = hostapd_ctrl_iface_signature(hapd, buf + 10, in hostapd_ctrl_iface_receive_process()
4078 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4081 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4085 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4090 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4092 reply_len = hostapd_ctrl_iface_wps_check_pin( in hostapd_ctrl_iface_receive_process()
4096 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4099 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4101 reply_len = hostapd_ctrl_iface_wps_ap_pin(hapd, buf + 11, in hostapd_ctrl_iface_receive_process()
4105 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4107 reply_len = hostapd_ctrl_iface_wps_get_status(hapd, reply, in hostapd_ctrl_iface_receive_process()
4112 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4114 reply_len = hostapd_ctrl_iface_wps_nfc_config_token( in hostapd_ctrl_iface_receive_process()
4117 reply_len = hostapd_ctrl_iface_wps_nfc_token( in hostapd_ctrl_iface_receive_process()
4120 reply_len = hostapd_ctrl_iface_nfc_get_handover_sel( in hostapd_ctrl_iface_receive_process()
4124 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4130 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4133 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4138 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4141 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4146 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4149 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4152 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4155 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4158 reply_len = hostapd_ctrl_iface_get_config(hapd, reply, in hostapd_ctrl_iface_receive_process()
4162 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4164 reply_len = hostapd_ctrl_iface_get(hapd, buf + 4, reply, in hostapd_ctrl_iface_receive_process()
4168 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4171 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4174 reply_len = hostapd_ctrl_iface_get_rxkhs(hapd, reply, in hostapd_ctrl_iface_receive_process()
4178 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4182 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4185 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4188 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4191 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4194 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4198 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4201 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4205 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4208 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4211 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4214 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4217 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4220 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4223 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4226 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4228 reply_len = testing_get_fail_pattern(true, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4231 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4233 reply_len = testing_get_fail_pattern(false, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4236 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4239 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4242 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4245 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4248 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4251 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4254 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4256 reply_len = hostapd_ctrl_get_pmk(hapd, buf + 8, reply, in hostapd_ctrl_iface_receive_process()
4260 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4264 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4268 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4272 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4274 reply_len = hostapd_ctrl_iface_vendor(hapd, buf + 7, reply, in hostapd_ctrl_iface_receive_process()
4283 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4286 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4288 reply_len = hostapd_ctrl_iface_log_level( in hostapd_ctrl_iface_receive_process()
4292 reply_len = hostapd_ctrl_iface_track_sta_list( in hostapd_ctrl_iface_receive_process()
4296 reply_len = hostapd_ctrl_iface_pmksa_list(hapd, reply, in hostapd_ctrl_iface_receive_process()
4302 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4305 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4307 reply_len = hostapd_ctrl_iface_show_neighbor(hapd, reply, in hostapd_ctrl_iface_receive_process()
4311 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4314 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4317 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4319 reply_len = hostapd_ctrl_iface_req_beacon(hapd, buf + 11, in hostapd_ctrl_iface_receive_process()
4322 reply_len = hostapd_ctrl_iface_req_link_measurement( in hostapd_ctrl_iface_receive_process()
4325 reply_len = hostapd_ctrl_driver_flags(hapd->iface, reply, in hostapd_ctrl_iface_receive_process()
4328 reply_len = hostapd_ctrl_driver_flags2(hapd->iface, reply, in hostapd_ctrl_iface_receive_process()
4338 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4345 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4347 reply_len = hostapd_ctrl_iface_acl_show_mac( in hostapd_ctrl_iface_receive_process()
4356 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4358 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4367 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4373 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4375 reply_len = hostapd_ctrl_iface_acl_show_mac( in hostapd_ctrl_iface_receive_process()
4383 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4385 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4391 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4393 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4394 if (os_snprintf_error(reply_size, reply_len)) in hostapd_ctrl_iface_receive_process()
4395 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4400 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4402 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4403 if (os_snprintf_error(reply_size, reply_len)) in hostapd_ctrl_iface_receive_process()
4404 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4409 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4411 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4412 if (os_snprintf_error(reply_size, reply_len)) in hostapd_ctrl_iface_receive_process()
4413 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4418 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4420 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4421 if (os_snprintf_error(reply_size, reply_len)) in hostapd_ctrl_iface_receive_process()
4422 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4427 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4429 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4430 if (os_snprintf_error(reply_size, reply_len)) in hostapd_ctrl_iface_receive_process()
4431 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4436 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4443 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4445 reply_len = os_snprintf(reply, reply_size, "%s", uri); in hostapd_ctrl_iface_receive_process()
4446 if (os_snprintf_error(reply_size, reply_len)) in hostapd_ctrl_iface_receive_process()
4447 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4450 reply_len = dpp_bootstrap_info(hapd->iface->interfaces->dpp, in hostapd_ctrl_iface_receive_process()
4457 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4460 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4463 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4471 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4473 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4474 if (os_snprintf_error(reply_size, reply_len)) in hostapd_ctrl_iface_receive_process()
4475 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4480 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4484 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4487 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4489 reply_len = dpp_configurator_get_key_id( in hostapd_ctrl_iface_receive_process()
4496 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4498 reply_len = os_snprintf(reply, reply_size, "%d", res); in hostapd_ctrl_iface_receive_process()
4499 if (os_snprintf_error(reply_size, reply_len)) in hostapd_ctrl_iface_receive_process()
4500 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4504 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4508 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4511 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4516 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4521 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4528 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4531 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4536 reply_len = hostapd_ctrl_nan_publish(hapd, buf + 12, reply, in hostapd_ctrl_iface_receive_process()
4540 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4543 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4545 reply_len = hostapd_ctrl_nan_subscribe(hapd, buf + 14, reply, in hostapd_ctrl_iface_receive_process()
4549 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4552 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4557 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4560 reply_len = hostapd_ctrl_iface_get_capability( in hostapd_ctrl_iface_receive_process()
4564 reply_len = ptksa_cache_list(hapd->ptksa, reply, reply_size); in hostapd_ctrl_iface_receive_process()
4568 reply_len = hostapd_ctrl_iface_driver_cmd(hapd, buf + 7, reply, in hostapd_ctrl_iface_receive_process()
4574 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4577 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4582 reply_len = -1; in hostapd_ctrl_iface_receive_process()
4587 reply_len = 16; in hostapd_ctrl_iface_receive_process()
4590 if (reply_len < 0) { in hostapd_ctrl_iface_receive_process()
4592 reply_len = 5; in hostapd_ctrl_iface_receive_process()
4595 return reply_len; in hostapd_ctrl_iface_receive_process()
4609 int reply_len; in hostapd_ctrl_iface_receive() local
4640 reply_len = 7 + 2 * CTRL_IFACE_COOKIE_LEN; in hostapd_ctrl_iface_receive()
4669 reply_len = hostapd_ctrl_iface_receive_process(hapd, pos, in hostapd_ctrl_iface_receive()
4676 if (sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, in hostapd_ctrl_iface_receive()
5355 int reply_len; in hostapd_global_ctrl_iface_receive() local
5382 reply_len = 3; in hostapd_global_ctrl_iface_receive()
5390 reply_len = 7 + 2 * CTRL_IFACE_COOKIE_LEN; in hostapd_global_ctrl_iface_receive()
5420 reply_len = hostapd_global_ctrl_iface_ifname( in hostapd_global_ctrl_iface_receive()
5429 reply_len = 5; in hostapd_global_ctrl_iface_receive()
5432 reply_len = -1; in hostapd_global_ctrl_iface_receive()
5437 reply_len = -1; in hostapd_global_ctrl_iface_receive()
5440 reply_len = -1; in hostapd_global_ctrl_iface_receive()
5444 reply_len = -1; in hostapd_global_ctrl_iface_receive()
5448 reply_len = -1; in hostapd_global_ctrl_iface_receive()
5452 reply_len = -1; in hostapd_global_ctrl_iface_receive()
5456 reply_len = -1; in hostapd_global_ctrl_iface_receive()
5461 reply_len = os_snprintf(reply, reply_size, "OK\n"); in hostapd_global_ctrl_iface_receive()
5463 reply_len = -1; in hostapd_global_ctrl_iface_receive()
5466 reply_len = os_snprintf(reply, reply_size, "OK\n"); in hostapd_global_ctrl_iface_receive()
5468 reply_len = -1; in hostapd_global_ctrl_iface_receive()
5470 reply_len = fst_ctrl_iface_receive(buf + 12, reply, reply_size); in hostapd_global_ctrl_iface_receive()
5475 reply_len = os_snprintf(reply, reply_size, "OK\n"); in hostapd_global_ctrl_iface_receive()
5477 reply_len = -1; in hostapd_global_ctrl_iface_receive()
5479 reply_len = hostapd_global_ctrl_iface_interfaces( in hostapd_global_ctrl_iface_receive()
5486 reply_len = -1; in hostapd_global_ctrl_iface_receive()
5490 if (reply_len < 0) { in hostapd_global_ctrl_iface_receive()
5492 reply_len = 5; in hostapd_global_ctrl_iface_receive()
5495 if (sendto(sock, reply, reply_len, 0, (struct sockaddr *) &from, in hostapd_global_ctrl_iface_receive()