From: Vasilis Tsiligiannis Date: Mon, 1 Jun 2009 14:32:34 +0000 (+0000) Subject: Add diversity option X-Git-Tag: reboot~23333 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ca96019f8eba8c58773feac8b037c6f887a1977f;p=openwrt%2Fstaging%2Flynxis.git Add diversity option SVN-Revision: 16255 --- 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