mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-03-31 06:56:52 +02:00
hwsim: Add terminating 0 byte to attribute
Similar to 21a9b064d39e8d6c920a81c2d57eead2344157c8 also include the NUL byte in the name attribute when creating a radio through DBus call.
This commit is contained in:
parent
ea9edc1f99
commit
10d96e5c19
@ -1381,7 +1381,7 @@ static struct l_dbus_message *radio_manager_create(struct l_dbus *dbus,
|
||||
|
||||
if (name[0])
|
||||
l_genl_msg_append_attr(new_msg, HWSIM_ATTR_RADIO_NAME,
|
||||
strlen(name), name);
|
||||
strlen(name) + 1, name);
|
||||
|
||||
if (p2p)
|
||||
l_genl_msg_append_attr(new_msg, HWSIM_ATTR_SUPPORT_P2P_DEVICE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user