aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostap-driver
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2009-06-01 14:32:34 +0000
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>2009-06-01 14:32:34 +0000
commit416abd8e93fa2e04548f9e976baa65ab00ebaf34 (patch)
treeb93d7ed572ca40e16fa9ed5b353ca79721b3508c /package/hostap-driver
parent7e0173bdd3344f54d6b06f700febf63a36e0ff9a (diff)
downloadmaster-187ad058-416abd8e93fa2e04548f9e976baa65ab00ebaf34.tar.gz
master-187ad058-416abd8e93fa2e04548f9e976baa65ab00ebaf34.tar.bz2
master-187ad058-416abd8e93fa2e04548f9e976baa65ab00ebaf34.zip
[hostap-driver] Add diversity option
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16255 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 cacc3baa8b..0c7a9d37b4 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