diff options
-rw-r--r-- | drivers/net/wireless/ath/wil6210/netdev.c | 27 | ||||
-rw-r--r-- | drivers/net/wireless/ath/wil6210/wil6210.h | 2 |
2 files changed, 1 insertions, 28 deletions
diff --git a/drivers/net/wireless/ath/wil6210/netdev.c b/drivers/net/wireless/ath/wil6210/netdev.c index 3068b5cb53a7..073dc7d39259 100644 --- a/drivers/net/wireless/ath/wil6210/netdev.c +++ b/drivers/net/wireless/ath/wil6210/netdev.c | |||
@@ -35,35 +35,10 @@ static int wil_stop(struct net_device *ndev) | |||
35 | return wil_down(wil); | 35 | return wil_down(wil); |
36 | } | 36 | } |
37 | 37 | ||
38 | /* | ||
39 | * AC to queue mapping | ||
40 | * | ||
41 | * AC_VO -> queue 3 | ||
42 | * AC_VI -> queue 2 | ||
43 | * AC_BE -> queue 1 | ||
44 | * AC_BK -> queue 0 | ||
45 | */ | ||
46 | static u16 wil_select_queue(struct net_device *ndev, struct sk_buff *skb) | ||
47 | { | ||
48 | static const u16 wil_1d_to_queue[8] = { 1, 0, 0, 1, 2, 2, 3, 3 }; | ||
49 | struct wil6210_priv *wil = ndev_to_wil(ndev); | ||
50 | u16 rc; | ||
51 | |||
52 | skb->priority = cfg80211_classify8021d(skb); | ||
53 | |||
54 | rc = wil_1d_to_queue[skb->priority]; | ||
55 | |||
56 | wil_dbg_TXRX(wil, "%s() %d -> %d\n", __func__, (int)skb->priority, | ||
57 | (int)rc); | ||
58 | |||
59 | return rc; | ||
60 | } | ||
61 | |||
62 | static const struct net_device_ops wil_netdev_ops = { | 38 | static const struct net_device_ops wil_netdev_ops = { |
63 | .ndo_open = wil_open, | 39 | .ndo_open = wil_open, |
64 | .ndo_stop = wil_stop, | 40 | .ndo_stop = wil_stop, |
65 | .ndo_start_xmit = wil_start_xmit, | 41 | .ndo_start_xmit = wil_start_xmit, |
66 | .ndo_select_queue = wil_select_queue, | ||
67 | .ndo_set_mac_address = eth_mac_addr, | 42 | .ndo_set_mac_address = eth_mac_addr, |
68 | .ndo_validate_addr = eth_validate_addr, | 43 | .ndo_validate_addr = eth_validate_addr, |
69 | }; | 44 | }; |
@@ -97,7 +72,7 @@ void *wil_if_alloc(struct device *dev, void __iomem *csr) | |||
97 | ch = wdev->wiphy->bands[IEEE80211_BAND_60GHZ]->channels; | 72 | ch = wdev->wiphy->bands[IEEE80211_BAND_60GHZ]->channels; |
98 | cfg80211_chandef_create(&wdev->preset_chandef, ch, NL80211_CHAN_NO_HT); | 73 | cfg80211_chandef_create(&wdev->preset_chandef, ch, NL80211_CHAN_NO_HT); |
99 | 74 | ||
100 | ndev = alloc_netdev_mqs(0, "wlan%d", ether_setup, WIL6210_TX_QUEUES, 1); | 75 | ndev = alloc_netdev(0, "wlan%d", ether_setup); |
101 | if (!ndev) { | 76 | if (!ndev) { |
102 | dev_err(dev, "alloc_netdev_mqs failed\n"); | 77 | dev_err(dev, "alloc_netdev_mqs failed\n"); |
103 | rc = -ENOMEM; | 78 | rc = -ENOMEM; |
diff --git a/drivers/net/wireless/ath/wil6210/wil6210.h b/drivers/net/wireless/ath/wil6210/wil6210.h index 9b2ebdd20de8..d95728636f6a 100644 --- a/drivers/net/wireless/ath/wil6210/wil6210.h +++ b/drivers/net/wireless/ath/wil6210/wil6210.h | |||
@@ -36,8 +36,6 @@ static inline u32 WIL_GET_BITS(u32 x, int b0, int b1) | |||
36 | 36 | ||
37 | #define WIL6210_MEM_SIZE (2*1024*1024UL) | 37 | #define WIL6210_MEM_SIZE (2*1024*1024UL) |
38 | 38 | ||
39 | #define WIL6210_TX_QUEUES (4) | ||
40 | |||
41 | #define WIL6210_RX_RING_SIZE (128) | 39 | #define WIL6210_RX_RING_SIZE (128) |
42 | #define WIL6210_TX_RING_SIZE (128) | 40 | #define WIL6210_TX_RING_SIZE (128) |
43 | #define WIL6210_MAX_TX_RINGS (24) | 41 | #define WIL6210_MAX_TX_RINGS (24) |