Download Print this page

Advertisement

Quick Links

2023/05/21 14:24
Wireless Access Point
This application note is applicable to the our Ubuntu/Linux Platforms.
HostAP Mode Compatibility List
ODROID-C1
Wifi module
Ubuntu
name
16.04
(USB VID:PID)
v2.2-3.10.y
0 - Ralink
RT5370N
confirm
(0x148F:0x5370)
3 - Realtak
confirm
RTL8188CUS
Dedicated
(0x0BDA:0x8176)
hostapd
4 - Ralink
RT5572N
confirm
(0x148F:0x5572)
5 - Realtak
RTL8812AU
confirm
(0x0BDA:0x8812)
5A - Realtak
RTL8811AU
confirm
(0x0BDA:0xa811)
wpa_supplicant Mode Compatibility List
ODROID-C1
Wifi module
Ubuntu
name
16.04
(USB VID:PID)
v2.2-3.10.y
0 - Ralink
RT5370N
confirm
(0x148F:0x5370)
3 - Realtak
not
RTL8188CUS
working
(0x0BDA:0x8176)
4 - Ralink
RT5572N
confirm
(0x148F:0x5572)
5 - Realtak
not
RTL8812AU
working
(0x0BDA:0x8812)
5A - Realtak
not
RTL8811AU
working
(0x0BDA:0xa811)
ODROID Wireless Cards Information
Almost all the wireless card have capability of configuration as to be Access Point.
target
root@odroid:~#
ODROID Wiki - https://wiki.odroid.com/
ODROID-C2
Ubuntu
Ubuntu
Ubuntu
18.04
16.04
18.04
v3.0-3.10.y
v2.4-3.14.y
v3.0-3.16.y
confirm
confirm
confirm
confirm
confirm
Dedicated
Dedicated
confirm
hostapd
hostapd
confirm
confirm
confirm
confirm
confirm
confirm
confirm
confirm
confirm
ODROID-C2
Ubuntu
Ubuntu
Ubuntu
18.04
16.04
18.04
v3.0-3.10.y
v2.4-3.14.y
v3.0-3.16.y
confirm
confirm
confirm
not
not
working
working
working
confirm
confirm
confirm
not
confirm
confirm
working
not
confirm
confirm
working
sudo iw list
1/20
ODROID-XU3/4
Ubuntu 16.04
Ubuntu 16.04
20170731-3.10.y
20171212-4.14.y
confirm
confirm
confirm
confirm
Dedicated
hostapd
not working
ODROID-XU3/4
Ubuntu 16.04
Ubuntu 16.04
20170731-3.10.y
20171212-4.14.y
confirm
not
not working
confirm
not working
not working
Ubuntu 18.04
20181203-4.14.y
confirm
confirm
confirm
Dedicated
confirm
hostapd
confirm
confirm
confirm
Dedicated
confirm
hostapd
confirm
confirm
Ubuntu 18.04
20181203-4.14.y
confirm
not working
not working
not working
confirm
not working
confirm
not working
not working
not working
Wireless Access Point
ODROID-N2
Ubuntu 18.04.1
20190217-4.9.y
confirm
confirm
confirm
confirm
confirm
ODROID-N2
Ubuntu 18.04.1
20190217-4.9.y
not working
not working
not working
not working
not working

Advertisement

loading

