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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Dev Drones
  3. Qualcomm Flight RB5 5G Drone
  4. how to stop wlan0 mac address randomization

how to stop wlan0 mac address randomization

Scheduled Pinned Locked Moved Qualcomm Flight RB5 5G Drone
8 Posts 6 Posters 2.1k Views 2 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.
  • shane_langhansS Offline
    shane_langhansS Offline
    shane_langhans
    wrote on last edited by
    #1

    I've noticed that every time the rb5 boots, the mac address for wlan0 interface changes. This is inconvenient, because I can't set the network router to reserve an IP address for it. Every time it boots, i have to use the adb shell to check what IP address ended up being assigned if i want to stream video or ssh to use vio and voa clients.
    I saw some forums like this one that said to change /etc/NetworkManager/NetworkManager.conf, but there's is no network manager directory in /etc directory.

    I tried creating /etc/NetworkManager/conf.d directory and adding a file there with the contents:


    [device]
    match-device=interface-name:wlan0
    wifi.scan-rand-mac-address=no


    but that didn't help.

    Any ideas for how to use a constant mac address?

    Eric KatzfeyE 1 Reply Last reply
    0
    • shane_langhansS shane_langhans

      I've noticed that every time the rb5 boots, the mac address for wlan0 interface changes. This is inconvenient, because I can't set the network router to reserve an IP address for it. Every time it boots, i have to use the adb shell to check what IP address ended up being assigned if i want to stream video or ssh to use vio and voa clients.
      I saw some forums like this one that said to change /etc/NetworkManager/NetworkManager.conf, but there's is no network manager directory in /etc directory.

      I tried creating /etc/NetworkManager/conf.d directory and adding a file there with the contents:


      [device]
      match-device=interface-name:wlan0
      wifi.scan-rand-mac-address=no


      but that didn't help.

      Any ideas for how to use a constant mac address?

      Eric KatzfeyE Offline
      Eric KatzfeyE Offline
      Eric Katzfey
      ModalAI Team
      wrote on last edited by
      #2

      @shane_langhans Yes, this is a known issue. We have opened a support ticket with Qualcomm and are awaiting a solution.

      Bo ZhangB 1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by A Former User
        #3

        Hey @shane_langhans ,

        Yeah, this has been a pet peeve for me too. To officially fix it, we're waiting on QCOM for a proper fix.

        As a work around, do you have a range of IPs that are not being used in the router's DHCP pool? If so, maybe you can statically assign an IP within that range? For instance, you can setup service script that calls a script like this to set the IP:

        #!/bin/bash
        
        drone_IP='192.168.168.101'
        microhard_radio_gw='192.168.168.1'
        
        ifconfig eth0 down
        ifconfig eth0 $drone_IP netmask 255.255.255.0 up
        
        ip route add default via $microhard_radio_gw dev eth0
        

        See if this works, then we can drop it into a service like this in /etc/systemd/system:

        [Unit]
        After=sdsprpcd.service
        Requires=sdsprpcd.service
        
        [Service]
        Type=oneshot
        ExecStartPre=/bin/sleep 10
        ExecStart=/home/root/microhard_radio_config_iface.sh
        
        [Install]
        WantedBy=default.target
        
        RobertoR 1 Reply Last reply
        0
        • ? A Former User

          Hey @shane_langhans ,

          Yeah, this has been a pet peeve for me too. To officially fix it, we're waiting on QCOM for a proper fix.

          As a work around, do you have a range of IPs that are not being used in the router's DHCP pool? If so, maybe you can statically assign an IP within that range? For instance, you can setup service script that calls a script like this to set the IP:

          #!/bin/bash
          
          drone_IP='192.168.168.101'
          microhard_radio_gw='192.168.168.1'
          
          ifconfig eth0 down
          ifconfig eth0 $drone_IP netmask 255.255.255.0 up
          
          ip route add default via $microhard_radio_gw dev eth0
          

          See if this works, then we can drop it into a service like this in /etc/systemd/system:

          [Unit]
          After=sdsprpcd.service
          Requires=sdsprpcd.service
          
          [Service]
          Type=oneshot
          ExecStartPre=/bin/sleep 10
          ExecStart=/home/root/microhard_radio_config_iface.sh
          
          [Install]
          WantedBy=default.target
          
          RobertoR Offline
          RobertoR Offline
          Roberto
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • Eric KatzfeyE Eric Katzfey

            @shane_langhans Yes, this is a known issue. We have opened a support ticket with Qualcomm and are awaiting a solution.

            Bo ZhangB Offline
            Bo ZhangB Offline
            Bo Zhang
            wrote on last edited by
            #5

            @Eric-Katzfey Hi, how is this ticket going now?

            @Eric-Katzfey said in how to stop wlan0 mac address randomization:

            @shane_langhans Yes, this is a known issue. We have opened a support ticket with Qualcomm and are awaiting a solution.

            Eric KatzfeyE 1 Reply Last reply
            0
            • Bo ZhangB Bo Zhang

              @Eric-Katzfey Hi, how is this ticket going now?

              @Eric-Katzfey said in how to stop wlan0 mac address randomization:

              @shane_langhans Yes, this is a known issue. We have opened a support ticket with Qualcomm and are awaiting a solution.

              Eric KatzfeyE Offline
              Eric KatzfeyE Offline
              Eric Katzfey
              ModalAI Team
              wrote on last edited by
              #6

              @Bo-Zhang Unfortunately, we have not received a solution.

              1 Reply Last reply
              0
              • Bo ZhangB Offline
                Bo ZhangB Offline
                Bo Zhang
                wrote on last edited by Bo Zhang
                #7

                I just managed to set ethernet MAC with rc.local by writing the following into /etc/rc.local,

                #!/bin/sh
                ifconfig eth0 down 
                ifconfig eth0 hw ether 00:xx:xx:xx:xx:xx
                ifconfig eth0 up
                

                Remember to replace with your MAC to be fixed and to make sure rc.local service is up with the commands below.

                chmod +x /etc/rc.local
                systemctl start rc.local
                systemctl enable rc.local
                systemctl status rc.local
                reboot
                

                If it doesn't work, check the service status with systemctl to see what went wrong.

                1 Reply Last reply
                0
                • M mbahrami referenced this topic on
                • Amin BassiriA Offline
                  Amin BassiriA Offline
                  Amin Bassiri
                  Contributor
                  wrote on last edited by
                  #8

                  follow this

                  adb shell
                  sudo nano /etc/dhcpcd.conf
                  copy your ip in the page like this:

                  interface wlan0
                  static ip_address=192.168.1.35/24
                  static routers=192.168.1.7
                  static domain_name_servers=192.168.1.7

                  have look at this link also. https://www.makeuseof.com/raspberry-pi-set-static-ip/

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  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

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