Lines Matching refs:gen_ie
329 struct mwifiex_ie *gen_ie; in mwifiex_uap_parse_tail_ies() local
340 gen_ie = kzalloc(sizeof(*gen_ie), GFP_KERNEL); in mwifiex_uap_parse_tail_ies()
341 if (!gen_ie) in mwifiex_uap_parse_tail_ies()
374 memcpy(gen_ie->ie_buffer + ie_len, hdr, token_len); in mwifiex_uap_parse_tail_ies()
394 memcpy(gen_ie->ie_buffer + ie_len, vendorhdr, token_len); in mwifiex_uap_parse_tail_ies()
401 gen_ie->ie_index = cpu_to_le16(gen_idx); in mwifiex_uap_parse_tail_ies()
402 gen_ie->mgmt_subtype_mask = cpu_to_le16(MGMT_MASK_BEACON | in mwifiex_uap_parse_tail_ies()
405 gen_ie->ie_length = cpu_to_le16(ie_len); in mwifiex_uap_parse_tail_ies()
407 if (mwifiex_update_uap_custom_ie(priv, gen_ie, &gen_idx, NULL, NULL, in mwifiex_uap_parse_tail_ies()
416 kfree(gen_ie); in mwifiex_uap_parse_tail_ies()
441 struct mwifiex_ie *ar_ie = NULL, *gen_ie = NULL; in mwifiex_del_mgmt_ies() local
445 gen_ie = kmalloc(sizeof(*gen_ie), GFP_KERNEL); in mwifiex_del_mgmt_ies()
446 if (!gen_ie) in mwifiex_del_mgmt_ies()
449 gen_ie->ie_index = cpu_to_le16(priv->gen_idx); in mwifiex_del_mgmt_ies()
450 gen_ie->mgmt_subtype_mask = cpu_to_le16(MWIFIEX_DELETE_MASK); in mwifiex_del_mgmt_ies()
451 gen_ie->ie_length = 0; in mwifiex_del_mgmt_ies()
452 if (mwifiex_update_uap_custom_ie(priv, gen_ie, &priv->gen_idx, in mwifiex_del_mgmt_ies()
500 kfree(gen_ie); in mwifiex_del_mgmt_ies()