Lines Matching refs:buffer
32 * Append a generic IE as a pass through TLV to a TLV buffer.
36 * If the IE buffer has been setup by the application, this routine appends
37 * the buffer as a pass through TLV type to the request.
40 mwifiex_cmd_append_generic_ie(struct mwifiex_private *priv, u8 **buffer)
46 if (!buffer)
48 if (!(*buffer))
52 * If there is a generic ie buffer setup, append it to the return
53 * parameter buffer pointer.
58 __func__, priv->gen_ie_buf_len, *buffer);
60 /* Wrap the generic IE buffer with a pass through TLV type */
63 memcpy(*buffer, &ie_header, sizeof(ie_header));
65 /* Increment the return size and the return buffer pointer
67 *buffer += sizeof(ie_header);
70 /* Copy the generic IE buffer to the output buffer, advance
72 memcpy(*buffer, priv->gen_ie_buf, priv->gen_ie_buf_len);
74 /* Increment the return size and the return buffer pointer
76 *buffer += priv->gen_ie_buf_len;
79 /* Reset the generic IE buffer */
83 /* return the length appended to the buffer */
101 mwifiex_cmd_append_tsf_tlv(struct mwifiex_private *priv, u8 **buffer,
108 if (buffer == NULL)
110 if (*buffer == NULL)
118 memcpy(*buffer, &tsf_tlv, sizeof(tsf_tlv.header));
119 *buffer += sizeof(tsf_tlv.header);
123 memcpy(*buffer, &tsf_val, sizeof(tsf_val));
124 *buffer += sizeof(tsf_val);
132 memcpy(*buffer, &tsf_val, sizeof(tsf_val));
133 *buffer += sizeof(tsf_val);
234 * If the IE buffer has been setup by the application, this routine appends
235 * the buffer as a WPS TLV type to the request.
238 mwifiex_cmd_append_wps_ie(struct mwifiex_private *priv, u8 **buffer)
243 if (!buffer || !*buffer)
247 * If there is a wps ie buffer setup, append it to the return
248 * parameter buffer pointer.
253 priv->wps_ie_len, *buffer);
255 /* Wrap the generic IE buffer with a pass through TLV type */
258 memcpy(*buffer, &ie_header, sizeof(ie_header));
259 *buffer += sizeof(ie_header);
262 memcpy(*buffer, priv->wps_ie, priv->wps_ie_len);
263 *buffer += priv->wps_ie_len;
278 * If the IE buffer has been setup by the application, this routine appends
279 * the buffer as a WAPI TLV type to the request.
282 mwifiex_cmd_append_wapi_ie(struct mwifiex_private *priv, u8 **buffer)
288 if (buffer == NULL)
290 if (*buffer == NULL)
294 * If there is a wapi ie buffer setup, append it to the return
295 * parameter buffer pointer.
300 priv->wapi_ie_len, *buffer);
302 /* Wrap the generic IE buffer with a pass through TLV type */
305 memcpy(*buffer, &ie_header, sizeof(ie_header));
307 /* Increment the return size and the return buffer pointer
309 *buffer += sizeof(ie_header);
312 /* Copy the wapi IE buffer to the output buffer, advance
314 memcpy(*buffer, priv->wapi_ie, priv->wapi_ie_len);
316 /* Increment the return size and the return buffer pointer
318 *buffer += priv->wapi_ie_len;
322 /* return the length appended to the buffer */
331 u8 **buffer)
336 if (!buffer || !(*buffer))
339 rsn_ie_tlv = (struct mwifiex_ie_types_rsn_param_set *) (*buffer);
354 *buffer += rsn_ie_len;
579 * The response buffer for the association command has the following
1265 * saves the beacon buffer.