Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL 2 and VOXL 2 Mini
  3. WLAN0 MTU Setting

WLAN0 MTU Setting

Scheduled Pinned Locked Moved Unsolved VOXL 2 and VOXL 2 Mini
voxl-2
3 Posts 2 Posters 762 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mastermind
    Contributor
    wrote on last edited by
    #1

    We are using an external WiFi dongle which is wlan0. The dongle defaults to an incorrect MTU setting of 2315, which causes any connection to become unstable. We solved this by using the following command:
    sudo ip link set dev wlan0 mtu 1492

    This corrects the MTU problem. However, on reboot, the VOXL2 seems to be changing it back to the original. Since the entire networking system is non-standard and follows a range of "voxl" type configs and scripts, I tried to follow my way down the rabbit hole and noticed a lot of very nice scripting logic, but nothing specifically telling me where I can permanently change the MTU setting for WLAN0 (or for that matter any other interface).

    Can someone shed some light on where I can update the MTU so that on reboot it will not overwrite the setting? I assume there is a wpa_supplicant somewhere, but from what I saw it could easily become overwritten by voxl-wifi.

    As an aside, I don't think any WLAN connection should ever have a default MTU larger than 1492 and if needed allow someone to do the proper optimization testing to determine a links real MTU and then use that.

    Thanks in advance.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mastermind
      Contributor
      wrote on last edited by
      #2

      So here is the quick fix:

      Adding this to .bashrc updates the MTU on boot:

      sudo ip link set dev wlan0 mtu 1492

      However, it would be nice to really understand the VOXL dhclient scripting so that we can set the MTU properly for that interface.

      1 Reply Last reply
      0
      • tomT Offline
        tomT Offline
        tom
        admin
        wrote on last edited by
        #3

        @Mastermind This is the source for voxl-wifi on VOXL2 if you want to take a look: https://gitlab.com/voxl-public/voxl-sdk/utilities/qrb5165-system-tweaks/-/blob/master/scripts/voxl-wifi

        1 Reply Last reply
        0

        Reading along? Create a free ModalAI Forum account to join in.

        With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

        Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        ModalAI
        Categories Recent Tags ModalAI.com Docs
        © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups