From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [IPv6:::1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4chYxt09vTz32lV for ; Wed, 08 Oct 2025 13:38:58 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail01.haj.ipfire.org", Issuer "R13" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4chYxp522Bz2xMF for ; Wed, 08 Oct 2025 13:38:54 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4chYxn2JtJz2R for ; Wed, 08 Oct 2025 13:38:53 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1759930733; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mmwWkd6YMJG1/JRAD1QEK9dXVJxzm8XgcvUEz2sZEyY=; b=ktMv5vqrDe7QxPrfFV7sGjoM2TQa+8dLHTDb4a7RsybVpIKv8L33BFOGU8BrN/npqnyNUK 8KPwQVVN7H3L9DAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1759930733; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mmwWkd6YMJG1/JRAD1QEK9dXVJxzm8XgcvUEz2sZEyY=; b=wlEvGlJIykzIe2y2mnoNUjXhYJoVOmd2N1zGhziL3lLX15+BqGcP7plKtVs/4DHSowD8Oj xryUrXlh5TM7Wsql7iEEtekOA3EzGL8nug5mzKEOmE6C+2DnM/CDdCBD/j726h5ilrpoRb 88Sni7MHoNRqSt4lCKFpZUd/uc5IRfy9KFhCGHdHTStYEgNui94IY6bjnQNiy2D172Sehm cwqR2GXMw5YGX/b8aGiBwgs6l7q6tfdvjeiJa3goSCqqC+npxaQOEUEC1509CAMnQQdlcE vaFH9nRCDJFWaF7lElODbndc1nH2OGWyV2jeQgwmeDMODscydSmIgeLF7lTenw== Message-ID: Date: Wed, 8 Oct 2025 15:38:49 +0200 Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Language: en-GB To: "IPFire: Development-List" From: Adolf Belka Subject: hostapd not working in CU199 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Michael, As mentioned at the monthly conf call I tested out today the wireless function in CU199 but it won't start for me. Basically the code overwrites the WPA Passphrase in hostapd.conf with a directory. In the WUI the passphrase is still correctly shown. It is correctly stored in the wlanap/settings file. It is just not correct in the hostapd.conf file. The first time I tried the update the WPA Passphrase was replaced with /srv/web/ipfire/cgi-bin/ The second time I tried the update it was overwritten by / which is the version shown below. The hostapd.conf with CU197 (with 63 character Passphrase redacted) was ------------------------------------- driver=nl80211 ######################### basic hostapd configuration ########################## # country_code=NL country3=0x49 # indoor ieee80211d=1 ieee80211h=1 channel=6 # Always advertise TPC local_pwr_constraint=3 spectrum_mgmt_required=1 hw_mode=g ieee80211n=1 wmm_enabled=1 ht_capab= # Enable logging logger_syslog=-1 logger_syslog_level=4 auth_algs=1 ctrl_interface=/var/run/hostapd ctrl_interface_group=0 disassoc_low_ack=1 # SSID ssid2="Jarnsaxa" utf8_ssid=1 noscan=1 ieee80211w=0 ######################### wpa hostapd configuration ############################ # wpa=2 wpa_passphrase=*************************************************************** wpa_key_mgmt=WPA-PSK SAE rsn_pairwise=CCMP ------------------------------------- After the update the file contained ------------------------------------- # Automatically generated configuration # DO NOT EDIT logger_syslog=-1 logger_syslog_level=4 driver=nl80211 country_code=NL country3=0x49 ieee80211d=1 ieee80211h=1 channel=6 local_pwr_constraint=3 spectrum_mgmt_required=1 enable_background_radar=1 wmm_enabled=1 hw_mode=g ieee80211n=1 ht_capab=[HT40+][HT40-] [GF] [RX-STBC1] [SHORT-GI-40] [TX-STBC] [MAX-AMSDU-7935] [SHORT-GI-20] auth_algs=1 ctrl_interface=/var/run/hostapd ctrl_interface_group=0 disassoc_low_ack=1 ssid2="Jarnsaxa" utf8_ssid=1 noscan=1 ieee80211w=0 wpa=2 wpa_passphrase=/ wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256 SAE rsn_pairwise=CCMP ssid_protection=1 extended_key_id=1 oce=7 interworking=1 access_network_type=0 internet=1 time_advertisement=2 multicast_to_unicast=1 ------------------------------------- The wireless log not surprisingly had a problem with the passphrase 15:00:00 hostapd: blue0: interface state ENABLED->DISABLED 15:00:00 hostapd: blue0: AP-DISABLED 15:00:00 hostapd: blue0: CTRL-EVENT-TERMINATING 15:00:00 hostapd: nl80211: deinit ifname=blue0 disabled_11b_rates=0 15:00:02 hostapd: blue0: interface state UNINITIALIZED->COUNTRY_UPDATE 15:00:02 hostapd: Driver does not support configured HT capability [MAX-AMSDU-7935] 15:00:02 hostapd: blue0: interface state COUNTRY_UPDATE->DISABLED 15:00:02 hostapd: blue0: AP-DISABLED 15:00:02 hostapd: blue0: Unable to setup interface. 15:00:02 hostapd: blue0: interface state DISABLED->DISABLED 15:00:02 hostapd: blue0: AP-DISABLED 15:00:02 hostapd: blue0: CTRL-EVENT-TERMINATING 15:00:02 hostapd: hostapd_free_hapd_data: Interface blue0 wasn't started 15:00:02 hostapd: nl80211: deinit ifname=blue0 disabled_11b_rates=0 15:04:57 hostapd: Line 27: invalid WPA passphrase length 1 (expected 8..63) 15:04:57 hostapd: WPA-PSK enabled, but PSK or passphrase is not configured. 15:04:57 hostapd: 2 errors found in configuration file '/etc/hostapd.conf' 15:04:57 hostapd: Failed to set up interface with /etc/hostapd.conf 15:04:58 hostapd: Failed to initialize interface The log also mentions that the driver for the wireless chip in the Prime unit doesn't support a configured HT capability. I am presuming that that issue is the second error hostapd found in the configuration file. I have also just noticed that the hostapd.conf file that was used in CU197 is still physically present in /var/ipfire/wlanap/ while the new version is in /etc. Probably should delete the version from the old location if it is being replaced by the new version. Regards, Adolf.