WHC Wi-Fi Device-Side Driver
Configuration Options and Operating Modes
MENU CONFIG |
WPAoD |
WPAoH (cfg80211 Host) |
|---|---|---|
WHC SUPPLICANT OFFLOAD |
Y |
N |
WHC DEV TCPIP KEEPALIVE |
O |
O |
WHC WIFI API PATH |
N |
Y |
WHC CMD PATH |
Y |
Y |
Status |
Ready |
Ready |
MENU CONFIG |
WPAoD |
WPAoH |
|---|---|---|
WHC SUPPLICANT OFFLOAD |
Y |
N |
WHC DEV TCPIP KEEPALIVE |
O |
O |
WHC WIFI API PATH |
N |
Y |
WHC CMD PATH |
Y |
Y |
Status |
Ready |
Ready |
MENU CONFIG |
WPAoD |
WPAoH |
|---|---|---|
WHC SUPPLICANT OFFLOAD |
Y |
N |
WHC DEV TCPIP KEEPALIVE |
O |
O |
WHC WIFI API PATH |
N |
Y |
WHC CMD PATH |
Y |
Y |
Status |
Ready |
TODO |
Please reference WHC Wi-Fi Configuration Options and Operating Modes for detail information.
WPAoH Device-Side Driver
Set up the compilation environment, and run
ameba.py menuconfigto access the configuration interface
Note
Before building the firmware, confirm the chip variant and configure CONFIG Link Option accordingly:
With Flash: The chip includes internal or external Flash. Set
IMG1(Bootloader)andIMG2(Application)to FLASH, which is the default configuration.SRAM-only (Single Die): The chip has only SRAM, no Flash. Set
IMG1(Bootloader)andIMG2(Application)to SRAM.
For detailed Link Option configuration, refer to RAM Layout - Kconfig Link Option .
Select .
(Top) -> CONFIG WHC INTF -> WHC_MODE ----Configuration---- ( ) WHC_IPC (X) WHC_DEV ( ) WHC_HOST
Select the desired interface.
(Top) -> CONFIG WHC INTF -> HW INTERFACE ----Configuration---- (X) WHC_INTF_SDIO ( ) WHC_INTF_USB ( ) WHC_INTF_SPI
Note
If WHC_INTF_USB is selected, ensure the following USB options are enabled:
(Top) -> CONFIG USB [*] Enable USB USB Mode (Device) ---> *** USB Device Class *** [ ] CDC ACM [ ] Composite [ ] HID [*] INIC [ ] MSC [ ] UAC [ ] VENDOR
Select modules based your mode, Please reference WHC Wi-Fi Configuration Options and Operating Modes for more informations.
(Top) -> CONFIG WHC INTF -> WHC config ----Configuration---- (X) Support WHC CMD PATH (X) Support WHC WIFI API PATH ( ) Support WHC SUPPLICANT OFFLOAD ( ) Support WHC DEV TCPIP KEEPALIVE
Note
If you want to enable TCP/IP keep-alive on Device-side, please select Support WHC DEV TCPIP KEEPALIVE.
Select Wi-Fi NAN or Wi-Fi P2P based on your need:
(Top) -> CONFIG WIFI ----Configuration---- (X)ENABLE WIFI ---> CONFIG WIFI MODE ---> (X) ENABLE NAN ( ) ENABLE P2P
Note
Wi-Fi NAN or Wi-Fi P2P can only operate in Linux WPAoH mode.
Save menuconfig.
Execute
ameba.py buildto generateboot.binapp.bin
Use the image tool to download the firmware to the development board.
WPAoD Device-Side Driver
Set up the compilation environment, and run
ameba.py menuconfigto access the configuration interface
Note
Before building the firmware, confirm the chip variant and configure CONFIG Link Option accordingly:
With Flash: The chip includes internal or external Flash. Set
IMG1(Bootloader)andIMG2(Application)to FLASH, which is the default configuration.SRAM-only (Single Die): The chip has only SRAM, no Flash. Set
IMG1(Bootloader)andIMG2(Application)to SRAM.
For detailed Link Option configuration, refer to RAM Layout - Kconfig Link Option .
Select .
(Top) -> CONFIG WHC INTF -> WHC_MODE ----Configuration---- ( ) WHC_IPC (X) WHC_DEV ( ) WHC_HOST
Select the desired interface.
(Top) -> CONFIG WHC INTF -> HW INTERFACE ----Configuration---- (X) WHC_INTF_SDIO ( ) WHC_INTF_USB ( ) WHC_INTF_SPI
Note
If WHC_INTF_USB is selected, ensure the following USB options are enabled:
(Top) -> CONFIG USB [*] Enable USB USB Mode (Device) ---> *** USB Device Class *** [ ] CDC ACM [ ] Composite [ ] HID [*] INIC [ ] MSC [ ] UAC [ ] VENDOR
Select modules based your mode, Please reference WHC Wi-Fi Configuration Options and Operating Modes for more informations.
(Top) -> CONFIG WHC INTF -> WHC config ----Configuration---- (X) Support WHC CMD PATH ( ) Support WHC WIFI API PATH (X) Support WHC SUPPLICANT OFFLOAD ( ) Support WHC DEV TCPIP KEEPALIVE
Note
If you want to enable TCP/IP keep-alive on Device-side, please select Support WHC DEV TCPIP KEEPALIVE.
Save menuconfig.
Execute
ameba.py buildto generateboot.binapp.bin
Use the image tool to download the firmware to the development board.