diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-09-28 18:29:22 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-09-28 18:29:22 +0000 |
commit | a31bdfbea0508a0a2501eb0d7a1d23d9fdeb9a9e (patch) | |
tree | 3df67f20ceedc2a8a5680247366ad06787902dbd /package/mac80211 | |
parent | de6a5279d131be0dcad01d6eb47c066f80070105 (diff) | |
download | mtk-20170518-a31bdfbea0508a0a2501eb0d7a1d23d9fdeb9a9e.zip mtk-20170518-a31bdfbea0508a0a2501eb0d7a1d23d9fdeb9a9e.tar.gz mtk-20170518-a31bdfbea0508a0a2501eb0d7a1d23d9fdeb9a9e.tar.bz2 |
mac80211: add uci support for configuring antenna gain
SVN-Revision: 33587
Diffstat (limited to 'package/mac80211')
-rw-r--r-- | package/mac80211/Makefile | 2 | ||||
-rw-r--r-- | package/mac80211/files/lib/wifi/mac80211.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/package/mac80211/Makefile b/package/mac80211/Makefile index 8945fb0..e490fbb 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 6dfe2a2..1b0bea7 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%%.*}" |