]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P2: Update device name with USD device found
authorShivani Baranwal <shivani.baranwal@oss.qualcomm.com>
Wed, 25 Jun 2025 04:22:36 +0000 (09:52 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 25 Jul 2025 12:44:35 +0000 (15:44 +0300)
Populate the device name in the device info while processing the USD
elements for the device found.

Signed-off-by: Shivani Baranwal <shivani.baranwal@oss.qualcomm.com>
src/p2p/p2p.c

index 9748d598a19bd8873fccee7e43fc360f82fe4855..43c0101eb304ae3e03513606e3de2960c342b15d 100644 (file)
@@ -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;