WiFi interface broken after update to 26.1

Started by sandy, January 29, 2026, 01:33:45 PM

Previous topic - Next topic
I think you dont understand, you can execute the above command in the shell of your opnsense and it will patch it.
Hardware:
DEC740

Today at 01:29:35 PM #31 Last Edit: Today at 01:39:50 PM by binaryx
Patched yesterday opensense with as bundle so with router restart, when the interface is configured with mode it will fail as mode is non-empty:

in the log you can see
/usr/local/etc/rc.linkup: The command </sbin/ifconfig wlan create wlandev 'ath0' 'wlanmode hostap' bssid name 'ath0_wlan1'> returned exit code 1 and the output was "ifconfig: SIOCIFCREATE2 (wlan): Input/output error"

the issue is that escapeshellarg() convert "wlanmode hostap" into "'wlanmode hostap'" which isn't valid param as there must not be any ''

correct cmd:
/sbin/ifconfig wlan create wlandev 'ath0' wlanmode hostap bssid name 'ath0_wlan1'
what we get from escape ..
/sbin/ifconfig wlan create wlandev 'ath0' 'wlanmode hostap' bssid name 'ath0_wlan1'

this also makes the new fix/commit not requried, but no overwiew on whole code so just statement base on the troubleshooting

As of commit 4912a67 WLAN appears to work again.
On a freshly-updated 26.1, apply the following two patches in order.

# opnsense-patch 45597a9
# opnsense-patch 4912a67

After reboot WLAN interfaces should be configured.
Haven't checked other possible issues regarding WLAN yet, as right now I've a lot of other things to do for 26.1, like migrating old firewall rules.

Yes, make sure to only apply 4912a67 on 26.1.1 otherwise you'll get an apply failure because it undoes the other fix.


Cheers,
Franco