The AP6335 module (BCM4339) is required to be brushed into the firmware when it is running, and it needs to load different firmware when switching between normal WiFi mode and AP mode, which is located under/system/etc/firmware/:
Fw_bcm4339a0_ag.bin
Fw_bcm4339a0_ag_apsta.bin
The following log is the firmware that is loaded when the WiFi hotspot is turned on:
[1276.966022] Dhd_bus_devreset: = = WLAN on = =
[1276.966038] Dhd_bus_devreset called when dongle was not in reset
[1276.966045] would call Dhd_bus_start instead
[1276.966092] Dhd_conf_set_fw_name_by_chip:firmware_path=/system/etc/firmware/fw_bcm43341b0_ag_apsta.bin
[1276.966220] Final Fw_path=/system/etc/firmware/fw_bcm43341b0_ag_apsta.bin
[1276.966229] Final Nv_path=/system/etc/firmware/nvram_ap6335.txt
[1276.966237] Final Conf_path=/system/etc/firmware/config.txt
[1277.005227] NVRAM version:ap6335_nvram_v1.7_04102014
Drive directory for WiFi:
Kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd
Drive directory for Gigabit Ethernet:
Kernel/drivers/net/ethernet/rockchip/gmac
Example of firmware loading in Linux