Lines Matching refs:resp
2248 struct ieee80211_mgmt *resp;
2395 resp = wpabuf_put(buf, offsetof(struct ieee80211_mgmt,
2398 resp->frame_control = host_to_le16((WLAN_FC_TYPE_MGMT << 2) |
2400 os_memcpy(resp->da, addr, ETH_ALEN);
2401 os_memcpy(resp->sa, p2p->cfg->dev_addr, ETH_ALEN);
2402 os_memcpy(resp->bssid, p2p->cfg->dev_addr, ETH_ALEN);
2403 resp->u.probe_resp.beacon_int = host_to_le16(100);
2405 resp->u.probe_resp.capab_info =
4349 struct wpabuf *resp;
4352 resp = wpabuf_alloc(100 + noa_len);
4353 if (resp == NULL)
4356 p2p_buf_add_action_hdr(resp, P2P_PRESENCE_RESP, dialog_token);
4357 len = p2p_buf_add_ie_hdr(resp);
4358 p2p_buf_add_status(resp, status);
4360 wpabuf_put_u8(resp, P2P_ATTR_NOTICE_OF_ABSENCE);
4361 wpabuf_put_le16(resp, noa_len);
4362 wpabuf_put_data(resp, noa, noa_len);
4364 p2p_buf_add_noa(resp, 0, 0, 0, NULL, NULL);
4365 p2p_buf_update_ie_hdr(resp, len);
4367 return resp;
4377 struct wpabuf *resp;
4420 resp = p2p_build_presence_resp(status, noa_len > 0 ? noa : NULL,
4425 if (resp == NULL)
4430 wpabuf_head(resp), wpabuf_len(resp), 200) < 0) {
4433 wpabuf_free(resp);