mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mac80211: extend fast-xmit to driver fragmentation
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 <[email protected]>
This commit is contained in:
parent
4505d1fe00
commit
725b812c83
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue