summaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-11-16 16:02:47 +0100
committerJohn W. Linville <linville@tuxdriver.com>2011-11-21 16:20:43 -0500
commit11127e9121d4dd9da868cf0fd89dcac35f7f0fa3 (patch)
tree8cb16ecbd5942679c18934064b935a7e256a77da /net/mac80211/main.c
parent74e4dbfd57a38c4ec4131cebdbfa3d621d38dd6a (diff)
downloadblackbird-op-linux-11127e9121d4dd9da868cf0fd89dcac35f7f0fa3.tar.gz
blackbird-op-linux-11127e9121d4dd9da868cf0fd89dcac35f7f0fa3.zip
mac80211: transmit fragment list to drivers
Drivers can usually handle fragmented packets much easier when they get the entire list of fragments at once. The only thing they need to do is keep enough space on the queues for up to ten fragments of a single MSDU. This allows them to implement this with a new operation tx_frags. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index e323d4e6647b..3df4482bb1d9 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -609,7 +609,7 @@ struct ieee80211_hw *ieee80211_alloc_hw(size_t priv_data_len,
local->hw.priv = (char *)local + ALIGN(sizeof(*local), NETDEV_ALIGN);
- BUG_ON(!ops->tx);
+ BUG_ON(!ops->tx && !ops->tx_frags);
BUG_ON(!ops->start);
BUG_ON(!ops->stop);
BUG_ON(!ops->config);
OpenPOWER on IntegriCloud