Skip to content

Commit

Permalink
ath11k: enable ethernet offload by default
Browse files Browse the repository at this point in the history
Enable ath11k ethernet encapsulation/decapsulation offload
by default. This improves wireless performance without
requiring user configuration.

Signed-off-by: Tiago Gaspar <tiagogaspar8@gmail.com>
  • Loading branch information
tiagogaspar8 authored and robimarko committed Jul 8, 2022
1 parent 6c6174c commit 7298666
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package/kernel/mac80211/ath.mk
Expand Up @@ -307,6 +307,9 @@ define KernelPackage/ath11k
+kmod-crypto-michael-mic +ATH11K_THERMAL:kmod-hwmon-core +ATH11K_THERMAL:kmod-thermal
FILES:=$(PKG_BUILD_DIR)/drivers/soc/qcom/qmi_helpers.ko \
$(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath11k/ath11k.ko
AUTOLOAD:=$(call AutoProbe,ath11k)
# Enable encapsulation/decapsulation offload by default
MODPARAMS.ath11k:=frame_mode=2
endef

define KernelPackage/ath11k/description
Expand Down

4 comments on commit 7298666

@dspalu32
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In it's present state, I needed to revert this as it prevents ath11k WDS from functioning: default frame_mode = 1 works OK

@tiagogaspar8
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually use wds in my network and it works fine.

@dspalu32
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I wonder what the difference is then. Was is AP or client (or both) that you were using on ath11k with frame_mode=2?
It failed for me with ath11k 5GHz WDS as both the AP and client. Stupidly, I updated (and then reverted) both routers simultaneously so don't know if only one role was messed up.

@tiagogaspar8
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My router is running as a ap only, so I can't really tell you much 😅
I know wds is working because in virtalbox I can bridge to the WiFi and get IPv6 and it works

Please sign in to comment.