Message ID | d1961f91-500e-acf8-baf5-bb44555b1305@wagsky.com |
---|---|
State | Not Applicable, archived |
Delegated to: | John Crispin |
Headers | show |
Series | [OpenWrt-Devel] Setting *wireless* MTU, "UCI-compliant" way? | expand |
Hi Jeff, On Mon, Apr 30, 2018 at 08:59:12AM -0700, Jeff Kletsky wrote: > TL;DR > > When wireless is used as transport for an encapsulated stream, it can be > beneficial (or essential) to increase the MTU of the link closer to the 2304 > 802.11 MTU. I haven't found a way to set the MTU of the wireless device > itself through UCI. If there's something I'm missing, I'd appreciate hearing > about it. The wireless config section is kinda only up to layer 1.5, so everything on netdev level has to be done in the network UCI config. Example: config interface 'wireless0' option proto 'none' option mtu '1536' (in order to avoid batman-adv fragmenting) Cheers Daniel
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -513,6 +513,8 @@ mac80211_prepare_vif() { ip link set dev "$ifname" address "$macaddr" fi + [ -x /etc/mac80211-post-add.sh ] && /etc/mac80211-post-add.sh "$ifname" + json_select .. }