From: Luiz Augusto von Dentz Date: Tue, 11 Apr 2017 19:21:02 +0000 (+0300) Subject: Bluetooth: 6lowpan: Set tx_queue_len to DEFAULT_TX_QUEUE_LEN X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=814f1b243d2c63928f6aa72d66bec0e5fae2f4a9;p=openwrt%2Fstaging%2Fblogic.git Bluetooth: 6lowpan: Set tx_queue_len to DEFAULT_TX_QUEUE_LEN Make netdev queue packets if we run out of credits. Signed-off-by: Luiz Augusto von Dentz Acked-by: Jukka Rissanen Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index dc7fda307b15..a4deba6548fe 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -594,6 +595,7 @@ static void netdev_setup(struct net_device *dev) dev->flags = IFF_RUNNING | IFF_POINTOPOINT | IFF_MULTICAST; dev->watchdog_timeo = 0; + dev->tx_queue_len = DEFAULT_TX_QUEUE_LEN; dev->netdev_ops = &netdev_ops; dev->header_ops = &header_ops;