forever_ noob Posted March 12, 2020 Posted March 12, 2020 Hello, can anyone share his hostapd.conf where he managed to get HT40 "width: 40 MHz" running on orange pi lite 2 while it is in AP mode ?
Igor Posted June 1, 2020 Posted June 1, 2020 Did you try armbian-config way of setting AP? How far it gets?
forever_ noob Posted June 1, 2020 Author Posted June 1, 2020 Hi Igor. I did make Hotspot in armian-config and hostapd.conf it generated is below. I was able to connect to it without problems. # # armbian hostapd configuration example # # nl80211 mode # ssid=ARMBIAN interface=wlan0 hw_mode=g channel=40 #bridge=br0 driver=nl80211 logger_syslog=0 logger_syslog_level=0 wmm_enabled=1 wpa=2 preamble=1 wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27 wpa_passphrase=12345678 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP auth_algs=1 macaddr_acl=0 ## IEEE 802.11n ieee80211n=1 ht_capab=[DSSS_CK-40][HT20+] country_code=US ieee80211d=1 ## IEEE 802.11n ## IEEE 802.11a hw_mode=a ## IEEE 802.11a ### IEEE 802.11ac #ieee80211ac=1 #vht_capab= #vht_oper_chwidth=1 #vht_oper_centr_freq_seg0_idx=42 ### IEEE 802.11ac # controlling enabled ctrl_interface=/var/run/hostapd ctrl_interface_group=0 But right now I'm not using this hostapd.conf but rather my own manual stuff via rc.local and custom hostapd.conf file that are below and I want to leave it that way if possible but with HT40 speed of 150Mbs, now is 75Mbs. I also have this Acces point connected to my 4G modem via ethernet wich than shares internet to wifi clients. It works ok, but I want more speed. enx00e04c6800b0 is an Ethernet adapter plugged into USB 3.0. #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. brctl addbr br0 brctl addif br0 enx00e04c6800b0 ifconfig br0 192.168.8.109 ifconfig enx00e04c6800b0 192.168.8.110 route add default gw 192.168.8.1 br0 #systemctl restart NetworkManager #nmcli radio wifi off #rfkill unblock wlan ifconfig wlan0 192.168.8.108 netmask 255.255.255.0 up #iwconfig wlan0 txpower 20 #ifconfig enx00e04c6800b0 192.168.8.110 netmask 255.255.255.0 up hostapd /etc/hostapd/hostapd.conf & > /dev/null 2>&1 exit 0 ssid=Armbian wpa_passphrase=12345678 #ssid=Silly Salmon #wpa_passphrase=mypassword hw_mode=g #N MODE ON ieee80211n=1 #ht_capab=[SHORT-GI-40][HT40+][HT40-][DSSS_CCK-40] # interface=wlan0 bridge=br0 driver=nl80211 country_code=GB channel=6 wpa=2 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP auth_algs=1 macaddr_acl=0 #'sudo hostapd_cli all_sta' doesn't work? #ctrl_interface=/var/run/hostapd #ctrl_interface_group=0 # Any suggestions or changes are welcome.
Recommended Posts