WiFi does not works on VIM2 MAX v1.2 - NVRAM is missing
ap6398s-firmware does not provide the necessary NVRAM file /usr/lib/firmware/brcm/brcmfmac4359-sdio.khadas,vim2.txt
I copied /usr/lib/firmware/brcm/brcmfmac4359-sdio.khadas,vim3.txt
to /usr/lib/firmware/brcm/brcmfmac4359-sdio.khadas,vim2.txt
and reloaded the Wi-Fi driver using the following commands:
cp /usr/lib/firmware/brcm/brcmfmac4359-sdio.khadas,vim3.txt /usr/lib/firmware/brcm/brcmfmac4359-sdio.khadas,vim2.txt
rmmod brcmfmac
modprobe brcmfmac
After this, the Wi-Fi device appeared and works in AP mode using hostapd (I have not tested STA mode yet).