DA: vsie format header can be dd and DD 58/283458/1
authorJaehyun Kim <jeik01.kim@samsung.com>
Thu, 27 Oct 2022 07:12:11 +0000 (16:12 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Thu, 27 Oct 2022 07:12:11 +0000 (16:12 +0900)
Change-Id: Ic0b796333ff4ab5005a7c1ab4c4f4bc85f3f50b5
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/wifi_manager.c

index e4e02f1..c9d07bc 100644 (file)
@@ -1840,7 +1840,7 @@ EXPORT_API int wifi_manager_netlink_scan_set_vsie(wifi_manager_netlink_scan_h ne
        int bytearray_len = (vsie_len % 2) ? ((vsie_len / 2) + 1) : (vsie_len / 2);
 
        /** vsie = ElementID(1) + Length(1) + OUI(3) + Vendor-Specific Content */
-       if ((bytearray_len < 6) || (strncmp(vsie, "dd", 2) != 0)) {
+       if ((bytearray_len < 6) || ((strncmp(vsie, "dd", 2) != 0) && (strncmp(vsie, "DD", 2) != 0))) {
                WIFI_LOG(WIFI_ERROR, "Invalid vsie: %s, bytearray_len: %d", vsie, bytearray_len);
                return WIFI_MANAGER_ERROR_INVALID_PARAMETER;
        }