espressif / esp-hosted

Hosted Solution (Linux/MCU) with ESP32 (Wi-Fi + BT + BLE)
Other
707 stars 169 forks source link

esp_hosted_ng STA+AP Mode does not work simultaneously #386

Open danielhartwig opened 6 months ago

danielhartwig commented 6 months ago

I started the hostapd with the host.conf then i started a scan on the wlan0 device which is an esp32 connected via SPI to an Raspberry Pi 3B. The Scan via "sudo iw wlan0 scan" results in "command failed: Operation not permitted (-1)".

/bootfs/config.txt

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on
#dtoverlay=sdio,poll_once=off
dtoverlay=disable-bt
# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Automatically load overlays for detected cameras
camera_auto_detect=1

# Automatically load overlays for detected DSI displays
display_auto_detect=1

# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Disable compensation for displays with overscan
disable_overscan=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]
core_freq=250
core_freq_min=250
[pi4]
# Run as fast as firmware / board allows
arm_boost=1

[all]

host.conf

interface=wlan0
ssid=myssid_sae

ctrl_interface=/var/run/hostapd
hw_mode=g
channel=6
wpa=2
wpa_passphrase=mypassword
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP

ssh session 0


daniel@picam1tb:~ $ sudo hostapd host.conf 
Configuration file: host.conf
Using interface wlan0 with hwaddr ac:67:b2:71:61:69 and ssid "myssid_sae"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED 

ssh session 1


daniel@picam1tb:~ $ sudo iw wlan0 scan
command failed: Operation not permitted (-1)
daniel@picam1tb:~ $dmesg

....

