Wifi at the Luci web interface

e9hack e9hack at gmail.com
Fri May 19 22:50:44 PDT 2023


Am 19.05.2023 um 15:00 schrieb e9hack:
> Am 19.05.2023 um 13:16 schrieb Daniel Golle:
>> On Fri, May 19, 2023 at 10:11:39AM +0200, e9hack wrote:
>>> Hi,
>>>
>>> I face a strange behaviour. If I compile hostapd with openssl, the Luci web interface shows both wifis (2.4G+5G) as active and shows connected stations. If I compile hostapd with wolfssl, the Luci web interface shows only the 5G wifi as active and shows connected stations. The 2.4G wifi is shown in gray. On the network->wireless page, the radio for 2.4G is marked as 'Device is not active'. The SSID's are marked as 'disabled'. This occurs on a ASUS AX53U and a TP-Link WDR3600 router. The 2.4G wifi is running and stations are connected. Hostapd is build with the internal radius server activated. The setup for 2.4G is 8 wifi's with encryption wpa3, wpa3-mixed, sae and sae-mixed.
>>>
>>> How does Luci retrieve the wifi information?
>>
>> You are probably missing rpcd-mod-iwinfo
> 
> /usr/lib/rpcd/iwinfo.so is available.
> 
> The output for 5G is correct. If I change hostapd between the two versions without a reboot, 2G is shown as expected for openssl but not for wolfssl.
> 

If I execute 'ubus call luci-rpc getWirelessDevices' for the openssl and wolfssl build, this is the difference (shortened):

--- rpc-call-openssl.txt	2023-05-19 12:28:50.000000000 +0200
+++ rpc-call-wolfssl.txt	2023-05-19 13:11:39.000000000 +0200
@@ -1,10 +1,10 @@
  {
  	"radio0": {
-		"up": true,
+		"up": false,
  		"pending": false,
  		"autostart": true,
  		"disabled": false,
-		"retry_setup_failed": false,
+		"retry_setup_failed": true,
  		"config": {
  			"channel": "9",
  			"hwmode": "11ng",
@@ -20,7 +20,6 @@
  		"interfaces": [
  			{
  				"section": "wifinet0",
-				"ifname": "phy0-ap0",
  				"config": {
  					"mode": "ap",
  					"encryption": "wpa3-mixed",
@@ -49,58 +48,10 @@
  				],
  				"stations": [
  					
-				],
-				"iwinfo": {
-					"noise": -90,
-					"channel": 9,
-					"country": "DE",

The wolfssl build detects the 2.4G as not up, in the interface section 'ifname' and the the complete 'iwinfo' part is missing. If I call iwinfo directly, it shows the full output for both builds (some values are different).

Regards,
Hartmut



More information about the openwrt-devel mailing list