Skip to content

Commit

Permalink
mac80211: extend fast-xmit to driver fragmentation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg committed Apr 22, 2015
1 parent 4505d1f commit 725b812
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 725b812

Please sign in to comment.