Lines Matching refs:new_data
901 struct iwl_wipan_noa_data *new_data, *old_data; in iwlagn_rx_noa_notification() local
918 new_data = kmalloc(struct_size(new_data, data, len), GFP_ATOMIC); in iwlagn_rx_noa_notification()
919 if (new_data) { in iwlagn_rx_noa_notification()
920 new_data->length = len; in iwlagn_rx_noa_notification()
921 new_data->data[0] = WLAN_EID_VENDOR_SPECIFIC; in iwlagn_rx_noa_notification()
922 new_data->data[1] = len - 2; /* not counting EID, len */ in iwlagn_rx_noa_notification()
923 new_data->data[2] = (WLAN_OUI_WFA >> 16) & 0xff; in iwlagn_rx_noa_notification()
924 new_data->data[3] = (WLAN_OUI_WFA >> 8) & 0xff; in iwlagn_rx_noa_notification()
925 new_data->data[4] = (WLAN_OUI_WFA >> 0) & 0xff; in iwlagn_rx_noa_notification()
926 new_data->data[5] = WLAN_OUI_TYPE_WFA_P2P; in iwlagn_rx_noa_notification()
927 memcpy(&new_data->data[6], &noa_notif->noa_attribute, in iwlagn_rx_noa_notification()
931 new_data = NULL; in iwlagn_rx_noa_notification()
933 rcu_assign_pointer(priv->noa_data, new_data); in iwlagn_rx_noa_notification()