Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Have anyone managed to run Orange pi lite 2 in AP mode with HT40 "width: 40 MHz" using hostapd?

Featured Replies

  • Author

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.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.