advertising: Treat empty LocalName the same as omitting it
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 6 May 2022 23:05:14 +0000 (16:05 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commitd5a11256b150dcc8483b11b4ecd0438c8a6440a0
treefc35337bc6583796936ec12b351b81f1b3c11f67
parentdb54821459531d5080ecb7fcb9135846dea70241
advertising: Treat empty LocalName the same as omitting it

This treats empty LocalName ("") the same as omitting it so not name is
set in the advertising data since some D-Bus binding seems to have
problems to omit properties at runtime.

Fixes: https://github.com/bluez/bluez/issues/337
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/advertising.c