From patchwork Thu Jul 16 18:22:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Merten Lohse X-Patchwork-Id: 496813 X-Patchwork-Delegate: jow@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C685F140773 for ; Fri, 17 Jul 2015 04:22:49 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 64B65280219; Thu, 16 Jul 2015 20:22:19 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 3090B2899EF for ; Thu, 16 Jul 2015 20:22:13 +0200 (CEST) X-policyd-weight: using cached result; rate: -7.6 Received: from home1.lhcode.de (home1.lhcode.de [5.45.109.157]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 16 Jul 2015 20:22:12 +0200 (CEST) Received: from [10.10.4.208] (kel30.kel.studentenwerk-goettingen.de [134.76.63.190]) by home1.lhcode.de (Postfix) with ESMTPSA id 34026C0062; Thu, 16 Jul 2015 20:22:36 +0200 (CEST) Message-ID: <55A7F664.20503@green-side.de> Date: Thu, 16 Jul 2015 20:22:28 +0200 From: Leon Merten Lohse User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: openwrt-devel@lists.openwrt.org References: <55A7B791.5040302@openwrt.org> In-Reply-To: <55A7B791.5040302@openwrt.org> Subject: Re: [OpenWrt-Devel] [PATCH] hostapd: fix #18197, no auth server (BB) X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" On 07/16/2015 03:54 PM, Felix Fietkau wrote: > The patch is line wrapped. Please fix and resend. Hope this works now. Leon diff --git a/package/network/services/hostapd/patches/700-radius_reconnect.patch b/package/network/services/hostapd/patches/700-radius_reconnect.patch new file mode 100644 index 0000000..acc9804 --- /dev/null +++ b/package/network/services/hostapd/patches/700-radius_reconnect.patch @@ -0,0 +1,22 @@ +--- a/src/radius/radius_client.c ++++ b/src/radius/radius_client.c +@@ -658,6 +658,9 @@ int radius_client_send(struct radius_cli + } + + if (msg_type == RADIUS_ACCT || msg_type == RADIUS_ACCT_INTERIM) { ++ if (conf->acct_server && radius->acct_sock < 0) ++ radius_client_init_acct(radius); ++ + if (conf->acct_server == NULL || radius->acct_sock < 0) { + hostapd_logger(radius->ctx, NULL, + HOSTAPD_MODULE_RADIUS, +@@ -672,6 +675,9 @@ int radius_client_send(struct radius_cli + s = radius->acct_sock; + conf->acct_server->requests++; + } else { ++ if (conf->auth_server && radius->auth_sock < 0) ++ radius_client_init_auth(radius); ++ + if (conf->auth_server == NULL || radius->auth_sock < 0) { + hostapd_logger(radius->ctx, NULL, + HOSTAPD_MODULE_RADIUS,