X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8433787edb23d5f8ca237cd9b144e2da9117f26c..ba38e0585024837bc59c618bdd2adfd42d2d9af8:/package/hostap-driver/files/lib/wifi/hostap.sh 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