From 49d35fc6af0f01b1f423eabed3a34aaefa66e23a Mon Sep 17 00:00:00 2001 From: acinonyx Date: Mon, 1 Jun 2009 14:32:34 +0000 Subject: [hostap-driver] Add diversity option git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16255 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/hostap-driver/files/lib/wifi/hostap.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'package/hostap-driver/files') diff --git a/package/hostap-driver/files/lib/wifi/hostap.sh b/package/hostap-driver/files/lib/wifi/hostap.sh index cacc3baa8..0c7a9d37b 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 -- cgit v1.2.3