[BUG]修改首次开机默认qmodem-next配置会导致清空openwrt接口(重新生成 /etc/config/network)。
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 426
- Forks
- 212
- Avg merge
- 5h 54m
- Merged PRs (30d)
- 10
Description
描述问题
openwrt的main分支今天的版本,linux/v6.18.39,使用的是qmodem-next今天的main版本。
上网模块:fm350-gl | mediatek | usb(rndis)
首次开机,模块完全由qmodem-next控制可以自动联网
[2026-07-27 20:56:12] modem_dial:modem_path=/sys/bus/usb/devices/2-1/,driver=rndis,interface=2_1,at_port=/dev/ttyUSB3,using_sim_slot:1,dns_list:,bridge_enabled:0,bridge_port:
[2026-07-27 20:56:17] modem_dial:info sim card is ready
[2026-07-27 20:56:17] modem_dial:create interface 2_1 with proto static and metric 11
[2026-07-27 20:56:17] modem_dial:create interface 2_1v6 with proto dhcpv6 and metric 11
[2026-07-27 20:56:18] modem_dial:set interface 2_1 to eth1
[2026-07-27 20:56:18] modem_dial:network reload
[2026-07-27 20:56:18] modem_dial:firewall reload
[2026-07-27 20:56:18] modem_dial:dialing /sys/bus/usb/devices/2-1/ driver rndis
[2026-07-27 20:56:19] modem_dial:dialing: vendor:fibocom; platform:mediatek; driver:rndis; apn:; command:AT+CGACT=1,0 pdp_index:0
[2026-07-27 20:56:19] modem_dial:dial_cmd: AT+CGACT=1,0; cgdcont_cmd: AT+CGDCONT=0,"IPV4V6",""; ppp_auth_cmd:
[2026-07-27 20:56:24] modem_dial:ip changed from , to ,10.59.147.139
0.0.0.0
0.0.0.0
24.198.92.231
152.72.195.67
[2026-07-27 20:56:24] modem_dial:ip_change_fm350
[2026-07-27 20:56:25] modem_dial:set interface 2_1 to 10.59.147.139
我想修改网络配置APN,默认的qmodem-next网络配置是自动,我于是手动修改了。
如果我再手动添加接口,然后再修改APN就不会清空接口。
BUG:修改默认qmodem-next配置会导致清空openwrt接口(重新生成 /etc/config/network)。
复现方法
恢复出厂设置,直接修改qmodem-next的APN保存重启即可复现。
刚刚测试了一下发现只要有这个配置就会清空openwrt接口(重新生成 /etc/config/network),删除多余的配置,只保留qmodem新增的APN就正常。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue after a factory reset, using the default qmodem-next configuration and changing only the APN. Trace the configuration path that regenerates /etc/config/network, comparing the default APN configuration with one added manually. Done means changing the default APN no longer clears existing OpenWrt interfaces or network settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- embedded-iot, networking, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100