Adding patches to WiFi drivers

I hope someone could help me figure something out about quilt usage in kernel driver build. I need to patch a file in a WiFi driver. WiFi drivers appear to be pulled in from backports, i.e. all relevant sources are in something like


while kernel itself is in


However, I can not seem to find any package actually defining how that stuff is built. In particular, I am trying to patch iwlwifi driver. It looks like it should something defined in ./package/kernel/mac80211/

So based on that I dropped my patch into ./package/kernel/mac80211/patches, but it does not have any effect. It does not crash, it does not apply, it is as if it did not exist. Please help! If it ends up working out in clean build that should allow AX200 to work under openWRT, also in AP mode=)

For reference, the actual patch is below (I have formatted it based on what Atheros patches look like)

--- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
@@ -1241,14 +1241,14 @@

        /* Init RSS configuration */
-       if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) {
+       /*if (mvm->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) {
                ret = iwl_configure_rxq(mvm);
                if (ret) {
                        IWL_ERR(mvm, "Failed to configure RX queues: %d\n",
                        goto error;
-       }
+       }*/

        if (iwl_mvm_has_new_rx_api(mvm)) {
                ret = iwl_send_rss_cfg_cmd(mvm);