Lines Matching refs:resp
2258 struct ieee80211_mgmt *resp;
2380 p2p_dbg(p2p, "Probe Resp generated elsewhere - do not generate additional response");
2405 resp = wpabuf_put(buf, offsetof(struct ieee80211_mgmt,
2408 resp->frame_control = host_to_le16((WLAN_FC_TYPE_MGMT << 2) |
2410 os_memcpy(resp->da, addr, ETH_ALEN);
2411 os_memcpy(resp->sa, p2p->cfg->dev_addr, ETH_ALEN);
2412 os_memcpy(resp->bssid, p2p->cfg->dev_addr, ETH_ALEN);
2413 resp->u.probe_resp.beacon_int = host_to_le16(100);
2415 resp->u.probe_resp.capab_info =
4355 struct wpabuf *resp;
4358 resp = wpabuf_alloc(100 + noa_len);
4359 if (resp == NULL)
4362 p2p_buf_add_action_hdr(resp, P2P_PRESENCE_RESP, dialog_token);
4363 len = p2p_buf_add_ie_hdr(resp);
4364 p2p_buf_add_status(resp, status);
4366 wpabuf_put_u8(resp, P2P_ATTR_NOTICE_OF_ABSENCE);
4367 wpabuf_put_le16(resp, noa_len);
4368 wpabuf_put_data(resp, noa, noa_len);
4370 p2p_buf_add_noa(resp, 0, 0, 0, NULL, NULL);
4371 p2p_buf_update_ie_hdr(resp, len);
4373 return resp;
4383 struct wpabuf *resp;
4426 resp = p2p_build_presence_resp(status, noa_len > 0 ? noa : NULL,
4431 if (resp == NULL)
4436 wpabuf_head(resp), wpabuf_len(resp), 200) < 0) {
4439 wpabuf_free(resp);