mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2024-09-20 06:51:51 +00:00
Add 802.11ax in create_ap
This commit is contained in:
parent
1f06c1deed
commit
38e4828c5d
|
@ -24,7 +24,7 @@
|
||||||
* Customise wifi Channel, Change MAC address, etc.
|
* Customise wifi Channel, Change MAC address, etc.
|
||||||
* Hide SSID
|
* Hide SSID
|
||||||
* customize gateway IP address
|
* customize gateway IP address
|
||||||
* Enable IEEE 80211n, IEEE 80211ac modes
|
* Enable IEEE 80211n, IEEE 80211ac and IEEE 80211ax modes
|
||||||
|
|
||||||
![screenshot](docs/sc4.png)
|
![screenshot](docs/sc4.png)
|
||||||
|
|
||||||
|
|
|
@ -70,6 +70,12 @@ _create_ap() {
|
||||||
--ieee80211n)
|
--ieee80211n)
|
||||||
# No Options
|
# No Options
|
||||||
;;
|
;;
|
||||||
|
--ieee80211ac)
|
||||||
|
# No Options
|
||||||
|
;;
|
||||||
|
--ieee80211ax)
|
||||||
|
# No Options
|
||||||
|
;;
|
||||||
--ht_capab)
|
--ht_capab)
|
||||||
# Refer http://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf
|
# Refer http://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf
|
||||||
opts='
|
opts='
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
# dnsmasq
|
# dnsmasq
|
||||||
# iptables
|
# iptables
|
||||||
|
|
||||||
VERSION=0.4.7
|
VERSION=0.4.8
|
||||||
PROGNAME="$(basename $0)"
|
PROGNAME="$(basename $0)"
|
||||||
|
|
||||||
# make sure that all command outputs are in english
|
# make sure that all command outputs are in english
|
||||||
|
@ -50,6 +50,7 @@ usage() {
|
||||||
echo " --isolate-clients Disable communication between clients"
|
echo " --isolate-clients Disable communication between clients"
|
||||||
echo " --ieee80211n Enable IEEE 802.11n (HT)"
|
echo " --ieee80211n Enable IEEE 802.11n (HT)"
|
||||||
echo " --ieee80211ac Enable IEEE 802.11ac (VHT)"
|
echo " --ieee80211ac Enable IEEE 802.11ac (VHT)"
|
||||||
|
echo " --ieee80211ax Enable IEEE 802.11ax (VHT)"
|
||||||
echo " --ht_capab <HT> HT capabilities (default: [HT40+])"
|
echo " --ht_capab <HT> HT capabilities (default: [HT40+])"
|
||||||
echo " --vht_capab <VHT> VHT capabilities"
|
echo " --vht_capab <VHT> VHT capabilities"
|
||||||
echo " --country <code> Set two-letter country code for regularity (example: US)"
|
echo " --country <code> Set two-letter country code for regularity (example: US)"
|
||||||
|
@ -641,6 +642,7 @@ ISOLATE_CLIENTS=0
|
||||||
SHARE_METHOD=nat
|
SHARE_METHOD=nat
|
||||||
IEEE80211N=0
|
IEEE80211N=0
|
||||||
IEEE80211AC=0
|
IEEE80211AC=0
|
||||||
|
IEEE80211AX=0
|
||||||
HT_CAPAB='[HT40+]'
|
HT_CAPAB='[HT40+]'
|
||||||
VHT_CAPAB=
|
VHT_CAPAB=
|
||||||
DRIVER=nl80211
|
DRIVER=nl80211
|
||||||
|
@ -658,7 +660,7 @@ HOSTAPD_DEBUG_ARGS=
|
||||||
REDIRECT_TO_LOCALHOST=0
|
REDIRECT_TO_LOCALHOST=0
|
||||||
|
|
||||||
CONFIG_OPTS=(CHANNEL GATEWAY WPA_VERSION ETC_HOSTS DHCP_DNS NO_DNS NO_DNSMASQ HIDDEN MAC_FILTER MAC_FILTER_ACCEPT ISOLATE_CLIENTS
|
CONFIG_OPTS=(CHANNEL GATEWAY WPA_VERSION ETC_HOSTS DHCP_DNS NO_DNS NO_DNSMASQ HIDDEN MAC_FILTER MAC_FILTER_ACCEPT ISOLATE_CLIENTS
|
||||||
SHARE_METHOD IEEE80211N IEEE80211AC HT_CAPAB VHT_CAPAB DRIVER NO_VIRT COUNTRY FREQ_BAND
|
SHARE_METHOD IEEE80211N IEEE80211AC IEEE80211AX HT_CAPAB VHT_CAPAB DRIVER NO_VIRT COUNTRY FREQ_BAND
|
||||||
NEW_MACADDR DAEMONIZE DAEMON_PIDFILE DAEMON_LOGFILE NO_HAVEGED WIFI_IFACE INTERNET_IFACE
|
NEW_MACADDR DAEMONIZE DAEMON_PIDFILE DAEMON_LOGFILE NO_HAVEGED WIFI_IFACE INTERNET_IFACE
|
||||||
SSID PASSPHRASE USE_PSK ADDN_HOSTS)
|
SSID PASSPHRASE USE_PSK ADDN_HOSTS)
|
||||||
|
|
||||||
|
@ -1062,7 +1064,7 @@ for ((i=0; i<$#; i++)); do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
GETOPT_ARGS=$(getopt -o hc:w:g:de:nm: -l "help","hidden","hostapd-debug:","hostapd-timestamps","redirect-to-localhost","mac-filter","mac-filter-accept:","isolate-clients","ieee80211n","ieee80211ac","ht_capab:","vht_capab:","driver:","no-virt","fix-unmanaged","country:","freq-band:","mac:","dhcp-dns:","daemon","pidfile:","logfile:","stop:","list","list-running","list-clients:","version","psk","no-haveged","no-dns","no-dnsmasq","mkconfig:","config:" -n "$PROGNAME" -- "$@")
|
GETOPT_ARGS=$(getopt -o hc:w:g:de:nm: -l "help","hidden","hostapd-debug:","hostapd-timestamps","redirect-to-localhost","mac-filter","mac-filter-accept:","isolate-clients","ieee80211n","ieee80211ac","ieee80211ax","ht_capab:","vht_capab:","driver:","no-virt","fix-unmanaged","country:","freq-band:","mac:","dhcp-dns:","daemon","pidfile:","logfile:","stop:","list","list-running","list-clients:","version","psk","no-haveged","no-dns","no-dnsmasq","mkconfig:","config:" -n "$PROGNAME" -- "$@")
|
||||||
[[ $? -ne 0 ]] && exit 1
|
[[ $? -ne 0 ]] && exit 1
|
||||||
eval set -- "$GETOPT_ARGS"
|
eval set -- "$GETOPT_ARGS"
|
||||||
|
|
||||||
|
@ -1135,6 +1137,10 @@ while :; do
|
||||||
shift
|
shift
|
||||||
IEEE80211AC=1
|
IEEE80211AC=1
|
||||||
;;
|
;;
|
||||||
|
--ieee80211ax)
|
||||||
|
shift
|
||||||
|
IEEE80211AX=1
|
||||||
|
;;
|
||||||
--ht_capab)
|
--ht_capab)
|
||||||
shift
|
shift
|
||||||
HT_CAPAB="$1"
|
HT_CAPAB="$1"
|
||||||
|
@ -1703,6 +1709,10 @@ if [[ $IEEE80211AC -eq 1 ]]; then
|
||||||
echo "ieee80211ac=1" >> $CONFDIR/hostapd.conf
|
echo "ieee80211ac=1" >> $CONFDIR/hostapd.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $IEEE80211AX -eq 1 ]]; then
|
||||||
|
echo "ieee80211ax=1" >> $CONFDIR/hostapd.conf
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -n "$VHT_CAPAB" ]]; then
|
if [[ -n "$VHT_CAPAB" ]]; then
|
||||||
echo "vht_capab=${VHT_CAPAB}" >> $CONFDIR/hostapd.conf
|
echo "vht_capab=${VHT_CAPAB}" >> $CONFDIR/hostapd.conf
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user