188
188
if (drv->test_socket >= 0 && drv->hostapd_addr_set) {
189
189
char cmd[200], *pos, *end;
192
pos += snprintf(pos, end - pos, "ASSOC " MACSTR " ",
193
ret = snprintf(pos, end - pos, "ASSOC " MACSTR " ",
194
197
pos += wpa_snprintf_hex(pos, end - pos, params->ssid,
197
202
pos += wpa_snprintf_hex(pos, end - pos, params->wpa_ie,
199
205
if (sendto(drv->test_socket, cmd, strlen(cmd), 0,
200
206
(struct sockaddr *) &drv->hostapd_addr,
201
207
sizeof(drv->hostapd_addr)) < 0) {