Skip to content

Commit

Permalink
Update 0002-Add-TX-power-in-dBm-options-in-web-interface.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony91590 authored Jun 1, 2024
1 parent f7efda0 commit b990542
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions patches/0002-Add-TX-power-in-dBm-options-in-web-interface.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,16 @@
fi

txpower="${txpower:-$vif_txpower}"
@@ -3841,18 +3841,24 @@
@@ -3838,8 +3838,9 @@
option hwmode 11${mode_11}
option htmode '${htmode}'
option country '$country_code'
option disabled '$disable'
+ option txpwr 'max'
option txbf '3'
option ax '1'
EOF
- if [ $devidx = 2 ]; then
+ if [ $devidx = 0 ]; then
cat <<EOF
- option bw 20
+ option bw 80
+ option txpwr 'max'
EOF
fi
- if [ $devidx = 0 ]; then
+ if [ $devidx = 1 ]; then
cat <<EOF
- option bw 80
+ option txpwr 'max'
EOF
fi
+ if [ $devidx = 2 ]; then
+ cat <<EOF
+ option bw 20
+EOF
+ fi
cat <<EOF

config wifi-iface
option device wifi$devidx
if [ $devidx = 2 ]; then
--- a/usr/lib/lua/luci/view/web/apsetting/wifi.htm
+++ b/usr/lib/lua/luci/view/web/apsetting/wifi.htm
@@ -174,6 +174,9 @@
Expand Down

0 comments on commit b990542

Please sign in to comment.