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 4chZ044QcKz30FD for ; Wed, 08 Oct 2025 13:40:52 +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) (Client CN "mail01.haj.ipfire.org", Issuer "R13" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4chZ011hhQz2xMF for ; Wed, 08 Oct 2025 13:40:49 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4chZ004KSGz2R; Wed, 08 Oct 2025 13:40:48 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1759930848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h1zDByFqqJh0wFCWBd7nnzKe20Cf4m50gyrL3YBvF5w=; b=jdVUMKDv4DQMT36NiC5u5X+bZ7hbI35Gxk6bnwR+QpomGVSPQqeMlG4LgwHI07ExPy2kWA wrnB5HCCyqASEJAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1759930848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h1zDByFqqJh0wFCWBd7nnzKe20Cf4m50gyrL3YBvF5w=; b=Xi2nhI18Z7+djp+xx9FVAVOkhA6rhs+lLKe1+XueA8oSUJLUJ31XCrGjx8ThXUei6sDWJf 1YwDiRG+ulHsgaMC4840dP9tGtp8QPfbAsEkO5GL8PJkuNCk8Mjr1uEVsz7x1KKSpdSB7g sGXjDf3kZ4vQz50y1rdrq9vnzcYGfwU9F9q7bqjta4Y/JpoVIP6OxM6bAOwJ1FMigA/5os UNy8W+nXrUhwvzHtCxk9Ia21j8+10mN85td/kr+AljG8dPbCy8GHBYPSM0Dzi/CzIo+3HH /x655xGVjq8XjrWurbTsqolSsfialONkjTC08wu+oUIGwWHBsJ4yyfSz2ixR1g== Content-Type: text/plain; charset=utf-8 Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: Mime-Version: 1.0 Subject: Re: hostapd not working in CU199 From: Michael Tremer In-Reply-To: Date: Wed, 8 Oct 2025 14:40:47 +0100 Cc: "IPFire: Development-List" Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Adolf Belka Hello Adolf, Thank you for testing this. Could you send me the output of =E2=80=9Ciw list=E2=80=9D as well = please? Either I have an error somewhere checking for the [MAX-AMSDU-7935] = capability, or the device claims to support it but actually doesn't. -Michael > On 8 Oct 2025, at 14:38, Adolf Belka wrote: >=20 > Hi Michael, >=20 > As mentioned at the monthly conf call I tested out today the wireless = function in CU199 but it won't start for me. >=20 > 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. >=20 > The first time I tried the update the WPA Passphrase was replaced with = /srv/web/ipfire/cgi-bin/ >=20 > The second time I tried the update it was overwritten by / which is = the version shown below. >=20 > The hostapd.conf with CU197 (with 63 character Passphrase redacted) = was >=20 > ------------------------------------- > driver=3Dnl80211 > ######################### basic hostapd configuration = ########################## > # > country_code=3DNL > country3=3D0x49 # indoor > ieee80211d=3D1 > ieee80211h=3D1 > channel=3D6 >=20 > # Always advertise TPC > local_pwr_constraint=3D3 > spectrum_mgmt_required=3D1 > hw_mode=3Dg > ieee80211n=3D1 > wmm_enabled=3D1 > ht_capab=3D > # Enable logging > logger_syslog=3D-1 > logger_syslog_level=3D4 > auth_algs=3D1 > ctrl_interface=3D/var/run/hostapd > ctrl_interface_group=3D0 > disassoc_low_ack=3D1 >=20 > # SSID > ssid2=3D"Jarnsaxa" > utf8_ssid=3D1 >=20 > noscan=3D1 > ieee80211w=3D0 > ######################### wpa hostapd configuration = ############################ > # > wpa=3D2 > = wpa_passphrase=3D*********************************************************= ****** > wpa_key_mgmt=3DWPA-PSK SAE > rsn_pairwise=3DCCMP > ------------------------------------- >=20 > After the update the file contained >=20 > ------------------------------------- > # Automatically generated configuration > # DO NOT EDIT > logger_syslog=3D-1 > logger_syslog_level=3D4 > driver=3Dnl80211 > country_code=3DNL > country3=3D0x49 > ieee80211d=3D1 > ieee80211h=3D1 > channel=3D6 > local_pwr_constraint=3D3 > spectrum_mgmt_required=3D1 > enable_background_radar=3D1 > wmm_enabled=3D1 > hw_mode=3Dg > ieee80211n=3D1 > ht_capab=3D[HT40+][HT40-] [GF] [RX-STBC1] [SHORT-GI-40] [TX-STBC] = [MAX-AMSDU-7935] [SHORT-GI-20] > auth_algs=3D1 > ctrl_interface=3D/var/run/hostapd > ctrl_interface_group=3D0 > disassoc_low_ack=3D1 > ssid2=3D"Jarnsaxa" > utf8_ssid=3D1 > noscan=3D1 > ieee80211w=3D0 > wpa=3D2 > wpa_passphrase=3D/ > wpa_key_mgmt=3DWPA-PSK WPA-PSK-SHA256 SAE > rsn_pairwise=3DCCMP > ssid_protection=3D1 > extended_key_id=3D1 > oce=3D7 > interworking=3D1 > access_network_type=3D0 > internet=3D1 > time_advertisement=3D2 > multicast_to_unicast=3D1 > ------------------------------------- >=20 > The wireless log not surprisingly had a problem with the passphrase >=20 > 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=3Dblue0 disabled_11b_rates=3D0= > 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=3Dblue0 disabled_11b_rates=3D0= > 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 >=20 > 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. >=20 > 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. >=20 > Regards, >=20 > Adolf. >=20