Created
December 28, 2018 11:24
-
-
Save tavimori/c313568d3cf523a295d90a57d8240aa9 to your computer and use it in GitHub Desktop.
wifi24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########### on all devices ######### | |
# install the driver for rtl-8811 | |
sudo apt install rtl8812au-dkms | |
# load the driver | |
sudo modprobe 8812au | |
# disable network manager | |
sudo systemctl stop NetworkManager && sudo systemctl disable NetworkManager | |
########### on ap only ############# | |
# commands for broadcast ap in 2.4GHz | |
sudo create_ap -n --ieee80211n --ht_capab '[HT20]' wlxe84e0647425a inc_licheng_test netcod99 -c 6 -g 192.168.12.1 | |
# tip1: some times the chip will fail to broadcast ap because of unknown reason, replug the adaptor may resolve | |
# tip2: using other [ht] configuration may increase the throughput. | |
########### on ap finished ########## | |
########## on client only ######### | |
# commands for connect | |
# create a configuration for connect | |
nano wifipass.conf | |
## file start ## | |
network={ | |
ssid="inc_licheng_test" | |
psk="netcod99" | |
} | |
## file end ## | |
# connect to ap | |
sudo wpa_supplicant -c ./wifiwpa.conf -i wlxe84e06476fc2 | |
# assign an ip in the same subnet as the ap (seems the ip will not be configured automatically, we need to do it manually) | |
sudo ip addr add 192.168.12.2/24 dev wlxe84e06476fc2 | |
########### on client finished ############# | |
# do iperf tests | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment