This commit is contained in:
garywill 2023-10-04 21:48:27 +08:00
parent 63cd88b5fc
commit a2fcbc4781
1 changed files with 20 additions and 24 deletions

44
lnxrouter Executable file → Normal file
View File

@ -88,7 +88,7 @@ Options:
Using this you can't use same wlan interface Using this you can't use same wlan interface
for both Internet and AP for both Internet and AP
--virt-name <name> Set name of virtual interface --virt-name <name> Set name of virtual interface
-c <channel> Specify channel (default: use current one, or 1 / 36) -c <channel> Specify channel (default: use current, or 1 / 36)
--country <code> Set two-letter country code for regularity --country <code> Set two-letter country code for regularity
(example: US) (example: US)
--freq-band <GHz> Set frequency band: 2.4 or 5 (default: 2.4) --freq-band <GHz> Set frequency band: 2.4 or 5 (default: 2.4)
@ -103,31 +103,27 @@ Options:
--hostapd-debug <level> 1 or 2. Passes -d or -dd to hostapd --hostapd-debug <level> 1 or 2. Passes -d or -dd to hostapd
--isolate-clients Disable wifi communication between clients --isolate-clients Disable wifi communication between clients
--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
WiFi 4 (802.11n) configs: WiFi 4 (802.11n) configs:
--ieee80211n Enable IEEE 802.11n (HT) --wifi4 Enable IEEE 802.11n (HT)
--require-ht Require station HT (High Throughput) mode --req-ht Require station HT (High Throughput) mode
--ht-capab <HT> HT capabilities (default: [HT40+]) --ht-capab <HT caps> HT capabilities (default: [HT40+])
WiFi 5 (802.11ac) configs: WiFi 5 (802.11ac) configs:
--ieee80211ac Enable IEEE 802.11ac (VHT) --wifi5 Enable IEEE 802.11ac (VHT)
--require-vht Require station VHT (Very High Thoughtput) mode --req-vht Require station VHT (Very High Thoughtput) mode
--vht-capab <VHT> VHT capabilities --vht-capab <VHT caps> VHT capabilities
--vht-channel-width <index> --vht-ch-width <index> Index of VHT channel width:
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)
--vht-seg0-channel <channel> --vht-seg0-ch <channel> Channel index of VHT center frequency for primary
Channel index of VHT center frequency for primary segment. Use with '--vht-ch-width'
segment, use with --vht-channel-width --vht-seg1-ch <channel> Channel index of VHT center frequency for secondary
--vht-seg1-channel <channel> (second 80MHz) segment. Use with '--vht-ch-width 3'
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
@ -409,19 +405,19 @@ parse_user_options(){
shift shift
;; ;;
--ieee80211n) --wifi4|--ieee80211n)
shift shift
IEEE80211N=1 IEEE80211N=1
;; ;;
--require-ht) --req-ht|--require-ht)
shift shift
REQUIREHT=1 REQUIREHT=1
;; ;;
--ieee80211ac) --wifi5|--ieee80211ac)
shift shift
IEEE80211AC=1 IEEE80211AC=1
;; ;;
--require-vht) --req-vht|--require-vht)
shift shift
REQUIREVHT=1 REQUIREVHT=1
;; ;;
@ -435,17 +431,17 @@ parse_user_options(){
VHT_CAPAB="$1" VHT_CAPAB="$1"
shift shift
;; ;;
--vht-channel-width) --vht-ch-width|--vht-channel-width)
shift shift
VHTCHANNELWIDTH="$1" VHTCHANNELWIDTH="$1"
shift shift
;; ;;
--vht-seg0-channel) --vht-seg0-ch|--vht-seg0-channel)
shift shift
VHTSEG0CHINDEX="$1" VHTSEG0CHINDEX="$1"
shift shift
;; ;;
--vht-seg1-channel) --vht-seg1-ch|--vht-seg1-channel)
shift shift
VHTSEG1CHINDEX="$1" VHTSEG1CHINDEX="$1"
shift shift