X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/90dc2376551b65223e2b7a69bf1d4a12dc3a9924..39b5ef6e05b90c4249c13d553ff75c17ef256eb1:/package/madwifi/files/lib/wifi/madwifi.sh diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 2fd025b12..46f994ea7 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -184,6 +184,16 @@ enable_atheros() { iwconfig "$ifname" txpower "${txpwr%%.*}" fi + config_get frag "$vif" frag + if [ -n "$frag" ]; then + iwconfig "$ifname" frag "${frag%%.*}" + fi + + config_get rts "$vif" rts + if [ -n "$rts" ]; then + iwconfig "$ifname" rts "${rts%%.*}" + fi + ifconfig "$ifname" up iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null @@ -252,24 +262,16 @@ detect_atheros() { config wifi-device $dev option type atheros option channel 5 -# option diversity 1 -# option txantenna 0 -# option rxantenna 0 -# option distance 2000 -# disable radio to prevent an open ap after reflashing: - option disabled 1 + # REMOVE THIS LINE TO ENABLE WIFI: + option disabled 1 config wifi-iface option device $dev option network lan option mode ap option ssid OpenWrt - option hidden 0 -# option txpower 15 -# option bgscan enable option encryption none - EOF done }