summaryrefslogtreecommitdiff
path: root/package/hostap-driver
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2009-06-01 14:32:34 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2009-06-01 14:32:34 +0000
commitca96019f8eba8c58773feac8b037c6f887a1977f (patch)
treec8d62d197f51a8f1e3775e31c07373d127df95f0 /package/hostap-driver
parent954717298db3c733e3a6852ca536f5227de151ff (diff)
downloadmtk-20170518-ca96019f8eba8c58773feac8b037c6f887a1977f.zip
mtk-20170518-ca96019f8eba8c58773feac8b037c6f887a1977f.tar.gz
mtk-20170518-ca96019f8eba8c58773feac8b037c6f887a1977f.tar.bz2
Add diversity option
SVN-Revision: 16255
Diffstat (limited to 'package/hostap-driver')
-rwxr-xr-xpackage/hostap-driver/files/lib/wifi/hostap.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/hostap-driver/files/lib/wifi/hostap.sh b/package/hostap-driver/files/lib/wifi/hostap.sh
index cacc3ba..0c7a9d3 100755
--- a/package/hostap-driver/files/lib/wifi/hostap.sh
+++ b/package/hostap-driver/files/lib/wifi/hostap.sh
@@ -54,9 +54,13 @@ enable_prism2() {
local device="$1"
config_get rxantenna "$device" rxantenna
- [ -n "$rxantenna" ] && iwpriv $device antsel_rx "$rxantenna"
-
config_get txantenna "$device" txantenna
+ config_get_bool diversity "$device" diversity
+ [ -n "$diversity" ] && {
+ rxantenna="1"
+ txantenna="1"
+ }
+ [ -n "$rxantenna" ] && iwpriv $device antsel_rx "$rxantenna"
[ -n "$txantenna" ] && iwpriv $device antsel_tx "$txantenna"
config_get channel "$device" channel