I'm using a Raspberry Pi 3 Model B and using the aarch64 image, the kernel version is 5.16.1-1-aarch64-ARCH.
This is the command I used to bring it up $this->bbcode_second_pass_code('', 'sudo ip link set dev wlan0 up') but when I look at the output of $this->bbcode_second_pass_code('', 'ip a')this is the output for wlan0, it still says it's down and I can't use it with hostapd $this->bbcode_second_pass_code('', 'wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000')