After installing Lite Raspbian on the Raspberry Pi 3, I started setting it up for use as a Wi-Fi router (good in the 3 versions of Wi-Fi built-in).
Install all updates (apt update && apt upgrade -y && apt full-upgrade -y && rpi-update && reboot)
After rebooting, Wi-Fi stopped working, wlan0 itself is not detected. Here is the result of the dmesg output associated with Wi-Fi
dmesg | egrep brcm
[57.612013] usbcore: registered new interface driver brcmfmac
[57.772229] brcmfmac mmc1: 0001: 1: Direct firmware load for brcm / brcmfmac43430-sdio.txt failed with error -2
[58.843390] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[59.846276] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
How to fix it?