From addfc9235e8ceb0317c9016cf4ad649989241b8d Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 28 Sep 2012 18:29:22 +0000 Subject: mac80211: add uci support for configuring antenna gain git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33587 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/mac80211/Makefile | 2 +- package/mac80211/files/lib/wifi/mac80211.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'package/mac80211') diff --git a/package/mac80211/Makefile b/package/mac80211/Makefile index 8945fb0ae6..e490fbb6f0 100644 --- a/package/mac80211/Makefile +++ b/package/mac80211/Makefile @@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=mac80211 PKG_VERSION:=2012-09-07 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources PKG_MD5SUM:=59e0a114ee4b755a6e47cb6cd0f32ebc diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index 6dfe2a2caf..1b0bea70ed 100644 --- a/package/mac80211/files/lib/wifi/mac80211.sh +++ b/package/mac80211/files/lib/wifi/mac80211.sh @@ -295,6 +295,7 @@ enable_mac80211() { config_get distance "$device" distance config_get txantenna "$device" txantenna all config_get rxantenna "$device" rxantenna all + config_get antenna_gain "$device" antenna_gain 0 config_get frag "$device" frag config_get rts "$device" rts find_mac80211_phy "$device" || return 0 @@ -321,6 +322,7 @@ enable_mac80211() { } iw phy "$phy" set antenna $txantenna $rxantenna >/dev/null 2>&1 + iw phy "$phy" set antenna_gain $antenna_gain [ -n "$distance" ] && iw phy "$phy" set distance "$distance" [ -n "$frag" ] && iw phy "$phy" set frag "${frag%%.*}" -- cgit v1.2.3