From patchwork Wed May 13 11:57:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Yeryomin X-Patchwork-Id: 471841 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.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4250B140663 for ; Wed, 13 May 2015 21:58:30 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=B5kRXJnj; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id EEDC2284E23; Wed, 13 May 2015 13:56:09 +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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id F13CF284731 for ; Wed, 13 May 2015 13:56:03 +0200 (CEST) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 13 May 2015 13:56:03 +0200 (CEST) Received: by lbbqq2 with SMTP id qq2so27547569lbb.3 for ; Wed, 13 May 2015 04:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=PPpa1Yy/ldShE/6l+smF2WcGQzbW2P+oCp5DyUjGzlI=; b=B5kRXJnjl0i2ySgshXK3u+S+rwjAWSEAl8yJY6SIqzQwDW+iebHKPGpfyhfYPwM5x6 iQdDs++EYw504w3xt6PESpmfNSvr/spyUl37Y4Oxv+qq8FRkUW+7pf0zB1eqNBnZqy7Y TklwTh5UXsmxGGWLr31RCBxxm+pIhR9M+xzhC3elnkEeiJTQjOvr87UG5B8X1rF7vbfZ GfRLYLqZn7KQ/eYOdRZB3ePYGSJlmKRxnsgSGpRdwLEMl2uyGlPorfcd8b+nlFscPG9r h/CR69P010fL71Dv+BZnO0Kuc6AjAMXSOjjHukjF/+yDILnSk4E6xKRxlQtKJ1as5ANm unUA== X-Received: by 10.112.139.1 with SMTP id qu1mr15823146lbb.8.1431518239265; Wed, 13 May 2015 04:57:19 -0700 (PDT) Received: from localhost.localdomain ([213.175.90.142]) by mx.google.com with ESMTPSA id o8sm4914042lal.2.2015.05.13.04.57.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 May 2015 04:57:18 -0700 (PDT) From: Roman Yeryomin X-Google-Original-From: Roman Yeryomin To: OpenWrt Development List Date: Wed, 13 May 2015 14:57:09 +0300 Message-Id: <1431518229-12192-1-git-send-email-roman@advem.lv> X-Mailer: git-send-email 2.1.4 Subject: [OpenWrt-Devel] [PATCH 3/3] hostapd: allow to set vendor_elements via /etc/config/wireless 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: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Roman Yeryomin --- package/network/services/hostapd/files/netifd.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh index 23d2e7e..1d1b098 100644 --- a/package/network/services/hostapd/files/netifd.sh +++ b/package/network/services/hostapd/files/netifd.sh @@ -164,6 +164,8 @@ hostapd_common_add_bss_config() { config_add_int mcast_rate config_add_array basic_rate config_add_array supported_rates + + config_add_string 'vendor_elements:string' } hostapd_set_bss_options() { @@ -437,6 +439,9 @@ hostapd_set_bss_options() { ) > "$_macfile" } + json_get_vars vendor_elements + [ -n "$vendor_elements" ] && append bss_conf "vendor_elements=$vendor_elements" "$N" + append "$var" "$bss_conf" "$N" return 0 }