1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 01:01:52 +02:00

[hostap-driver] Add diversity option

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16255 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
acinonyx 2009-06-01 14:32:34 +00:00
parent c5757539b2
commit 49d35fc6af

View File

@ -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