use the Download/ macro to get ACX firmwares
[openwrt.git] / package / madwifi / patches-testing / 306-queue.patch
1 --- a/ath/if_ath.c
2 +++ b/ath/if_ath.c
3 @@ -8448,8 +8448,6 @@
4 ath_hal_intrset(sc->sc_ah, sc->sc_imask);
5 local_irq_restore(flags);
6
7 - netif_wake_queue(dev);
8 -
9 if (sc->sc_softled)
10 ath_led_event(sc, ATH_LED_TX);
11 }
12 @@ -8505,8 +8503,6 @@
13 ath_hal_intrset(sc->sc_ah, sc->sc_imask);
14 local_irq_restore(flags);
15
16 - netif_wake_queue(dev);
17 -
18 if (sc->sc_softled)
19 ath_led_event(sc, ATH_LED_TX);
20 }
21 @@ -8537,7 +8533,9 @@
22 STAILQ_FIRST(&sc->sc_cabq->axq_q) ? "not setup" : "empty");
23 }
24 }
25 - netif_wake_queue(dev);
26 +
27 + if (ath_get_buffers_available(sc) > ATH_TXBUF_MGT_RESERVED)
28 + netif_wake_queue(dev);
29
30 if (sc->sc_softled)
31 ath_led_event(sc, ATH_LED_TX);
32 --- a/net80211/ieee80211_input.c
33 +++ b/net80211/ieee80211_input.c
34 @@ -1116,7 +1116,7 @@
35 (vap->iv_flags & IEEE80211_F_NOBRIDGE) == 0) {
36 struct sk_buff *skb1 = NULL;
37
38 - if (ETHER_IS_MULTICAST(eh->ether_dhost)) {
39 + if (ETHER_IS_MULTICAST(eh->ether_dhost) && !netif_queue_stopped(dev)) {
40 /* Create a SKB for the BSS to send out. */
41 skb1 = skb_copy(skb, GFP_ATOMIC);
42 if (skb1)
This page took 0.047593 seconds and 5 git commands to generate.