monitor: Enable decoding of MSFT extension with emulator
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 20 Oct 2021 21:29:08 +0000 (14:29 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:37 +0000 (19:08 +0530)
This enables decoding MSFT extension with emulator instances since it
shall be the only one using Linux Foundation as manufacturer.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
monitor/packet.c

index 51fc09a..ff066b2 100755 (executable)
@@ -4015,6 +4015,15 @@ void packet_monitor(struct timeval *tv, struct ucred *cred,
                                 */
                                index_list[index].msft_opcode = 0xFCF0;
                                break;
+                       case 1521:
+                               /*
+                                * Emulator controllers use Linux Foundation as
+                                * manufacturer and support the
+                                * Microsoft vendor extenions using
+                                * 0xFC1E for VsMsftOpCode.
+                                */
+                               index_list[index].msft_opcode = 0xFC1E;
+                               break;
                        }
                }