First detect the Wi-Fi controllers. lspci or lsusb are command-line tools that can be used for this task.