From 6a665c5995245d1647dd58afbace8bfbc00c9def Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Thu, 6 Oct 2016 22:42:29 +0100
Subject: [PATCH] mtu for mesh hotspot

---
 src/freedombone-mesh-batman | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/freedombone-mesh-batman b/src/freedombone-mesh-batman
index 3e7489346..43627e192 100755
--- a/src/freedombone-mesh-batman
+++ b/src/freedombone-mesh-batman
@@ -273,6 +273,9 @@ function start {
                 # bridge between mesh and wifi hotspot for mobile
                 HOTSPOT_NAME=$"${WIFI_SSID}-hotspot"
                 ifconfig $IFACE_SECONDARY down
+                ifconfig $IFACE_SECONDARY mtu 1500
+                ifconfig $IFACE_SECONDARY hw ether $(assign_peer_address)
+                iwconfig $IFACE_SECONDARY enc open
                 iwconfig $IFACE_SECONDARY mode managed essid $HOTSPOT_NAME channel ${CHANNEL}
                 iwconfig $IFACE_SECONDARY ap $CELLID
 
@@ -302,7 +305,7 @@ function start {
                 ifconfig $BRIDGE_HOTSPOT up
                 avahi-autoipd --force-bind --daemonize --wait $BRIDGE_HOTSPOT
                 ifconfig $IFACE_SECONDARY up promisc
-                ifconfig $IFACE_SECONDARY auto-dhcp
+                ifconfig $IFACE_SECONDARY auto-dhcp start
             fi
         fi
     fi
-- 
GitLab