projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4505d1f
)
mac80211: extend fast-xmit to driver fragmentation
author
Johannes Berg
<johannes.berg@intel.com>
Fri, 10 Apr 2015 12:02:08 +0000
(14:02 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Wed, 22 Apr 2015 08:07:36 +0000
(10:07 +0200)
If the driver handles fragmentation then it wouldn't
be done in software so we can still use the fast-xmit
path in that case.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/tx.c
b/net/mac80211/tx.c
index 160e1927323d3a26ad30752d449298764b147dec..d983683a8a13e700830080eced49801e79274933 100644
(file)
--- a/
net/mac80211/tx.c
+++ b/
net/mac80211/tx.c
@@
-2450,7
+2450,8
@@
void ieee80211_check_fast_xmit(struct sta_info *sta)
goto out;
/* fast-xmit doesn't handle fragmentation at all */
- if (local->hw.wiphy->frag_threshold != (u32)-1)
+ if (local->hw.wiphy->frag_threshold != (u32)-1 &&
+ !local->ops->set_frag_threshold)
goto out;
rcu_read_lock();