rename some options

This commit is contained in:
garywill 2023-10-04 11:43:24 +08:00
parent 183cf44934
commit 957ed25f07
1 changed files with 23 additions and 20 deletions

43
lnxrouter Executable file → Normal file
View File

@ -105,26 +105,29 @@ Options:
--no-haveged Do not run haveged automatically when needed --no-haveged Do not run haveged automatically when needed
--hs20 Enable Hotspot 2.0 (Make sure your hostapd build supports it) --hs20 Enable Hotspot 2.0 (Make sure your hostapd build supports it)
WiFi 4(802.11N) Config: WiFi 4 (802.11n) configs:
--ieee80211n Enable IEEE 802.11n (HT) --ieee80211n Enable IEEE 802.11n (HT)
--use_ht Enable High Throughput mode --require-ht Require station HT (High Throughput) mode
--ht_capab <HT> HT capabilities (default: [HT40+]) --ht-capab <HT> HT capabilities (default: [HT40+])
WiFi 5(802.11AC) Config: WiFi 5 (802.11ac) configs:
--ieee80211ac Enable IEEE 802.11ac (VHT) --ieee80211ac Enable IEEE 802.11ac (VHT)
--use_vht Enable Very High Thoughtput mode --require-vht Require station VHT (Very High Thoughtput) mode
--vht_capab <VHT> VHT capabilities --vht-capab <VHT> VHT capabilities
--vht_channel_width <index>
Index of VHT Channel Width: --vht-channel-width <index>
Index of VHT channel width:
0 for 20MHz or 40MHz (default) 0 for 20MHz or 40MHz (default)
1 for 80MHz 1 for 80MHz
2 for 160MHz 2 for 160MHz
3 for 80+80MHz (Non-contigous 160MHz) 3 for 80+80MHz (Non-contigous 160MHz)
--seg0_center_freq_idx <channel> --vht-seg0-channel <channel>
Channel index of Center frequency for primary segment, use with --vht_channel_width Channel index of VHT center frequency for primary
--seg1_center_freq_idx <channel> segment, use with --vht-channel-width
Channel index of Center frequency for secondary (second 80MHz) segment, use with --vht_channel_width=3 --vht-seg1-channel <channel>
Pick above 2 values from the F0 index column from the 5GHz table in https://en.wikipedia.org/wiki/List_of_WLAN_channels#5_GHz_(802.11a/h/n/ac/ax) Channel index of VHT center frequency for secondary
(second 80MHz) segment,
use with '--vht-channel-width 3' .
Instance managing: Instance managing:
--daemon Run in background --daemon Run in background
@ -410,7 +413,7 @@ parse_user_options(){
shift shift
IEEE80211N=1 IEEE80211N=1
;; ;;
--use_ht) --require-ht)
shift shift
REQUIREHT=1 REQUIREHT=1
;; ;;
@ -418,31 +421,31 @@ parse_user_options(){
shift shift
IEEE80211AC=1 IEEE80211AC=1
;; ;;
--use_vht) --require-vht)
shift shift
REQUIREVHT=1 REQUIREVHT=1
;; ;;
--ht_capab) --ht-capab)
shift shift
HT_CAPAB="$1" HT_CAPAB="$1"
shift shift
;; ;;
--vht_capab) --vht-capab)
shift shift
VHT_CAPAB="$1" VHT_CAPAB="$1"
shift shift
;; ;;
--vht_channel_width) --vht-channel-width)
shift shift
VHTCHANNELWIDTH="$1" VHTCHANNELWIDTH="$1"
shift shift
;; ;;
--seg0_center_freq_idx) --vht-seg0-channel)
shift shift
VHTSEG0CHINDEX="$1" VHTSEG0CHINDEX="$1"
shift shift
;; ;;
--seg1_center_freq_idx) --vht-seg1-channel)
shift shift
VHTSEG1CHINDEX="$1" VHTSEG1CHINDEX="$1"
shift shift