Possible problem in ucode wifi scripts

e9hack e9hack at gmail.com
Sun Dec 15 02:11:32 PST 2024


Am 14.12.2024 um 12:02 schrieb Felix Fietkau:
> On 14.12.24 11:47, e9hack wrote:
>> Hi,
>>
>> it looks like that data.macaddr_base is always true even if no macaddr_base is set:
> 
> Which context does this happen in - hostapd, wpa_supplicant, wdev.uc or all of the above?
> 
> - Felix

The issue comes from iface.uc line no 183:

let pipe = fs.popen(`ucode /usr/share/hostap/wdev.uc ${phy} get_macaddr id=${mac_idx} num_global=${num_global_macaddr} mbssid=${data.mbssid ?? 0} macaddr_base=${macaddr_base}`);

It looks like that it isn't possible to send a null pointer through a pipe. Anything is converted to a string.

Regards,
Hartmut



More information about the openwrt-devel mailing list