From patchwork Thu Sep 14 11:08:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Mukhin X-Patchwork-Id: 813786 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UpB1gASP"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xtG425Wzkz9sMN for ; Thu, 14 Sep 2017 21:08:34 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E0D9A8889C; Thu, 14 Sep 2017 11:08:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0EBq4obTFTCO; Thu, 14 Sep 2017 11:08:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 546CA88C0A; Thu, 14 Sep 2017 11:08:30 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 090851C01F1 for ; Thu, 14 Sep 2017 11:08:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 049EB891D2 for ; Thu, 14 Sep 2017 11:08:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZMEaN4VAQvx7 for ; Thu, 14 Sep 2017 11:08:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id EDD3E89614 for ; Thu, 14 Sep 2017 11:08:27 +0000 (UTC) Received: by mail-lf0-f68.google.com with SMTP id l196so1417300lfl.3 for ; Thu, 14 Sep 2017 04:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ePOlTx1N7RBEHXn4sI9BfVckx5FJBpAlZu637HMHI2A=; b=UpB1gASP8U+pEz5NaMji+XdMc94FHvF4cuWkKvMb5jSCL5Y9P0MjQ1eTA/fiowLMxf zaK5llBGAgk94cSnLb+7J1yelDy2+cPNhPWFMWRU9EnsBF+D8/LzTCSqwZ6JRWzdVhV3 REgko00MTovIm40zPDGb8b2QsbeS/1mqIqZR455QBZU+6jzq4uyVyQ9nFk1nphHLtncA b+padB3PelxhwZ1UN9sVhra7aBowAKGiDODG08CHthLbdcM3NKlkJmeIHM5d4sfKoecP 82HDcUhhNwJyyDMeOiNKiwAipLCntmVIgHBekxFD8/diq6qeb/m4+sGkYJYBkmBbmMWn rnaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ePOlTx1N7RBEHXn4sI9BfVckx5FJBpAlZu637HMHI2A=; b=g3T+reVeY8MA7zKoInEplPttiSmrysF91U9FaxipFYnYv7RwE6MW8RIQ2nuU7V984F QU7P+VvxxmiF6CTBEMtyzRFfE8Uyw154GiZR+ixrowfTcpTkWHvSvv97jKuHtKBkB/eu FTjYZIjSQj37EJ4OSIai9jqQeukamscLJ93YZzSKQ6uwxqCKQU7WBwrYJ7QASr613Nvy uxupNLb2zW6DfT+gh7kDL6y5MUmmPHKDJ0KYadlT4Xl1bv2y3u19M7a/uIHliXcX5Bcf OHTytjjFpe0Cf61Xv1VGqJZ4T0jSTqjjDxPGvMo/VhzEs2Vf4LiV0MgVBROkB7JJX6au N33w== X-Gm-Message-State: AHPjjUjxtc7YWFaqosnRRllXkMy7v0ekpTsX7f4e2AyZEFkCocth8wpb qq+aMDvUUyyHI3YW1p8= X-Google-Smtp-Source: AOwi7QA5QKsThlmFtM0n7FcA0XakT/WKIUiF2Wa/Bkx0Y1mkfBx/MrKnKd17EoPpaucFjU/16tYZmQ== X-Received: by 10.46.66.203 with SMTP id h72mr8991744ljf.108.1505387305763; Thu, 14 Sep 2017 04:08:25 -0700 (PDT) Received: from localhost.localdomain ([2a00:1838:30:a00:626d:c7ff:fecc:a711]) by smtp.gmail.com with ESMTPSA id i18sm3362451ljc.76.2017.09.14.04.08.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Sep 2017 04:08:25 -0700 (PDT) From: Alexander Mukhin To: buildroot@busybox.net Date: Thu, 14 Sep 2017 14:08:11 +0300 Message-Id: <20170914110811.1670-1-alexander.i.mukhin@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <874C29DC-F92F-46E8-9323-EF25658D8834@gmail.com> References: <874C29DC-F92F-46E8-9323-EF25658D8834@gmail.com> Cc: Alexander Mukhin Subject: [Buildroot] [PATCH] hostapd: add support for Realtek driver X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Since kernel drivers for Realtek wireless chips use non-standard interfaces, upstream hostapd does not support them. One have to apply an external patch for hostapd to work with these chips. See: https://github.com/pritambaral/hostapd-rtl871xdrv A configuration option is added to enable support for Realtek chips, and it's turned off by default. Signed-off-by: Alexander Mukhin Tested-by: Angelo Compagnucci --- DEVELOPERS | 3 +++ package/hostapd/Config.in | 5 +++++ package/hostapd/hostapd.hash | 1 + package/hostapd/hostapd.mk | 5 +++++ 4 files changed, 14 insertions(+) diff --git a/DEVELOPERS b/DEVELOPERS index 21eafc9d2..57fc74c25 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -68,6 +68,9 @@ F: package/putty/ N: Alexander Lukichev F: package/openpgm/ +N: Alexander Mukhin +F: package/hostapd/ + N: Alexander Varnin F: package/liblog4c-localtime/ diff --git a/package/hostapd/Config.in b/package/hostapd/Config.in index 62fbb66d6..cec2a123e 100644 --- a/package/hostapd/Config.in +++ b/package/hostapd/Config.in @@ -14,6 +14,11 @@ config BR2_PACKAGE_HOSTAPD if BR2_PACKAGE_HOSTAPD +config BR2_PACKAGE_HOSTAPD_DRIVER_RTW + bool "Enable rtl871xdrv driver" + help + Enable support for Realtek wireless chips. + config BR2_PACKAGE_HOSTAPD_ACS bool "Enable ACS" default y diff --git a/package/hostapd/hostapd.hash b/package/hostapd/hostapd.hash index fb891476b..83bfd0e7e 100644 --- a/package/hostapd/hostapd.hash +++ b/package/hostapd/hostapd.hash @@ -1,2 +1,3 @@ # Locally calculated sha256 01526b90c1d23bec4b0f052039cc4456c2fd19347b4d830d1d58a0a6aea7117d hostapd-2.6.tar.gz +sha256 e204da659d0583c71af23cb9b55536fe99598ee26a44104344f456e4d17350c6 rtlxdrv.patch diff --git a/package/hostapd/hostapd.mk b/package/hostapd/hostapd.mk index dc28d1323..40e28ee67 100644 --- a/package/hostapd/hostapd.mk +++ b/package/hostapd/hostapd.mk @@ -44,6 +44,11 @@ HOSTAPD_CONFIG_DISABLE += CONFIG_EAP_PWD HOSTAPD_CONFIG_EDITS += 's/\#\(CONFIG_TLS=\).*/\1internal/' endif +ifeq ($(BR2_PACKAGE_HOSTAPD_DRIVER_RTW),y) +HOSTAPD_PATCH = https://github.com/pritambaral/hostapd-rtl871xdrv/raw/master/rtlxdrv.patch +HOSTAPD_CONFIG_SET += CONFIG_DRIVER_RTW +endif + ifeq ($(BR2_PACKAGE_HOSTAPD_ACS),y) HOSTAPD_CONFIG_ENABLE += CONFIG_ACS endif