Author: nbd
Date: 2015-03-27 21:31:14 +0100 (Fri, 27 Mar 2015)
New Revision: 45069

Modified:
   
trunk/package/kernel/mac80211/patches/300-mac80211-add-an-intermediate-software-queue-implemen.patch
Log:
mac80211: fix tx queue allocation issues (#19329)

Signed-off-by: Felix Fietkau <[email protected]>

Modified: 
trunk/package/kernel/mac80211/patches/300-mac80211-add-an-intermediate-software-queue-implemen.patch
===================================================================
--- 
trunk/package/kernel/mac80211/patches/300-mac80211-add-an-intermediate-software-queue-implemen.patch
        2015-03-27 19:47:22 UTC (rev 45068)
+++ 
trunk/package/kernel/mac80211/patches/300-mac80211-add-an-intermediate-software-queue-implemen.patch
        2015-03-27 20:31:14 UTC (rev 45069)
@@ -287,12 +287,14 @@
                                        name, NET_NAME_UNKNOWN,
                                        ieee80211_if_setup, txqs, 1);
                if (!ndev)
-@@ -1731,6 +1747,9 @@ int ieee80211_if_add(struct ieee80211_lo
+@@ -1731,6 +1747,11 @@ int ieee80211_if_add(struct ieee80211_lo
                memcpy(sdata->vif.addr, ndev->dev_addr, ETH_ALEN);
                memcpy(sdata->name, ndev->name, IFNAMSIZ);
  
-+              txqi = netdev_priv(ndev) + size;
-+              ieee80211_init_tx_queue(sdata, NULL, txqi, 0);
++              if (txq_size) {
++                      txqi = netdev_priv(ndev) + size;
++                      ieee80211_init_tx_queue(sdata, NULL, txqi, 0);
++              }
 +
                sdata->dev = ndev;
        }
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to