diff --git a/client/src/mifare/mifarehost.c b/client/src/mifare/mifarehost.c index 7e44df14af..28969b1bde 100644 --- a/client/src/mifare/mifarehost.c +++ b/client/src/mifare/mifarehost.c @@ -1144,7 +1144,7 @@ int mf_chinese_set_uid(uint8_t *uid, uint8_t uidlen, const uint8_t *atqa, const res = mf_chinese_set_block(0, block0, NULL, params); if (res == PM3_SUCCESS) { - params = MAGIC_SINGLE | MAGIC_WUPC; + params = MAGIC_SINGLE | (gdm ? MAGIC_GDM_ALT_WUPC : MAGIC_WUPC); memset(block0, 0, sizeof(block0)); res = mf_chinese_get_block(0, block0, params); if (res == 0) {