net: hostap: convert to using IFF_NO_QUEUE
authorPhil Sutter <phil@nwl.cc>
Tue, 18 Aug 2015 08:30:42 +0000 (10:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Aug 2015 18:55:07 +0000 (11:55 -0700)
Signed-off-by: Phil Sutter <phil@nwl.cc>
Cc: Jouni Malinen <j@w1.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/hostap/hostap_main.c

index 01de1a3bf94ef0965d03dfd9c6a23d5fd2f744b6..80d4228ba7543ee024bd95b72956595772509d27 100644 (file)
@@ -865,7 +865,7 @@ void hostap_setup_dev(struct net_device *dev, local_info_t *local,
 
        switch(type) {
        case HOSTAP_INTERFACE_AP:
-               dev->tx_queue_len = 0;  /* use main radio device queue */
+               dev->priv_flags |= IFF_NO_QUEUE;        /* use main radio device queue */
                dev->netdev_ops = &hostap_mgmt_netdev_ops;
                dev->type = ARPHRD_IEEE80211;
                dev->header_ops = &hostap_80211_ops;
@@ -874,7 +874,7 @@ void hostap_setup_dev(struct net_device *dev, local_info_t *local,
                dev->netdev_ops = &hostap_master_ops;
                break;
        default:
-               dev->tx_queue_len = 0;  /* use main radio device queue */
+               dev->priv_flags |= IFF_NO_QUEUE;        /* use main radio device queue */
                dev->netdev_ops = &hostap_netdev_ops;
        }