[  107.376311] esp32_spi: loading out-of-tree module taints kernel.
[  107.380101] esp32_spi: esp_reset: Triggering ESP reset.
[  107.599734] esp32_spi: spi_dev_init: ESP32 peripheral is registered to SPI bus [0],chip select [0], SPI Clock [10]
[  109.112391] esp32_spi: process_esp_bootup_event: Received ESP bootup event
[  109.112428] esp32_spi: process_event_esp_bootup: Bootup Event tag: 3
[  109.112439] esp32_spi: esp_validate_chipset: Chipset=ESP32 ID=00 detected over SPI
[  109.112447] esp32_spi: process_event_esp_bootup: Bootup Event tag: 2
[  109.112455] esp32_spi: process_event_esp_bootup: Bootup Event tag: 0
[  109.112461] esp32_spi: process_event_esp_bootup: Bootup Event tag: 1
[  109.112467] esp32_spi: process_fw_data: ESP chipset's last reset cause:
[  109.112472] esp32_spi: print_reset_reason: POWERON_RESET
[  109.112479] esp32_spi: check_esp_version: ESP Firmware version: 1.0.3
[  109.112903] esp32_spi: esp_reg_notifier: Driver init is ongoing
[  109.314889] esp32_spi: esp_cfg80211_get_tx_power: 
[  109.315001] esp32_spi: print_capabilities: Capabilities: 0xa0. Features supported are:
[  109.315010] esp32_spi: print_capabilities:      * WLAN on SPI
[  109.317365] esp32_spi: esp_cfg80211_get_tx_power: 
[  109.411498] esp32_spi: esp_cfg80211_get_tx_power: 
[  109.412011] esp32_spi: esp_set_mac_address: 373 c2:6b:4e:06:c8:a1
[  166.997762] esp32_spi: esp_cfg80211_get_tx_power: 
[  166.997833] esp32_spi: esp_cfg80211_get_tx_power: 
[  166.998140] esp32_spi: esp_cfg80211_get_tx_power: 
[  166.998199] esp32_spi: esp_cfg80211_change_iface: current iface type=0 new iface type=1
[  167.114639] esp32_spi: esp_cfg80211_change_iface: wdev iftype=3, ret=0
[  167.114704] esp32_spi: esp_cfg80211_get_tx_power: 
[  167.145273] esp32_spi: esp_cfg80211_get_tx_power: 
[  167.259162] esp32_spi: esp_cfg80211_get_tx_power: 
[  167.259286] esp32_spi: esp_cfg80211_change_iface: current iface type=1 new iface type=0
[  167.394624] esp32_spi: esp_cfg80211_change_iface: wdev iftype=2, ret=0
[  167.394681] esp32_spi: esp_cfg80211_get_tx_power: 
[  169.802631] esp32_spi: esp_cfg80211_get_tx_power: 
[  169.802702] esp32_spi: esp_cfg80211_get_tx_power: 
[  169.803004] esp32_spi: esp_cfg80211_get_tx_power: 
[  169.803065] esp32_spi: esp_cfg80211_change_iface: current iface type=0 new iface type=1
[  169.984672] esp32_spi: esp_cfg80211_change_iface: wdev iftype=3, ret=0
[  169.984725] esp32_spi: esp_cfg80211_get_tx_power: 
[  170.015075] esp32_spi: esp_cfg80211_get_tx_power: 
[  170.109251] esp32_spi: esp_cfg80211_get_tx_power: 
[  170.109403] esp32_spi: esp_cfg80211_change_iface: current iface type=1 new iface type=0
[  170.244706] esp32_spi: esp_cfg80211_change_iface: wdev iftype=2, ret=0
[  170.244756] esp32_spi: esp_cfg80211_get_tx_power: 
[  208.138764] logitech-hidpp-device 0003:046D:407B.0004: HID++ 4.5 device connected.
[  276.550220] esp32_spi: esp_cfg80211_get_tx_power: 
[  276.550291] esp32_spi: esp_cfg80211_get_tx_power: 
[  276.550601] esp32_spi: esp_cfg80211_get_tx_power: 
[  276.550663] esp32_spi: esp_cfg80211_change_iface: current iface type=0 new iface type=1
[  276.714925] esp32_spi: esp_cfg80211_change_iface: wdev iftype=3, ret=0
[  276.714976] esp32_spi: esp_cfg80211_get_tx_power: 
[  276.716211] esp32_spi: esp_cfg80211_get_tx_power: 
[  276.822026] esp32_spi: esp_cfg80211_get_tx_power: 
[  276.822216] esp32_spi: esp_cfg80211_start_ap: 
[  277.264976] esp32_spi: handle_mgmt_tx_done: len is zero, nothing to do...
[  277.265468] esp32_spi: esp_cfg80211_add_key: 
[  277.266371] esp32_spi: process_cmd_resp: Command response not expected=25
[  277.345004] esp32_spi: esp_cfg80211_set_txq_params: 
[  277.345055] esp32_spi: esp_cfg80211_set_txq_params: 
[  277.345092] esp32_spi: esp_cfg80211_set_txq_params: 
[  277.345127] esp32_spi: esp_cfg80211_set_txq_params: 
[  290.904834] logitech-hidpp-device 0003:046D:4088.0005: HID++ 4.5 device connected.
[  383.123572] esp32_spi: esp_cfg80211_scan: 
[  383.185200] esp32_spi: decode_common_resp: [0x4] Command failed
[  383.185244] esp32_spi: cmd_scan_request: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -1
[  810.969109] esp32_spi: esp_cfg80211_scan: 
[  811.054485] esp32_spi: decode_common_resp: [0x4] Command failed
[  811.054523] esp32_spi: cmd_scan_request: wait_and_decode_cmd_resp(priv, cmd_node) failure, ret: -1

Serial Console


[08:47:05:243] rst:0x1 (POWERON_RESET),boot:0x1e (SPI_FAST_FLASH_BOOT)␍␊

[08:47:05:259] configsip: 0, SPIWP:0xee␍␊

[08:47:05:259] clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00␍␊

[08:47:05:259] mode:DIO, clock div:2␍␊

[08:47:05:259] load:0x3fff0030,len:7116␍␊

[08:47:05:275] ho 0 tail 12 room 4␍␊

[08:47:05:275] load:0x40078000,len:15616␍␊

[08:47:05:275] load:0x40080400,len:4␍␊

[08:47:05:275] load:0x40080404,len:3876␍␊

[08:47:05:275] entry 0x4008064c␍␊

