Lines Matching refs:resp
2092 struct ieee80211_mgmt *resp;
2182 resp = NULL;
2183 resp = wpabuf_put(buf, resp->u.probe_resp.variable - (u8 *) resp);
2185 resp->frame_control = host_to_le16((WLAN_FC_TYPE_MGMT << 2) |
2187 os_memcpy(resp->da, addr, ETH_ALEN);
2188 os_memcpy(resp->sa, p2p->cfg->dev_addr, ETH_ALEN);
2189 os_memcpy(resp->bssid, p2p->cfg->dev_addr, ETH_ALEN);
2190 resp->u.probe_resp.beacon_int = host_to_le16(100);
2192 resp->u.probe_resp.capab_info =
3872 struct wpabuf *resp;
3875 resp = wpabuf_alloc(100 + noa_len);
3876 if (resp == NULL)
3879 p2p_buf_add_action_hdr(resp, P2P_PRESENCE_RESP, dialog_token);
3880 len = p2p_buf_add_ie_hdr(resp);
3881 p2p_buf_add_status(resp, status);
3883 wpabuf_put_u8(resp, P2P_ATTR_NOTICE_OF_ABSENCE);
3884 wpabuf_put_le16(resp, noa_len);
3885 wpabuf_put_data(resp, noa, noa_len);
3887 p2p_buf_add_noa(resp, 0, 0, 0, NULL, NULL);
3888 p2p_buf_update_ie_hdr(resp, len);
3890 return resp;
3900 struct wpabuf *resp;
3947 resp = p2p_build_presence_resp(status, noa_len > 0 ? noa : NULL,
3952 if (resp == NULL)
3957 wpabuf_head(resp), wpabuf_len(resp), 200) < 0) {
3961 wpabuf_free(resp);