3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 05:39:24 +01:00

hwsim: Use new l_genl send() APIs

This commit is contained in:
Denis Kenzior 2015-02-27 11:00:58 -06:00
parent 1d8b330261
commit 5594de8d27

View File

@ -256,7 +256,6 @@ static void hwsim_ready(void *user_data)
0, NULL); 0, NULL);
l_genl_family_send(hwsim, msg, create_callback, NULL, NULL); l_genl_family_send(hwsim, msg, create_callback, NULL, NULL);
l_genl_msg_unref(msg);
return; return;
} else if (destroy_action) { } else if (destroy_action) {
uint32_t id = atoi(destroy_action); uint32_t id = atoi(destroy_action);
@ -264,7 +263,6 @@ static void hwsim_ready(void *user_data)
msg = l_genl_msg_new_sized(HWSIM_CMD_DEL_RADIO, 8); msg = l_genl_msg_new_sized(HWSIM_CMD_DEL_RADIO, 8);
l_genl_msg_append_attr(msg, HWSIM_ATTR_RADIO_ID, 4, &id); l_genl_msg_append_attr(msg, HWSIM_ATTR_RADIO_ID, 4, &id);
l_genl_family_send(hwsim, msg, destroy_callback, NULL, NULL); l_genl_family_send(hwsim, msg, destroy_callback, NULL, NULL);
l_genl_msg_unref(msg);
} else if (list_action) { } else if (list_action) {
msg = l_genl_msg_new_sized(HWSIM_CMD_GET_RADIO, msg = l_genl_msg_new_sized(HWSIM_CMD_GET_RADIO,
list_option ? 8: 4); list_option ? 8: 4);
@ -279,8 +277,6 @@ static void hwsim_ready(void *user_data)
l_genl_family_dump(hwsim, msg, list_callback, l_genl_family_dump(hwsim, msg, list_callback,
NULL, list_callback_done); NULL, list_callback_done);
} }
l_genl_msg_unref(msg);
} else } else
l_main_quit(); l_main_quit();
} }