1. Compile the WiFi related function as module, generate Bcmdhd.ko, the module information of Bcmdhd.ko, this module depends on Cfg80211.ko and Rfkill.ko.
2. Write the script, boot automatically load WiFi module.
3. Use the command #ifconfig wlan0 up to turn on WiFi.
2 firmware is required to open WiFi: Fw_bcm40181a2.bin and Nvram_ap6210.txt.
Select firmware Fw_bcm40181a2.bin (defined in the firmware name program) based on the chip ID (ap6210 internal use bcm43362)
Nvram_ap6210.txt defined in. config
The firmware path, as defined in. config.
Config_bcmdhd_fw_path= "/etc/firmware/fw_bcmdhd.bin"//Red part is the firmware path, the blue part is not the final name, is the schematic name.
Config_bcmdhd_nvram_path= "/etc/firmware/nvram_bcmdhd.txt"//Red part is the firmware path, the blue part can be modified to represent the name of the final loaded firmware.
4. Using the command #iwlist wlan0 scan
Full Chi A20 ap6210 WiFi module porting