From patchwork Sat Nov 25 10:50:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Mukhin X-Patchwork-Id: 841223 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.136; helo=silver.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="SuDHUgnJ"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ykVkm0vm6z9s7G for ; Sat, 25 Nov 2017 22:11:59 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B747B2DC95; Sat, 25 Nov 2017 11:11:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OQhMrCFFRjCN; Sat, 25 Nov 2017 11:11:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id AF62326C40; Sat, 25 Nov 2017 11:11:53 +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 831981C26C5 for ; Sat, 25 Nov 2017 10:50:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6941288EC2 for ; Sat, 25 Nov 2017 10:50:47 +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 s+r5WGNILGfi for ; Sat, 25 Nov 2017 10:50:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf0-f65.google.com (mail-lf0-f65.google.com [209.85.215.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5720D88EBD for ; Sat, 25 Nov 2017 10:50:42 +0000 (UTC) Received: by mail-lf0-f65.google.com with SMTP id i14so27835816lfc.1 for ; Sat, 25 Nov 2017 02:50:42 -0800 (PST) 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=ySjnWhTCZntJWKlmec/klaboGt8TKnjVznY1G5+0fug=; b=SuDHUgnJ+6PbmQqDU9YdzjELcPpKWwUc140TMMKXBIbAulTcZ8uHopSFiDdSmKtOsh u1wb+uQu1atuHbzMw720Pms97KdmXM4sObm3knHxQCT+aQ8MyEeuRXHOX4nAvrDeHyRD yCQUVRWalf+f6iSfRaItQsNqm0PnS80OOTcYJU0Akr4VysbRWgH4xwX7r8MKjE9HMRV4 S2DeS+sBfkKpjMCdQnN/ZA+HQVS8Wt4yPA8K8H52fWVSnsSUln5VkcIRWwFM7gFEnvZx Q3VqGVMM0J/2WEuEJjZ7+++1dS9DfJUB+wRsGAZERYnT5ZIv+Ch4foZy+xGl5/qbbb46 eKBA== 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=ySjnWhTCZntJWKlmec/klaboGt8TKnjVznY1G5+0fug=; b=uQcVOaUePzS4q8jGAXipQbarWfIXc77q6IrGuN/+mUVm+2v/8NYdmz7+VWtuk2nRWu oJXKGwuedtUxgpubvI8+ALdT25Th5y4UAHaYyNk8Xm3aflyOEnQlyIu0Uzb07xwbFxXF ATm3iIIrgNTqHkaBy3f0KzasaOqvMnui4Zr1lrd7GC8gDj/rCAFksSXlyqbmJAieuWMu iFyj6s61kKJ2yZClOQAzFhbuamG1Hp0B+zboMLuZIWngdYPHpn+ZrXuEoNI3JjF/zU2A KBwj638MJf53Ywz1g8PyAQTK10FFfekez9GCofN7asNEOLSdcwlFIFN+iTky1O+pSGZc CRfw== X-Gm-Message-State: AJaThX7K30sr7d7bXM1db595usiK6mqNQdJj39magEybKEs12bjreEuP KglUC8ONU60CLh1VJTeT3kORUg== X-Google-Smtp-Source: AGs4zMZVAxoxPWjl3MhPNgYub63r5qqq9mLdJcUamA4vzaRd+iSQaXLL5N2AqNl6ikrIvlgiu1kg/A== X-Received: by 10.46.82.132 with SMTP id n4mr11996582lje.31.1511607040162; Sat, 25 Nov 2017 02:50:40 -0800 (PST) Received: from localhost.localdomain ([2a00:1838:30:a00:626d:c7ff:fecc:a711]) by smtp.gmail.com with ESMTPSA id p62sm4070199lfd.39.2017.11.25.02.50.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Nov 2017 02:50:39 -0800 (PST) From: Alexander Mukhin To: buildroot@busybox.net Date: Sat, 25 Nov 2017 13:50:12 +0300 Message-Id: <20171125105012.1313-1-alexander.i.mukhin@gmail.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171124215828.47855fdd@windsurf.lan> References: <20171124215828.47855fdd@windsurf.lan> Subject: [Buildroot] [PATCH] hostapd: add support for Realtek driver X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Mukhin 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 --- 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 7621f969a0..407641449f 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -79,6 +79,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 1609d0df5d..40c7015e73 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 b20c89b184..84647a9c47 100644 --- a/package/hostapd/hostapd.hash +++ b/package/hostapd/hostapd.hash @@ -2,3 +2,4 @@ sha256 01526b90c1d23bec4b0f052039cc4456c2fd19347b4d830d1d58a0a6aea7117d hostapd-2.6.tar.gz sha256 529113cc81256c6178f3c1cf25dd8d3f33e6d770e4a180bd31c6ab7e4917f40b rebased-v2.6-0001-hostapd-Avoid-key-reinstallation-in-FT-handshake.patch sha256 147c8abe07606905d16404fb2d2c8849796ca7c85ed8673c09bb50038bcdeb9e rebased-v2.6-0005-Fix-PTK-rekeying-to-generate-a-new-ANonce.patch +sha256 e204da659d0583c71af23cb9b55536fe99598ee26a44104344f456e4d17350c6 rtlxdrv.patch diff --git a/package/hostapd/hostapd.mk b/package/hostapd/hostapd.mk index 3f94c8c4b7..0ed1631421 100644 --- a/package/hostapd/hostapd.mk +++ b/package/hostapd/hostapd.mk @@ -47,6 +47,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