[08:47:05:275] <0x1b>[0;32mI (31) boot: ESP-IDF v5.1.3-dirty 2nd stage bootloader<0x1b>[0m␍␊

[08:47:05:291] <0x1b>[0;32mI (31) boot: compile time May 14 2024 19:57:23<0x1b>[0m␍␊

[08:47:05:291] <0x1b>[0;32mI (31) boot: Multicore bootloader<0x1b>[0m␍␊

[08:47:05:291] <0x1b>[0;32mI (35) boot: chip revision: v1.0<0x1b>[0m␍␊

[08:47:05:307] <0x1b>[0;32mI (39) boot.esp32: SPI Speed      : 40MHz<0x1b>[0m␍␊

[08:47:05:307] <0x1b>[0;32mI (44) boot.esp32: SPI Mode       : DIO<0x1b>[0m␍␊

[08:47:05:307] <0x1b>[0;32mI (48) boot.esp32: SPI Flash Size : 4MB<0x1b>[0m␍␊

[08:47:05:307] <0x1b>[0;32mI (53) boot: Enabling RNG early entropy source...<0x1b>[0m␍␊

[08:47:05:323] <0x1b>[0;32mI (58) boot: Partition Table:<0x1b>[0m␍␊

[08:47:05:323] <0x1b>[0;32mI (62) boot: ## Label            Usage          Type ST Offset   Length<0x1b>[0m␍␊

[08:47:05:323] <0x1b>[0;32mI (69) boot:  0 nvs              WiFi data        01 02 00009000 00004000<0x1b>[0m␍␊

[08:47:05:339] <0x1b>[0;32mI (77) boot:  1 otadata          OTA data         01 00 0000d000 00002000<0x1b>[0m␍␊

[08:47:05:339] <0x1b>[0;32mI (84) boot:  2 phy_init         RF data          01 01 0000f000 00001000<0x1b>[0m␍␊

[08:47:05:355] <0x1b>[0;32mI (92) boot:  3 factory          factory app      00 00 00010000 00100000<0x1b>[0m␍␊

[08:47:05:355] <0x1b>[0;32mI (99) boot:  4 ota_0            OTA app          00 10 00110000 00100000<0x1b>[0m␍␊

[08:47:05:371] <0x1b>[0;32mI (107) boot:  5 ota_1            OTA app          00 11 00210000 00100000<0x1b>[0m␍␊

[08:47:05:371] <0x1b>[0;32mI (114) boot: End of partition table<0x1b>[0m␍␊

[08:47:05:371] <0x1b>[0;32mI (118) boot: Defaulting to factory image<0x1b>[0m␍␊

[08:47:05:387] <0x1b>[0;32mI (123) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=1e46ch (124012) map<0x1b>[0m␍␊

[08:47:05:419] <0x1b>[0;32mI (176) esp_image: segment 1: paddr=0002e494 vaddr=3ffb0000 size=01b84h (  7044) load<0x1b>[0m␍␊

[08:47:05:435] <0x1b>[0;32mI (180) esp_image: segment 2: paddr=00030020 vaddr=400d0020 size=73270h (471664) map<0x1b>[0m␍␊

[08:47:05:595] <0x1b>[0;32mI (352) esp_image: segment 3: paddr=000a3298 vaddr=3ffb1b84 size=02020h (  8224) load<0x1b>[0m␍␊

[08:47:05:611] <0x1b>[0;32mI (356) esp_image: segment 4: paddr=000a52c0 vaddr=40080000 size=1667ch ( 91772) load<0x1b>[0m␍␊

[08:47:05:659] <0x1b>[0;32mI (408) boot: Loaded app from partition at offset 0x10000<0x1b>[0m␍␊

[08:47:05:659] <0x1b>[0;32mI (408) boot: Disabling RNG early entropy source...<0x1b>[0m␍␊

[08:47:05:675] <0x1b>[0;32mI (419) cpu_start: Multicore app<0x1b>[0m␍␊

[08:47:05:675] <0x1b>[0;32mI (420) cpu_start: Pro cpu up.<0x1b>[0m␍␊

[08:47:05:675] <0x1b>[0;32mI (420) cpu_start: Starting app cpu, entry point is 0x400813cc<0x1b>[0m␍␊

[08:47:05:675] <0x1b>[0;32mI (0) cpu_start: App cpu up.<0x1b>[0m␍␊

[08:47:05:691] <0x1b>[0;32mI (437) cpu_start: Pro cpu start user code<0x1b>[0m␍␊

[08:47:05:691] <0x1b>[0;32mI (437) cpu_start: cpu freq: 240000000 Hz<0x1b>[0m␍␊

[08:47:05:691] <0x1b>[0;32mI (438) cpu_start: Application information:<0x1b>[0m␍␊

[08:47:05:707] <0x1b>[0;32mI (442) cpu_start: Project name:     network_adapter<0x1b>[0m␍␊

[08:47:05:707] <0x1b>[0;32mI (448) cpu_start: App version:      release/ng-v1.0.2-245-g040b7228<0x1b>[0m␍␊

[08:47:05:707] <0x1b>[0;32mI (455) cpu_start: Compile time:     May 14 2024 20:11:37<0x1b>[0m␍␊

[08:47:05:723] <0x1b>[0;32mI (461) cpu_start: ELF file SHA256:  b6386cd0c83ebabe...<0x1b>[0m␍␊

[08:47:05:723] <0x1b>[0;32mI (467) cpu_start: ESP-IDF:          v5.1.3-dirty<0x1b>[0m␍␊

[08:47:05:739] <0x1b>[0;32mI (472) cpu_start: Min chip rev:     v0.0<0x1b>[0m␍␊

[08:47:05:739] <0x1b>[0;32mI (477) cpu_start: Max chip rev:     v3.99 <0x1b>[0m␍␊

[08:47:05:739] <0x1b>[0;32mI (482) cpu_start: Chip rev:         v1.0<0x1b>[0m␍␊

[08:47:05:739] <0x1b>[0;32mI (487) heap_init: Initializing. RAM available for dynamic allocation:<0x1b>[0m␍␊

[08:47:05:755] <0x1b>[0;32mI (494) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM<0x1b>[0m␍␊

[08:47:05:755] <0x1b>[0;32mI (500) heap_init: At 3FFB7958 len 000286A8 (161 KiB): DRAM<0x1b>[0m␍␊

[08:47:05:771] <0x1b>[0;32mI (506) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM<0x1b>[0m␍␊

[08:47:05:771] <0x1b>[0;32mI (512) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM<0x1b>[0m␍␊

[08:47:05:771] <0x1b>[0;32mI (519) heap_init: At 4009667C len 00009984 (38 KiB): IRAM<0x1b>[0m␍␊

[08:47:05:787] <0x1b>[0;32mI (527) spi_flash: detected chip: generic<0x1b>[0m␍␊

[08:47:05:787] <0x1b>[0;32mI (530) spi_flash: flash io: dio<0x1b>[0m␍␊

[08:47:05:787] <0x1b>[0;32mI (535) app_start: Starting scheduler on CPU0<0x1b>[0m␍␊

[08:47:05:803] <0x1b>[0;32mI (539) app_start: Starting scheduler on CPU1<0x1b>[0m␍␊

[08:47:05:803] <0x1b>[0;32mI (539) main_task: Started on CPU0<0x1b>[0m␍␊

[08:47:05:803] <0x1b>[0;32mI (549) main_task: Calling app_main()<0x1b>[0m␍␊

[08:47:05:819] <0x1b>[0;32mI (552) stats: *********************************************************************<0x1b>[0m␍␊

[08:47:05:819] <0x1b>[0;32mI (560) stats:                 ESP-Hosted Firmware version :: 1.0.3                        <0x1b>[0m␍␊

[08:47:05:835] <0x1b>[0;32mI (569) stats:                 Transport used :: SPI only                      <0x1b>[0m␍␊

[08:47:05:835] <0x1b>[0;32mI (577) stats: *********************************************************************<0x1b>[0m␍␊

[08:47:05:851] <0x1b>[0;32mI (586) FW_MAIN: Supported features are:<0x1b>[0m␍␊

[08:47:05:851] <0x1b>[0;32mI (590) FW_MAIN: - WLAN over SPI<0x1b>[0m␍␊

[08:47:05:851] <0x1b>[0;32mI (594) FW_MAIN: Capabilities: 0xa0<0x1b>[0m␍␊

[08:47:05:883] I (628) wifi:wifi driver task: 3ffbd3f8, prio:23, stack:6656, core=1␍␊

[08:47:05:883] I (630) wifi:wifi firmware version: b2ac61e␍␊

[08:47:05:883] I (631) wifi:wifi certification version: v7.0␍␊

[08:47:05:899] I (631) wifi:config NVS flash: disabled␍␊

[08:47:05:899] I (635) wifi:config nano formating: disabled␍␊

[08:47:05:899] I (639) wifi:Init data frame dynamic rx buffer num: 40␍␊

[08:47:05:899] I (644) wifi:Init static rx mgmt buffer num: 5␍␊

[08:47:05:915] I (648) wifi:Init management short buffer num: 32␍␊

[08:47:05:915] I (652) wifi:Init dynamic tx buffer num: 64␍␊

[08:47:05:915] I (656) wifi:Init static rx buffer size: 1600␍␊

[08:47:05:915] I (660) wifi:Init static rx buffer num: 16␍␊

[08:47:05:931] I (664) wifi:Init dynamic rx buffer num: 40␍␊

[08:47:05:931] <0x1b>[0;32mI (669) wifi_init: rx ba win: 32<0x1b>[0m␍␊

[08:47:05:931] <0x1b>[0;32mI (672) wifi_init: tcpip mbox: 32<0x1b>[0m␍␊

[08:47:05:931] <0x1b>[0;32mI (676) wifi_init: udp mbox: 6<0x1b>[0m␍␊

[08:47:05:947] <0x1b>[0;32mI (680) wifi_init: tcp mbox: 6<0x1b>[0m␍␊

[08:47:05:947] <0x1b>[0;32mI (683) wifi_init: tcp tx win: 5760<0x1b>[0m␍␊

[08:47:05:947] <0x1b>[0;32mI (688) wifi_init: tcp rx win: 5760<0x1b>[0m␍␊

[08:47:05:947] <0x1b>[0;32mI (692) wifi_init: tcp mss: 1440<0x1b>[0m␍␊

[08:47:05:963] <0x1b>[0;32mI (696) wifi_init: WiFi IRAM OP enabled<0x1b>[0m␍␊

[08:47:05:963] <0x1b>[0;32mI (700) wifi_init: WiFi RX IRAM OP enabled<0x1b>[0m␍␊

[08:47:05:963] <0x1b>[0;32mI (705) FW_SPI: Using SPI interface<0x1b>[0m␍␊

[08:47:05:963] <0x1b>[0;32mI (709) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 <0x1b>[0m␍␊

[08:47:05:979] <0x1b>[0;32mI (718) gpio: GPIO[4]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 <0x1b>[0m␍␊

[08:47:06:971] <0x1b>[0;32mI (1729) FW_MAIN: Initial set up done<0x1b>[0m␍␊

[08:47:06:987] <0x1b>[0;32mI (1729) main_task: Returned from app_main()<0x1b>[0m␍␊

[08:47:07:051] <0x1b>[0;32mI (1810) FW_MAIN: INIT Interface command␍␊

[08:47:07:067] <0x1b>[0m␍␊

[08:47:07:067] <0x1b>[0;32mI (1811) phy_init: phy_version 4791,2c4672b,Dec 20 2023,16:06:06<0x1b>[0m␍␊

[08:47:07:131] I (1879) wifi:mode : sta (ac:67:b2:71:61:68)␍␊

[08:47:07:131] I (1879) wifi:enable tsf␍␊

[08:47:07:131] <0x1b>[0;32mI (1880) FW_CMD: Wifi Sta mode set␍␊

[08:47:07:131] <0x1b>[0m␍␊

[08:47:07:163] <0x1b>[0;32mI (1919) FW_MAIN: Get MAC command␍␊

[08:47:07:179] <0x1b>[0m␍␊

[08:47:07:323] <0x1b>[0;32mI (2080) FW_MAIN: Set MAC command␍␊

[08:47:07:339] <0x1b>[0m␍␊

[08:47:07:339] <0x1b>[0;32mI (2080) FW_CMD: Setting mac address ␍␊

[08:47:07:339] <0x1b>[0m␍␊

[08:47:07:339] <0x1b>[0;32mI (2081) FW_CMD: Unregistered event: 3␍␊

[08:47:07:339] <0x1b>[0m␍␊

[08:47:07:339] I (2081) wifi:enable tsf␍␊

[08:47:07:339] <0x1b>[0;32mI (2084) FW_CMD: Wifi Sta mode set␍␊

[08:47:07:355] <0x1b>[0m␍␊

[08:48:04:908] <0x1b>[0;32mI (59658) FW_MAIN: Set MODE command␍␊

[08:48:04:908] <0x1b>[0m␍␊

[08:48:04:908] <0x1b>[0;31mE (59658) FW_CMD: Setting mode=2 ␍␊

[08:48:04:924] <0x1b>[0m␍␊

[08:48:04:924] <0x1b>[0;32mI (59659) FW_CMD: Unregistered event: 3␍␊

[08:48:04:924] <0x1b>[0m␍␊

[08:48:04:924] E (59659) wifi:NAN WiFi stop␍␊

[08:48:04:924] I (59663) wifi:flush txq␍␊

[08:48:04:924] I (59665) wifi:stop sw txq␍␊

[08:48:04:924] I (59667) wifi:lmac stop hw txq␍␊

[08:48:04:924] I (59672) wifi:mode : softAP (ac:67:b2:71:61:69)␍␊

[08:48:04:940] I (59675) wifi:Total power save buffer number: 32␍␊

[08:48:04:940] I (59679) wifi:Init max length of beacon: 752/752␍␊

[08:48:04:940] I (59684) wifi:Init max length of beacon: 752/752␍␊

[08:48:04:972] <0x1b>[0;32mI (59728) FW_MAIN: Get MAC command␍␊

[08:48:04:988] <0x1b>[0m␍␊

[08:48:05:180] <0x1b>[0;32mI (59928) FW_MAIN: Set MODE command␍␊

[08:48:05:180] <0x1b>[0m␍␊

[08:48:05:180] <0x1b>[0;31mE (59928) FW_CMD: Setting mode=1 ␍␊

[08:48:05:180] <0x1b>[0m␍␊

[08:48:05:180] E (59928) wifi:NAN WiFi stop␍␊

[08:48:05:196] I (59929) wifi:flush txq␍␊

[08:48:05:196] I (59930) wifi:stop sw txq␍␊

[08:48:05:196] I (59933) wifi:lmac stop hw txq␍␊

[08:48:05:196] I (59938) wifi:mode : sta (c2:6b:4e:06:c8:a1)␍␊

[08:48:05:196] I (59939) wifi:enable tsf␍␊

[08:48:05:196] <0x1b>[0;32mI (59942) FW_CMD: Wifi Sta mode set␍␊

[08:48:05:212] <0x1b>[0m␍␊

[08:48:05:260] <0x1b>[0;32mI (60008) FW_MAIN: Get MAC command␍␊

[08:48:05:260] <0x1b>[0m␍␊

[08:48:07:772] <0x1b>[0;32mI (62528) FW_MAIN: Set MODE command␍␊

[08:48:07:788] <0x1b>[0m␍␊

[08:48:07:788] <0x1b>[0;31mE (62528) FW_CMD: Setting mode=2 ␍␊

[08:48:07:788] <0x1b>[0m␍␊

[08:48:07:788] <0x1b>[0;32mI (62529) FW_CMD: Unregistered event: 3␍␊

[08:48:07:788] <0x1b>[0m␍␊

[08:48:07:788] E (62529) wifi:NAN WiFi stop␍␊

[08:48:07:788] I (62533) wifi:flush txq␍␊

[08:48:07:804] I (62535) wifi:stop sw txq␍␊

[08:48:07:804] I (62537) wifi:lmac stop hw txq␍␊

[08:48:07:804] I (62542) wifi:mode : softAP (ac:67:b2:71:61:69)␍␊

[08:48:07:804] I (62545) wifi:Total power save buffer number: 32␍␊

[08:48:07:804] I (62549) wifi:Init max length of beacon: 752/752␍␊

[08:48:07:820] I (62554) wifi:Init max length of beacon: 752/752␍␊

[08:48:07:852] <0x1b>[0;32mI (62598) FW_MAIN: Get MAC command␍␊

[08:48:07:852] <0x1b>[0m␍␊

[08:48:08:044] <0x1b>[0;32mI (62788) FW_MAIN: Set MODE command␍␊

[08:48:08:044] <0x1b>[0m␍␊

[08:48:08:044] <0x1b>[0;31mE (62788) FW_CMD: Setting mode=1 ␍␊

[08:48:08:044] <0x1b>[0m␍␊

[08:48:08:044] E (62788) wifi:NAN WiFi stop␍␊

[08:48:08:044] I (62789) wifi:flush txq␍␊

[08:48:08:044] I (62790) wifi:stop sw txq␍␊

[08:48:08:060] I (62793) wifi:lmac stop hw txq␍␊

[08:48:08:060] I (62798) wifi:mode : sta (c2:6b:4e:06:c8:a1)␍␊

[08:48:08:060] I (62799) wifi:enable tsf␍␊

[08:48:08:060] <0x1b>[0;32mI (62802) FW_CMD: Wifi Sta mode set␍␊

[08:48:08:060] <0x1b>[0m␍␊

[08:48:08:108] <0x1b>[0;32mI (62858) FW_MAIN: Get MAC command␍␊

[08:48:08:108] <0x1b>[0m␍␊

[08:49:50:446] <0x1b>[0;32mI (165196) FW_MAIN: Set multicast mac address list␍␊

[08:49:50:461] <0x1b>[0m␍␊

[08:49:50:542] <0x1b>[0;32mI (165286) FW_MAIN: Set multicast mac address list␍␊

[08:49:50:542] <0x1b>[0m␍␊

[08:49:54:494] <0x1b>[0;32mI (169236) FW_MAIN: Set MODE command␍␊

[08:49:54:494] <0x1b>[0m␍␊

[08:49:54:494] <0x1b>[0;31mE (169236) FW_CMD: Setting mode=2 ␍␊

[08:49:54:494] <0x1b>[0m␍␊

[08:49:54:494] <0x1b>[0;32mI (169237) FW_CMD: Unregistered event: 3␍␊

[08:49:54:510] <0x1b>[0m␍␊

[08:49:54:510] E (169237) wifi:NAN WiFi stop␍␊

[08:49:54:510] I (169242) wifi:flush txq␍␊

[08:49:54:510] I (169243) wifi:stop sw txq␍␊

[08:49:54:510] I (169246) wifi:lmac stop hw txq␍␊

[08:49:54:510] I (169251) wifi:mode : softAP (ac:67:b2:71:61:69)␍␊

[08:49:54:510] I (169254) wifi:Total power save buffer number: 32␍␊

[08:49:54:526] I (169257) wifi:Init max length of beacon: 752/752␍␊

[08:49:54:526] I (169262) wifi:Init max length of beacon: 752/752␍␊

[08:49:54:574] <0x1b>[0;32mI (169326) FW_MAIN: Get MAC command␍␊

[08:49:54:590] <0x1b>[0m␍␊

[08:49:54:654] <0x1b>[0;32mI (169406) FW_MAIN: disconnect request␍␊

[08:49:54:670] <0x1b>[0m␍␊

[08:49:54:670] <0x1b>[0;32mI (169406) FW_CMD: Disconnect request: reason [2], interface=1␍␊

[08:49:54:670] <0x1b>[0m␍␊

[08:49:54:734] <0x1b>[0;32mI (169476) FW_MAIN: Set IE command␍␊

[08:49:54:734] <0x1b>[0m␍␊

[08:49:54:734] <0x1b>[0;32mI (169476) FW_CMD: Setting 0 IEs len=6␍␊

[08:49:54:734] <0x1b>[0m␍␊

[08:49:54:734] <0x1b>[0;32mI (169476) BEACON: 0x3ffcb914   7f 04 00 00 00 02                                 |......|<0x1b>[0m␍␊

[08:49:54:766] <0x1b>[0;32mI (169516) FW_MAIN: Set IE command␍␊

[08:49:54:766] <0x1b>[0m␍␊

[08:49:54:766] <0x1b>[0;32mI (169516) FW_CMD: Setting 1 IEs len=6␍␊

[08:49:54:782] <0x1b>[0m␍␊

[08:49:54:782] <0x1b>[0;32mI (169516) PROBE: 0x3ffcb914   7f 04 00 00 00 02                                 |......|<0x1b>[0m␍␊

[08:49:54:814] <0x1b>[0;32mI (169556) FW_MAIN: Set IE command␍␊

[08:49:54:814] <0x1b>[0m␍␊

[08:49:54:814] <0x1b>[0;32mI (169556) FW_CMD: Setting 2 IEs len=6␍␊

[08:49:54:814] <0x1b>[0m␍␊

[08:49:54:846] <0x1b>[0;32mI (169596) FW_MAIN: Set IE command␍␊

[08:49:54:846] <0x1b>[0m␍␊

[08:49:54:846] <0x1b>[0;32mI (169596) FW_CMD: Setting 3 IEs len=22␍␊

[08:49:54:862] <0x1b>[0m␍␊

[08:49:54:894] <0x1b>[0;32mI (169646) FW_MAIN: Set AP config command␍␊

[08:49:54:910] <0x1b>[0m␍␊

[08:49:54:910] <0x1b>[0;32mI (169646) FW_CMD: ap config ssid=myssid_sae ssid_len=10, pass=1234567890 channel=6 authmode=3 hidden=0 bi=100 cipher=0␍␊

[08:49:54:910] <0x1b>[0m␍␊

[08:49:54:910] E (169652) wifi:NAN WiFi stop␍␊

[08:49:54:926] I (169654) wifi:flush txq␍␊

[08:49:54:926] I (169656) wifi:stop sw txq␍␊

[08:49:54:926] I (169659) wifi:lmac stop hw txq␍␊

[08:49:55:086] tx cb unregister ret=0␍␊

[08:49:55:086] tx cb register ret=0␍␊

[08:49:55:086] I (169829) wifi:mode : softAP (ac:67:b2:71:61:69)␍␊

[08:49:55:086] I (169830) wifi:Total power save buffer number: 32␍␊

[08:49:55:086] I (169831) wifi:Init max length of beacon: 752/752␍␊

[08:49:55:102] I (169833) wifi:Init max length of beacon: 752/752␍␊

[08:49:55:134] <0x1b>[0;32mI (169876) FW_CMD: process_mgmt_tx: broadcast address, sending response immediately␍␊

[08:49:55:134] <0x1b>[0m␍␊

[08:49:55:166] <0x1b>[0;32mI (169916) FW_MAIN: Add key request␍␊

[08:49:55:166] <0x1b>[0m␍␊

[08:49:55:166] <0x1b>[0;32mI (169916) FW_CMD: set_key_internal:1600␍␊

[08:49:55:182] <0x1b>[0m␍␊

[08:49:55:182] <0x1b>[0;32mI (169916) FW_CMD: Setting GTK [1]␍␊

[08:49:55:182] <0x1b>[0m␍␊

[08:49:55:214] <0x1b>[0;32mI (169956) FW_MAIN: Set default key request␍␊

[08:49:55:214] <0x1b>[0m␍␊

[08:51:41:055] <0x1b>[0;32mI (275794) FW_MAIN: Scan request␍␊

[08:51:41:055] <0x1b>[0m␍␊

[08:51:41:055] <0x1b>[0;32mI (275794) FW_CMD: Scan failed ret=[0xffffffff]␍␊

[08:51:41:055] <0x1b>[0m␍␊

[08:58:48:914] <0x1b>[0;32mI (703654) FW_MAIN: Scan request␍␊

[08:58:48:914] <0x1b>[0m␍␊

[08:58:48:914] <0x1b>[0;32mI (703654) FW_CMD: Scan failed ret=[0xffffffff]␍␊

[08:58:48:930] <0x1b>[0m␍␊
mantriyogesh commented 6 months ago

@Shreyas0-7 , Can you please check this?

mantriyogesh commented 6 months ago

@danielhartwig ,

Apologies from my side, The NG softAP binary shared earlier, only handles softAP functionality and doesn't work with Station interface. This functionality is complex and yet development in progress for STA+AP, which may take time.

You can use ESP-Hosted-FG, for STA+AP use case.

ESP-Hosted-FG supports the station+softAP and can be easily evaluated using simple C or python user space application.

Full FG doc: https://github.com/espressif/esp-hosted/tree/master/esp_hosted_fg

mantriyogesh commented 6 months ago

Hello @danielhartwig ,

Station + softap combination is not supported in the NG binary I had shared earlier. Individually Station or Softap should work.

If requirement is for Station + softap, please use FG.

danielhartwig commented 5 months ago

Hello @mantriyogesh, do have a Release Date or Month for this feature-set ?

If requirement is for Station + softap, please use FG.

we are thinking about this possibility

mantriyogesh commented 5 months ago

FG: supports station & softap simultaneously.

NG: it may get delayed as it is a complicated scenario. No specific timeline to commit.