Summary of Contents for ODROID C1

  • Page 1 (0x0BDA:0xa811) ODROID Wireless Cards Information Almost all the wireless card have capability of configuration as to be Access Point. target root@odroid:~# sudo iw list ODROID Wiki - https://wiki.odroid.com/...
  • Page 2 Last update: accessory:connectivity:wifi:wireless_ap_mode https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785 2019/03/05 10:03 If there is “AP” in the list of “Supported interface modes”, your device will support the Access Point mode. target Supported interface modes: IBSS managed AP/VLAN monitor mesh point Refer to the below contents of informations of each wireless interface.
  • Page 3 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter Wifi Module 5A Manufacturer: Realtek Type: chip Number of busses: Bus(es): USB Number of bands: Band(s): 2.4GHz, 5GHz Data rate: AC600 MIMO configuration: Mbps 1T1R Mbps 1T1R IEEE 802.11 PHY Modes: a,b,g,n,ac ODROID Wiki - https://wiki.odroid.com/...
  • Page 4 Last update: accessory:connectivity:wifi:wireless_ap_mode https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785 2019/03/05 10:03 Bus 003 Device 003: ID 0bda:a811 Realtek Semiconductor Corp. Configure Access Point One user (tam1111574) reported there's an issue with USB 3.0 port on the XU4: http://forum.odroid.com/viewtopic.php?f=97&t=19285 All commands must be executed in super user mode.
  • Page 5 Note: Wireless interface name can be changed as it depends on the wireless cards you installed. Step 2: Setup DHCP server configuration for Access Point. Configure dnsmasq which is a light weight DHCP and DNS server. target root@odroid:~# apt install dnsmasq Reading package lists... Done ODROID Wiki - https://wiki.odroid.com/...
  • Page 6 Process: 2072 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS) 01:59:06 odroid systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server... 01:59:06 odroid dnsmasq[2072]: dnsmasq: syntax check OK. 01:59:06 odroid dnsmasq[2073]: dnsmasq: failed to create listening socket port 53: Address already...
  • Page 7 2023/05/21 14:24 7/20 Wireless Access Point 01:59:06 odroid systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server. Processing triggers systemd (237-3ubuntu10.9) Stop the service listening port 53. target # Check that systemd-resolve service is listening port 53 now(127.0.0.53:53)
  • Page 8 Last update: accessory:connectivity:wifi:wireless_ap_mode https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785 2019/03/05 10:03 tcp6 0 :::22 :::* LISTEN 677/sshd tcp6 0 ::1:631 :::* LISTEN 2734/cupsd Copy dnsmasq configuration file to get a backup and then make a new one. target root@odroid:~# mv /etc/dnsmasq.conf /etc/dnsmasq.conf.org root@odroid:~# vi /etc/dnsmasq.conf dnsmasq.conf...
  • Page 9 802.11 access point management, IEEE 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and RADIUS authentication server. Please find more information on https://wireless.wiki.kernel.org/en/users/documentation/hostapd Steps to get the hostapd compilation. Download the hostapd source code and build with proper parameters. ODROID Wiki - https://wiki.odroid.com/...
  • Page 10 .config root@odroid:~/hostapd-2.6/hostapd# echo CONFIG_LIBNL32=y >> .config root@odroid:~/hostapd-2.6/hostapd# echo CONFIG_IEEE80211N=y >> .config root@odroid:~/hostapd-2.6/hostapd# echo CONFIG_IEEE80211AC=y >> .config root@odroid:~/hostapd-2.6/hostapd# make Wifi Module 3 You should download a patch file if you use Wifi Module 3 to make hostapd works for Wifi Module 3 which do not support the standard nl80211 driver from hostapd on kernel 3.10, 3.14, 3.16.
  • Page 11 Or if it still doesn't work and/or if you use kernel version under 4.4, you can try to follow the previous guide: https://wiki.odroid.com/accessory/connectivity/wifi/wlan_ap Also you can try to use a pre-built script: https://github.com/oblique/create_ap ODROID Wiki - https://wiki.odroid.com/...
  • Page 12 Last update: accessory:connectivity:wifi:wireless_ap_mode https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785 2019/03/05 10:03 Hostapd configuration for __2.4 Ghz__ configuration hostapd.conf # HostAPD <2.4 Ghz configuration hostapd.conf file> # Interface interface=wlan0 # driver driver=nl80211 # Logging logger_syslog=-1 logger_syslog_level=3 logger_stdout=-1 logger_stdout_level=2 # CTRL-Interface ctrl_interface=/var/run/hostapd ctrl_interface_group=0 # WLAN country_code=KR ssid=OdroidAPn...
  • Page 13 #ieee80211ac=1 ### IEEE 802.11n ieee80211n=1 ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40][DSSS_CCK-20] ### IEEE 802.11ac #ieee80211ac=1 #vht_oper_chwidth=1 #vht_capab=[SHORT-GI-40][RXLDPC][TX-STBC-2BY1] #vht_oper_centr_freq_seg0_idx=0 ### IEEE 802.11i wpa=2 wpa_key_mgmt=WPA-PSK wpa_passphrase=hardkernel rsn_pairwise=CCMP ### hostapd event logger logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=2 ### WMM wmm_enabled=1 uapsd_advertisement_enabled=1 wmm_ac_bk_cwmin=4 wmm_ac_bk_cwmax=10 ODROID Wiki - https://wiki.odroid.com/...
  • Page 14 Last update: accessory:connectivity:wifi:wireless_ap_mode https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785 2019/03/05 10:03 wmm_ac_bk_aifs=7 wmm_ac_bk_txop_limit=0 wmm_ac_bk_acm=0 wmm_ac_be_aifs=3 wmm_ac_be_cwmin=4 wmm_ac_be_cwmax=10 wmm_ac_be_txop_limit=0 wmm_ac_be_acm=0 wmm_ac_vi_aifs=2 wmm_ac_vi_cwmin=3 wmm_ac_vi_cwmax=4 wmm_ac_vi_txop_limit=94 wmm_ac_vi_acm=0 wmm_ac_vo_aifs=2 wmm_ac_vo_cwmin=2 wmm_ac_vo_cwmax=3 wmm_ac_vo_txop_limit=47 wmm_ac_vo_acm=0 ### TX queue parameters tx_queue_data3_aifs=7 tx_queue_data3_cwmin=15 tx_queue_data3_cwmax=1023 tx_queue_data3_burst=0 tx_queue_data2_aifs=3 tx_queue_data2_cwmin=15 tx_queue_data2_cwmax=63 tx_queue_data2_burst=0 tx_queue_data1_aifs=1 tx_queue_data1_cwmin=7 tx_queue_data1_cwmax=15 tx_queue_data1_burst=3.0...
  • Page 15 If you get this message when starting hostapd service, “Failed to start hostapd.service: Unit hostapd.service is masked.”, unmask that service and try it out again. systemctl unmask hostapd.service ODROID Wiki - https://wiki.odroid.com/...
  • Page 16 Process: ExecStart=/etc/init.d/hostapd start (code=exited, status=0/SUCCESS) CGroup: /system.slice/hostapd.service └─798 /usr/sbin/hostapd -B -P /run/hostapd.pid /etc/hostapd/hostapd-2.6.conf Jul 09 19:48:41 odroid systemd[1]: Starting LSB: Advanced IEEE 802.11 management daemon... Jul 09 19:48:41 odroid hostapd[789]: Starting advanced IEEE 802.11 management hostapd Jul 09 19:48:41 odroid hostapd[789]: ...done.
  • Page 17 Jul 09 19:48:30 odroid dnsmasq[591]: cleared cache Jul 09 19:48:31 odroid systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server. lines 1-22/22 (END) Step 4: Access Point Installation - wpa_supplicant Step 4-1: Setup wpa_supplicant configuration wpa_supplicant is a user space application which works as a WPA supplicant and SME (to handle initiating MLME commands).
  • Page 18 Last update: accessory:connectivity:wifi:wireless_ap_mode https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785 2019/03/05 10:03 I/usr/include/libnl3/ >> .config root@odroid:~/wpa_supplicant-2.6/wpa_supplicant# echo CONFIG_LIBNL32=y >> .config root@odroid:~/wpa_supplicant-2.6/wpa_supplicant# make Backup the current wpa_supplicant. Replace the file with configured one. target root@odroid:~/wpa_supplicant-2.6/wpa_supplicant# mv /sbin/wpa_supplicant /sbin/wpa_supplicant.org root@odroid:~/wpa_supplicant-2.6/wpa_supplicant# cp ./wpa_supplicant /sbin/ Verify that you have installed the latest version.
  • Page 19 Start Wpa_suplicant as a server Append the following in /etc/rc.local file target sudo service network-manager stop wpa_supplicant -B -Dnl80211 -iwlan0 -c /root/wap.conf Alternative/Easier Ways For Access Point Configuration This script creates a NATed or Bridged WiFi Access Point. ODROID Wiki - https://wiki.odroid.com/...
  • Page 20 Last update: accessory:connectivity:wifi:wireless_ap_mode https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785 2019/03/05 10:03 From: https://wiki.odroid.com/ - ODROID Wiki Permanent link: https://wiki.odroid.com/accessory/connectivity/wifi/wireless_ap_mode?rev=1551747785 Last update: 2019/03/05 10:03 https://wiki.odroid.com/ Printed on 2023/05/21 14:24...

This manual is also suitable for:

C2Xu3/4N2