Lines Matching refs:resp
2008 struct ieee80211_mgmt *resp;
2097 resp = NULL;
2098 resp = wpabuf_put(buf, resp->u.probe_resp.variable - (u8 *) resp);
2100 resp->frame_control = host_to_le16((WLAN_FC_TYPE_MGMT << 2) |
2102 os_memcpy(resp->da, addr, ETH_ALEN);
2103 os_memcpy(resp->sa, p2p->cfg->dev_addr, ETH_ALEN);
2104 os_memcpy(resp->bssid, p2p->cfg->dev_addr, ETH_ALEN);
2105 resp->u.probe_resp.beacon_int = host_to_le16(100);
2107 resp->u.probe_resp.capab_info =
3734 struct wpabuf *resp;
3737 resp = wpabuf_alloc(100 + noa_len);
3738 if (resp == NULL)
3741 p2p_buf_add_action_hdr(resp, P2P_PRESENCE_RESP, dialog_token);
3742 len = p2p_buf_add_ie_hdr(resp);
3743 p2p_buf_add_status(resp, status);
3745 wpabuf_put_u8(resp, P2P_ATTR_NOTICE_OF_ABSENCE);
3746 wpabuf_put_le16(resp, noa_len);
3747 wpabuf_put_data(resp, noa, noa_len);
3749 p2p_buf_add_noa(resp, 0, 0, 0, NULL, NULL);
3750 p2p_buf_update_ie_hdr(resp, len);
3752 return resp;
3762 struct wpabuf *resp;
3805 resp = p2p_build_presence_resp(status, noa_len > 0 ? noa : NULL,
3810 if (resp == NULL)
3815 wpabuf_head(resp), wpabuf_len(resp), 200) < 0) {
3818 wpabuf_free(resp);