Lines Matching refs:buffer
20 * Append a generic IE as a pass through TLV to a TLV buffer.
24 * If the IE buffer has been setup by the application, this routine appends
25 * the buffer as a pass through TLV type to the request.
28 mwifiex_cmd_append_generic_ie(struct mwifiex_private *priv, u8 **buffer)
34 if (!buffer)
36 if (!(*buffer))
40 * If there is a generic ie buffer setup, append it to the return
41 * parameter buffer pointer.
46 __func__, priv->gen_ie_buf_len, *buffer);
48 /* Wrap the generic IE buffer with a pass through TLV type */
51 memcpy(*buffer, &ie_header, sizeof(ie_header));
53 /* Increment the return size and the return buffer pointer
55 *buffer += sizeof(ie_header);
58 /* Copy the generic IE buffer to the output buffer, advance
60 memcpy(*buffer, priv->gen_ie_buf, priv->gen_ie_buf_len);
62 /* Increment the return size and the return buffer pointer
64 *buffer += priv->gen_ie_buf_len;
67 /* Reset the generic IE buffer */
71 /* return the length appended to the buffer */
89 mwifiex_cmd_append_tsf_tlv(struct mwifiex_private *priv, u8 **buffer,
96 if (buffer == NULL)
98 if (*buffer == NULL)
106 memcpy(*buffer, &tsf_tlv, sizeof(tsf_tlv.header));
107 *buffer += sizeof(tsf_tlv.header);
111 memcpy(*buffer, &tsf_val, sizeof(tsf_val));
112 *buffer += sizeof(tsf_val);
120 memcpy(*buffer, &tsf_val, sizeof(tsf_val));
121 *buffer += sizeof(tsf_val);
222 * If the IE buffer has been setup by the application, this routine appends
223 * the buffer as a WPS TLV type to the request.
226 mwifiex_cmd_append_wps_ie(struct mwifiex_private *priv, u8 **buffer)
231 if (!buffer || !*buffer)
235 * If there is a wps ie buffer setup, append it to the return
236 * parameter buffer pointer.
241 priv->wps_ie_len, *buffer);
243 /* Wrap the generic IE buffer with a pass through TLV type */
246 memcpy(*buffer, &ie_header, sizeof(ie_header));
247 *buffer += sizeof(ie_header);
250 memcpy(*buffer, priv->wps_ie, priv->wps_ie_len);
251 *buffer += priv->wps_ie_len;
266 * If the IE buffer has been setup by the application, this routine appends
267 * the buffer as a WAPI TLV type to the request.
270 mwifiex_cmd_append_wapi_ie(struct mwifiex_private *priv, u8 **buffer)
276 if (buffer == NULL)
278 if (*buffer == NULL)
282 * If there is a wapi ie buffer setup, append it to the return
283 * parameter buffer pointer.
288 priv->wapi_ie_len, *buffer);
290 /* Wrap the generic IE buffer with a pass through TLV type */
293 memcpy(*buffer, &ie_header, sizeof(ie_header));
295 /* Increment the return size and the return buffer pointer
297 *buffer += sizeof(ie_header);
300 /* Copy the wapi IE buffer to the output buffer, advance
302 memcpy(*buffer, priv->wapi_ie, priv->wapi_ie_len);
304 /* Increment the return size and the return buffer pointer
306 *buffer += priv->wapi_ie_len;
310 /* return the length appended to the buffer */
319 u8 **buffer)
324 if (!buffer || !(*buffer))
327 rsn_ie_tlv = (struct mwifiex_ie_types_rsn_param_set *) (*buffer);
342 *buffer += rsn_ie_len;
567 * The response buffer for the association command has the following
1253 * saves the beacon buffer.