Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 725b812c authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 4505d1fe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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();