wlanpi@wlanpi-d82:~ $ sudo profiler -c 6
[sudo] password for wlanpi:
2026-02-02 02:52:23,279 [INFO] start: Profiler v2.0.0 | Python 3.9.2 | Linux aarch64
2026-02-02 02:52:23,295 [INFO] get_app_data_paths: Using files_path from config file: /var/www/html/profiler
2026-02-02 02:52:28,400 [INFO] start: Detected country code: RU
2026-02-02 02:52:28,401 [INFO] start: Starting in hostapd AP mode
2026-02-02 02:52:28,568 [INFO] start: Generated hostapd config: /tmp/profiler_hostapd_15593.conf
2026-02-02 02:52:28,569 [INFO] start: Starting hostapd: /opt/wlanpi-profiler/bin/hostapd /tmp/profiler_hostapd_15593.conf
2026-02-02 02:52:28,790 [ERROR] start: [HOSTAPD] FATAL: Failed to set beacon parameters
2026-02-02 02:52:28,790 [ERROR] start: [HOSTAPD] Failed to set beacon parameters
2026-02-02 02:52:28,829 [ERROR] start: [HOSTAPD] FATAL: Interface initialization failed
2026-02-02 02:52:28,829 [ERROR] start: [HOSTAPD] Interface initialization failed
2026-02-02 02:52:30,587 [ERROR] start: Failed to start hostapd: Failed to start hostapd: Hostapd died immediately after startup.
Exit code: 1
Configuration error or interface already in use.
(See hostapd logs above for details)
2026-02-02 02:52:30,717 [INFO] profiler.status: Last session file written: failed (code 1)
Feb 02 11:56:20 wlanpi-d82 sudo[26591]: root : PWD=/opt/wlanpi-fpms/lib/python3.9/site-packages/fpms ; USER=root ; COMMAND=/opt/wlanpi-common/networkinfo/reachability.sh
Feb 02 11:56:20 wlanpi-d82 sudo[26591]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
Feb 02 11:56:21 wlanpi-d82 sudo[26164]: wlanpi : TTY=pts/1 ; PWD=/home/wlanpi ; USER=root ; COMMAND=/usr/sbin/profiler -c 6
Feb 02 11:56:21 wlanpi-d82 sudo[26164]: pam_unix(sudo:session): session opened for user root(uid=0) by wlanpi(uid=1000)
Feb 02 11:56:22 wlanpi-d82 sudo[26591]: pam_unix(sudo:session): session closed for user root
Feb 02 11:56:24 wlanpi-d82 systemd-networkd[255]: wlan0: Link DOWN
Feb 02 11:56:24 wlanpi-d82 dhclient[3150]: receive_packet failed on wlan0: Network is down
Feb 02 11:56:24 wlanpi-d82 systemd-networkd[255]: wlan0: Link UP
Feb 02 11:56:26 wlanpi-d82 systemd-networkd[255]: wlan0profiler: Link UP
Feb 02 11:56:26 wlanpi-d82 systemd-networkd[255]: wlan0profiler: Gained carrier
Feb 02 11:56:26 wlanpi-d82 dhclient[3150]: receive_packet failed on wlan0: Network is down
Feb 02 11:56:26 wlanpi-d82 systemd-networkd[255]: wlan0: Link DOWN
Feb 02 11:56:26 wlanpi-d82 systemd-networkd[255]: wlan0: Link UP
Feb 02 11:56:26 wlanpi-d82 dhclient[3150]: receive_packet failed on wlan0: Network is down
Feb 02 11:56:26 wlanpi-d82 systemd-networkd[255]: wlan0: Link DOWN
Feb 02 11:56:26 wlanpi-d82 systemd-networkd[255]: wlan0: Link UP
Feb 02 11:56:28 wlanpi-d82 systemd-networkd[255]: wlan0profiler: Link DOWN
Feb 02 11:56:28 wlanpi-d82 systemd-networkd[255]: wlan0profiler: Lost carrier
Feb 02 11:56:28 wlanpi-d82 ModemManager[649]: <info> [base-manager] port wlan0profiler released by device '/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
Feb 02 11:56:28 wlanpi-d82 ModemManager[649]: <warn> [plugin-manager] task 6,wlan0profiler: failed: Operation was cancelled
Feb 02 11:56:28 wlanpi-d82 ModemManager[649]: <info> [base-manager] couldn't check support for device '/sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0': Operation was cancelled
Feb 02 11:56:29 wlanpi-d82 sudo[26164]: pam_unix(sudo:session): session closed for user root
wlanpi@wlanpi-d82:~ $ sudo profiler -c 6 --debug
2026-02-02 12:21:38,179 [DEBUG] start: Environment: {"profiler": {"version": "2.0.0"}, "python": {"version": "3.9.2", "implementation": "CPython", "compiler": "GCC 10.2.1 20210110", "build": ["default", "Jan 25 2026 13:37:52"], "executable": "/opt/wlanpi-profiler/bin/python"}, "system": {"platform": "Linux", "release": "6.12.13-v8-wlanpi+", "version": "#1 SMP PREEMPT Fri Feb 14 07:48:47 UTC 2025", "architecture": "aarch64", "processor": "Cortex-A72", "cpu_count": 4}, "runtime": {"timestamp": "2026-02-02T12:21:38.176710", "utc_offset": "+0300"}, "dependencies": {"scapy": "2.7.0"}}
2026-02-02 12:21:38,179 [INFO] start: Profiler v2.0.0 | Python 3.9.2 | Linux aarch64
2026-02-02 12:21:38,180 [DEBUG] start: Arguments: {'command': None, 'pytest': False, 'channel': 6, 'frequency': None, 'interface': None, 'ssid': None, 'passphrase': None, 'config': '/etc/wlanpi-profiler/config.ini', 'files_path': None, 'hostname_ssid': False, 'debug': True, 'expert': False, 'no_interface_prep': False, 'listen_only': False, 'ft_enabled': False, 'ft_disabled': False, 'security_mode': None, 'he_enabled': False, 'he_disabled': False, 'be_enabled': False, 'be_disabled': False, 'profiler_tlv_disabled': False, 'clean': False, 'files': False, 'yes': False, 'oui_update': False, 'pcap_analysis': None, 'no_bpf_filters': False, 'list_interfaces': False, 'ap_mode': False, 'fakeap': False, 'hostapd_config': None}
2026-02-02 12:21:38,193 [INFO] get_app_data_paths: Using files_path from config file: /var/www/html/profiler
2026-02-02 12:21:38,201 [DEBUG] start: profiler.manager pid 50443
2026-02-02 12:21:38,204 [DEBUG] verify_reporting_directories: Verified directory structure: /var/www/html/profiler
2026-02-02 12:21:38,204 [DEBUG] start: config {'GENERAL': {'channel': 6, 'interface': 'wlan0', 'ssid': 'Profiler d82', 'passphrase': 'profiler', 'security_mode': 'ft-wpa3-mixed', 'ft_disabled': False, 'he_disabled': False, 'be_disabled': False, 'profiler_tlv_disabled': False, 'listen_only': False, 'hostname_ssid': False, 'files_path': [PosixPath('/var/www/html/profiler')], 'debug': True, 'frequency': 0, 'ap_mode': True, 'fakeap': False}}
2026-02-02 12:21:40,267 [DEBUG] interface: wlan0 has a mac80211 stack
2026-02-02 12:21:40,268 [DEBUG] interface: phy0 maps to provided wlan0
2026-02-02 12:21:40,268 [DEBUG] interface: new wlan0profiler will map to phy0
2026-02-02 12:21:40,268 [DEBUG] interface: frequency is set to 2437 which maps to channel 6
2026-02-02 12:21:40,321 [DEBUG] interface: mac: e4:4a:e0:45:d9:95, channel: 6, driver: iwlwifi, driver-version: 6.12.13-v8-wlanpi+, chipset: Intel Wi-Fi 7 802.11be AX1775*/AX1790*/BE20*/BE401/BE1750* 2x2 rev 1a
2026-02-02 12:21:40,321 [DEBUG] start: Staging interface for hostapd AP mode
2026-02-02 12:21:40,321 [DEBUG] interface: start stage_interface_hostapd
2026-02-02 12:21:40,321 [DEBUG] interface: run: ip link set wlan0 down
2026-02-02 12:21:40,388 [DEBUG] interface: run: iw dev wlan0 set type managed
2026-02-02 12:21:40,400 [DEBUG] interface: run: ip link set wlan0 up
2026-02-02 12:21:40,416 [DEBUG] interface: run: iw wlan0 scan
2026-02-02 12:21:42,232 [DEBUG] interface: run: iw dev wlan0 set type __ap
2026-02-02 12:21:42,344 [DEBUG] interface: run: ip link set wlan0 up
2026-02-02 12:21:42,457 [DEBUG] interface: run: iw phy phy0 interface add wlan0profiler type monitor
2026-02-02 12:21:42,571 [DEBUG] interface: run: ip link set wlan0profiler up
2026-02-02 12:21:42,708 [DEBUG] interface: monitor interface wlan0profiler created (operstate: unknown)
2026-02-02 12:21:42,709 [DEBUG] interface: finish stage_interface_hostapd
2026-02-02 12:21:42,709 [DEBUG] start: finish interface setup and staging for hostapd...
2026-02-02 12:21:42,730 [INFO] start: Detected country code: RU
2026-02-02 12:21:42,731 [INFO] start: Starting in hostapd AP mode
2026-02-02 12:21:42,733 [DEBUG] start: Sniffer set to listen-only mode (hostapd handles all TX)
2026-02-02 12:21:42,734 [DEBUG] update_ssid_record: updated /run/wlanpi-profiler.ssid record with: Profiler d82
2026-02-02 12:21:42,832 [INFO] start: Generated hostapd config: /tmp/profiler_hostapd_50443.conf
2026-02-02 12:21:42,832 [DEBUG] start: Created ctrl_interface directory: /run/wlanpi-profiler/hostapd
2026-02-02 12:21:42,833 [INFO] start: Starting hostapd: /opt/wlanpi-profiler/bin/hostapd /tmp/profiler_hostapd_50443.conf
2026-02-02 12:21:42,844 [DEBUG] start: Started hostapd log streaming threads
2026-02-02 12:21:42,919 [DEBUG] start: [HOSTAPD] wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
2026-02-02 12:21:42,966 [ERROR] start: [HOSTAPD] FATAL: Failed to set beacon parameters
2026-02-02 12:21:42,966 [ERROR] start: [HOSTAPD] Failed to set beacon parameters
2026-02-02 12:21:42,997 [ERROR] start: [HOSTAPD] FATAL: Interface initialization failed
2026-02-02 12:21:42,998 [ERROR] start: [HOSTAPD] Interface initialization failed
2026-02-02 12:21:42,998 [DEBUG] start: [HOSTAPD] wlan0: interface state COUNTRY_UPDATE->DISABLED
2026-02-02 12:21:42,998 [DEBUG] start: [HOSTAPD] wlan0: AP-DISABLED
2026-02-02 12:21:42,998 [DEBUG] start: [HOSTAPD] wlan0: Unable to setup interface.
2026-02-02 12:21:42,998 [DEBUG] start: [HOSTAPD] wlan0: interface state DISABLED->DISABLED
2026-02-02 12:21:42,998 [DEBUG] start: [HOSTAPD] wlan0: AP-DISABLED
2026-02-02 12:21:42,998 [DEBUG] start: [HOSTAPD] wlan0: CTRL-EVENT-TERMINATING
2026-02-02 12:21:42,998 [DEBUG] start: [HOSTAPD] hostapd_free_hapd_data: Interface wlan0 wasn't started
2026-02-02 12:21:42,998 [DEBUG] start: [HOSTAPD] nl80211: deinit ifname=wlan0 disabled_11b_rates=0
2026-02-02 12:21:44,847 [ERROR] start: Failed to start hostapd: Failed to start hostapd: Hostapd died immediately after startup.
Exit code: 1
Configuration error or interface already in use.
(See hostapd logs above for details)
2026-02-02 12:21:44,851 [DEBUG] removeVif: Removing monitor vif ...
2026-02-02 12:21:44,852 [DEBUG] interface: run: ip link set wlan0profiler down
2026-02-02 12:21:44,909 [DEBUG] interface: run: iw dev wlan0profiler del
2026-02-02 12:21:44,968 [DEBUG] interface: run: ip link set wlan0 up
2026-02-02 12:21:44,991 [INFO] profiler.status: Last session file written: failed (code 1)
What happened?
Reported by @gcastle2007 in #238
Relevant log output
How often does this bug happen?
Every time
What version of the app are you using?
v2.0.0-1
Contributions
Code of Conduct