[patchteam] WING version bump / updates for HNA and fixes for some scripts

git-svn-id: svn://svn.openwrt.org/openwrt/packages@22868 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
dingo
2010-09-01 14:41:49 +00:00
parent ca799d93a3
commit 82d12458d3
3 changed files with 128 additions and 129 deletions

View File

@ -10,9 +10,9 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=wing
ifneq ($(CONFIG_WING_STABLE),)
PKG_VERSION:=20100805
PKG_RELEASE:=1
PKG_REV:=21aae2ae5bea85426aded47b055b4fe62c2cea2e
PKG_VERSION:=20100827
PKG_RELEASE:=2
PKG_REV:=6f238baa6c4f357f1fe0e55f1b71db7816747b33
else
PKG_VERSION:=$(shell date +%Y%m%d)
PKG_RELEASE:=1
@ -33,7 +33,7 @@ define Package/wing
TITLE:=Wireless mesh networking toolkit
SECTION:=net
CATEGORY:=Network
MAINTAINER:=Roberto Riggio <roberto.riggio@create-net.org>
MAINTAINER:=Roberto Riggio (roberto.riggio@create-net.org)
DEPENDS:=+kmod-tun
URL:=http://www.wing-project.org/
endef

View File

@ -125,14 +125,13 @@ wing_template_available() { # prefix, template, default
wing_list_interfaces() {
local channel freq hwmode hwaddr ifname mode
config_get ifname $1 ifname
config_get mode $1 mode
config_get device $1 device
config_get_bool up $1 up
[ "$up" = "1" -a "$mode" = "monitor" ] || return 0
config_get hwmode $device hwmode "11b"
config_get channel $device channel "1"
freq=$(iwlist $ifname freq | sed -n "s/^.*Channel 0*$channel : \([0-9.]*\).*/\1/p" | awk '{print $1*1000}')
config_get ifname $1 ifname
config_get device $1 device
config_get hwmode $device hwmode "11bg"
freq=$(iwlist $ifname freq | grep "Current Frequency" | sed -n "s/^.*Current Frequency:\([0-9.]*\) GHz (Channel \([0-9]*\))/\1/p" | awk '{print $1*1000}')
hwaddr=$(/sbin/ifconfig $ifname 2>&1 | sed -n 's/^.*HWaddr \([0-9A-Za-z\-]*\).*/\1/p' | sed -e 's/\-/:/g' | cut -c1-17)
freqs=${freqs:+"$freqs "}$freq
hwmodes=${hwmodes:+"$hwmodes "}$hwmode