X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/dbc6ac7a892d6143778abc5563ee30bb0bdce858..c1ae60e7df285725b5ba0b8050c58ec8bc664408:/package/madwifi/patches/372-queue_vif.patch?ds=inline diff --git a/package/madwifi/patches/372-queue_vif.patch b/package/madwifi/patches/372-queue_vif.patch index 6fa86b988..1c31fff7f 100644 --- a/package/madwifi/patches/372-queue_vif.patch +++ b/package/madwifi/patches/372-queue_vif.patch @@ -1,6 +1,6 @@ --- a/net80211/ieee80211_input.c +++ b/net80211/ieee80211_input.c -@@ -1199,6 +1199,7 @@ +@@ -1197,6 +1197,7 @@ ieee80211_deliver_data(struct ieee80211_ } if (skb1 != NULL) { struct ieee80211_node *ni_tmp; @@ -8,7 +8,7 @@ skb1->dev = dev; skb_reset_mac_header(skb1); skb_set_network_header(skb1, sizeof(struct ether_header)); -@@ -1206,7 +1207,12 @@ +@@ -1204,7 +1205,12 @@ ieee80211_deliver_data(struct ieee80211_ skb1->protocol = __constant_htons(ETH_P_802_2); /* XXX insert vlan tag before queue it? */ ni_tmp = SKB_CB(skb1)->ni; /* remember node so we can free it */ @@ -18,13 +18,13 @@ + if (ret == NETDEV_TX_BUSY) + ieee80211_dev_kfree_skb(&skb1); + -+ if (ret != NETDEV_TX_OK) { ++ else if (ret != NETDEV_TX_OK) { /* If queue dropped the packet because device was * too busy */ vap->iv_devstats.tx_dropped++; --- a/net80211/ieee80211_output.c +++ b/net80211/ieee80211_output.c -@@ -333,9 +333,10 @@ +@@ -324,9 +324,10 @@ void ieee80211_parent_queue_xmit(struct /* Dispatch the packet to the parent device */ skb->dev = vap->iv_ic->ic_dev;