From 56616c4183a69c93bb21641c1d70fae7abd8a87f Mon Sep 17 00:00:00 2001 From: Shivani Baranwal Date: Wed, 25 Jun 2025 09:52:36 +0530 Subject: [PATCH] P2P2: Update device name with USD device found Populate the device name in the device info while processing the USD elements for the device found. Signed-off-by: Shivani Baranwal --- src/p2p/p2p.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index 9748d598a..43c0101eb 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -6144,6 +6144,10 @@ void p2p_process_usd_elems(struct p2p_data *p2p, const u8 *ies, u16 ies_len, return; } + if (msg.device_name[0]) + os_memcpy(dev->info.device_name, msg.device_name, + sizeof(dev->info.device_name)); + dev->p2p2 = true; /* Reset info from old IEs */ dev->info.reg_info = 0; -- 2.47.2