From 63976f603a4c947f135ae82bc7d36410ec61a50f Mon Sep 17 00:00:00 2001 From: soma Date: Wed, 25 Feb 2015 20:00:33 +0100 Subject: [PATCH] contrib/meshwizard: add madwifi iface options if needed --- contrib/package/meshwizard/Makefile | 2 +- .../meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/package/meshwizard/Makefile b/contrib/package/meshwizard/Makefile index 45d5f2162..9d74fe547 100644 --- a/contrib/package/meshwizard/Makefile +++ b/contrib/package/meshwizard/Makefile @@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=meshwizard -PKG_RELEASE:=0.1.0 +PKG_RELEASE:=0.1.1 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh index 707b7b72c..41feb8665 100755 --- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_wifi.sh @@ -59,6 +59,11 @@ uci set wireless.$net\_iface=wifi-iface # create new wifi-iface for $net from defaults set_defaults "wifi_iface_" wireless.$net\_iface +# overwrite some settings for type atheros (madwifi) +if [ "$type" = "atheros" ]; then + set_defaults "madwifi_wifi_iface_" wireless.${net} +fi + # overwrite defaults bssid="$($dir/helpers/gen_bssid.sh $channel $community)" -- 2.11.0