got it working. I reinstalled ubuntu 22.04 and downloaded the kernel source.
I then made changes to drivers/net/wireless/intel/iwlwifi/pcie/drv.c
First i commented out the following lines starting from line number 989 which detected the card as an AX101, although this might not be neccessary:
/* QuZ */
_IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY,
IWL_CFG_MAC_TYPE_QUZ, IWL_CFG_ANY,
IWL_CFG_RF_TYPE_HR1, IWL_CFG_ANY,
IWL_CFG_ANY, IWL_CFG_ANY, IWL_CFG_NO_CDB, IWL_CFG_ANY,
iwl_quz_a0_hr1_b0, iwl_ax101_name),
then i added an entry for my card, which has the pci id 0x4df0 0x0244.
Starting at line number 255 there are entries for AX201 cards. I added to the bottom of the block which says "Qu with Hr". The block starts like this:
/* AX200 */
IWL_DEV_INFO(0x2723, IWL_CFG_ANY, iwl_ax200_cfg_cc, iwl_ax200_name),
IWL_DEV_INFO(0x2723, 0x1653, iwl_ax200_cfg_cc, iwl_ax200_killer_1650w_name),
IWL_DEV_INFO(0x2723, 0x1654, iwl_ax200_cfg_cc, iwl_ax200_killer_1650x_name),
/* Qu with Hr */
IWL_DEV_INFO(0x43F0, 0x0070, iwl_ax201_cfg_qu_hr, NULL),
IWL_DEV_INFO(0x43F0, 0x0074, iwl_ax201_cfg_qu_hr, NULL),
IWL_DEV_INFO(0x43F0, 0x0078, iwl_ax201_cfg_qu_hr, NULL),
IWL_DEV_INFO(0x43F0, 0x007C, iwl_ax201_cfg_qu_hr, NULL),
The line which I added is this:
IWL_DEV_INFO(0x4DF0, 0x0244, iwl_ax201_cfg_qu_hr, NULL),
which is my card ID.
The rest was just building the kernel with
make bindeb-pkg
and installing the packages with
dpkg -i