X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8433787edb23d5f8ca237cd9b144e2da9117f26c..6a226cb195550e13a7581d2029bfcff02d3ffcb7:/package/hostap-driver/files/lib/wifi/hostap.sh?ds=inline diff --git a/package/hostap-driver/files/lib/wifi/hostap.sh b/package/hostap-driver/files/lib/wifi/hostap.sh index cacc3baa8..d5afc0457 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 @@ -190,7 +194,7 @@ detect_prism2() { config wifi-device $dev option type prism2 - option channel 6 + option channel 11 # REMOVE THIS LINE TO ENABLE WIFI: option disabled 1