diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-07-09 09:39:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-11 15:02:19 -0400 |
commit | 55d990592f83cbfabfefde6e32bf27d4e7493d0c (patch) | |
tree | 15b9e0dc0f8ed6bb0ae6943de3c7c65413aced0d | |
parent | f15220eaa7296154aace6832791a82188dddb8fd (diff) |
mac80211: allocate only one RX queue
We don't have multiple RX queues, so there's no use
in allocating multiple, use alloc_netdev_mqs() to
allocate multiple TX but only one RX queue.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/mac80211/iface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index dee30aea9ab3..236d15841812 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c | |||
@@ -1130,8 +1130,8 @@ int ieee80211_if_add(struct ieee80211_local *local, const char *name, | |||
1130 | 1130 | ||
1131 | ASSERT_RTNL(); | 1131 | ASSERT_RTNL(); |
1132 | 1132 | ||
1133 | ndev = alloc_netdev_mq(sizeof(*sdata) + local->hw.vif_data_size, | 1133 | ndev = alloc_netdev_mqs(sizeof(*sdata) + local->hw.vif_data_size, |
1134 | name, ieee80211_if_setup, local->hw.queues); | 1134 | name, ieee80211_if_setup, local->hw.queues, 1); |
1135 | if (!ndev) | 1135 | if (!ndev) |
1136 | return -ENOMEM; | 1136 | return -ENOMEM; |
1137 | dev_net_set(ndev, wiphy_net(local->hw.wiphy)); | 1137 | dev_net_set(ndev, wiphy_net(local->hw.wiphy)); |