summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2020-07-06 18:33:37 -0500
committerJohn Klug <john.klug@multitech.com>2020-07-22 17:08:41 -0500
commit36a8e6c1cb1a5fbfe460e6a8125e220b93a19d49 (patch)
tree6e6b5714e9cf33b1c1249903fa840c4e8eb1a646
parentb04248e71a5534343e3bf79bd494e9ec1cfa6bf9 (diff)
downloadmeta-mlinux-36a8e6c1cb1a5fbfe460e6a8125e220b93a19d49.tar.gz
meta-mlinux-36a8e6c1cb1a5fbfe460e6a8125e220b93a19d49.tar.bz2
meta-mlinux-36a8e6c1cb1a5fbfe460e6a8125e220b93a19d49.zip
Create a configuration package to install WiFi and BT access point for testing
-rw-r--r--recipes-connectivity/bluez/bluez5.inc23
-rwxr-xr-xrecipes-connectivity/bluez/bluez5/bt-pan/init1
-rw-r--r--recipes-connectivity/hostapd/hostapd/defconfig.orig148
-rw-r--r--recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/backup.list.txt9
-rw-r--r--recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/config-wifi-bt-ap.files9
-rw-r--r--recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/pan0.append8
-rw-r--r--recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/bluetooth8
-rw-r--r--recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/bt-pan2
-rwxr-xr-xrecipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/dnsmasq6
-rw-r--r--recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/hostapd6
-rw-r--r--recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/rs911366
-rw-r--r--recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/dnsmasq.d/dhcp.conf14
-rw-r--r--recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/dnsmasq.d/dns.conf3
-rw-r--r--recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/hostapd.conf2399
-rw-r--r--recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/wifi1.append5
-rw-r--r--recipes-core/multitech/config/config.init5
16 files changed, 2562 insertions, 150 deletions
diff --git a/recipes-connectivity/bluez/bluez5.inc b/recipes-connectivity/bluez/bluez5.inc
index 35ebd0c..14e2f56 100644
--- a/recipes-connectivity/bluez/bluez5.inc
+++ b/recipes-connectivity/bluez/bluez5.inc
@@ -1,5 +1,9 @@
SUMMARY = "Linux Bluetooth Stack Userland V5"
+# Might want to skip to m6 next time, because pand
+# is now at m5.
PR = "m4"
+# Tried m4a, but opkg says that is a downgrade.
+PR_${PN}-pand = "m5"
DESCRIPTION = "Linux Bluetooth stack V5 userland components. These include a system configurations, daemons, tools and system libraries."
HOMEPAGE = "http://www.bluez.org"
SECTION = "libs"
@@ -34,6 +38,7 @@ SRC_URI = "\
file://rfcomm/rfcomm.py \
file://rfcomm/init \
file://rfcomm/default \
+ file://BT-Name \
"
S = "${WORKDIR}/bluez-${PV}"
@@ -99,10 +104,13 @@ do_install_append() {
install -m 0644 ${WORKDIR}/bt-pan/default ${D}${sysconfdir}/default/bt-pan
install -m 0644 ${WORKDIR}/rfcomm/default ${D}${sysconfdir}/default/rfcomm
install -m 0644 ${WORKDIR}/main.conf ${D}${sysconfdir}/bluetooth/
+
+ install -d ${D}/usr/share/bluez5
+ install -m 0444 ${WORKDIR}/BT-Name ${D}/usr/share/bluez5/BT-Name.patch
}
ALLOW_EMPTY_libasound-module-bluez = "1"
-PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex ${PN}-noinst-tools ${PN}-pand ${PN}-rfcomm"
+PACKAGES =+ "${PN}-bt-name libasound-module-bluez ${PN}-testtools ${PN}-obex ${PN}-noinst-tools ${PN}-pand ${PN}-rfcomm"
FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa"
FILES_${PN} += "${libdir}/bluetooth/plugins/*.so ${systemd_unitdir}/ ${datadir}/dbus-1"
@@ -120,6 +128,8 @@ FILES_${PN}-obex = "${libexecdir}/bluetooth/obexd \
FILES_${PN}-pand = "${libexecdir}/bluetooth/bt-pan ${sysconfdir}/default/bt-pan ${sysconfdir}/init.d/bt-pan"
FILES_${PN}-rfcomm = "${libexecdir}/bluetooth/bt-pan ${sysconfdir}/default/bt-pan ${sysconfdir}/init.d/bt-pan"
FILES_${PN}-rfcomm = "${libexecdir}/bluetooth/rfcomm ${sysconfdir}/default/rfcomm ${sysconfdir}/init.d/rfcomm"
+FILES_${PN}-bt-name = "/usr/share/bluez5/*"
+
CONFFILES_${PN}-pand = "${sysconfdir}/default/bt-pan"
CONFFILES_${PN}-rfcomm = "${sysconfdir}/default/rfcomm"
SYSTEMD_SERVICE_${PN}-obex = "obex.service"
@@ -137,6 +147,7 @@ def get_noinst_tools_paths (d, bb, tools):
FILES_${PN}-noinst-tools = "${@get_noinst_tools_paths(d, bb, d.getVar('NOINST_TOOLS', True))}"
RDEPENDS_${PN}-testtools += "python3 python3-dbus python3-pygobject"
+RDEPENDS_${PN}-bt-name += "bluez5"
SYSTEMD_SERVICE_${PN} = "bluetooth.service"
INITSCRIPT_PACKAGES = "${PN} ${PN}-pand ${PN}-rfcomm"
@@ -157,3 +168,13 @@ do_install_ptest() {
cp -r ${B}/unit/ ${D}${PTEST_PATH}
rm -f ${D}${PTEST_PATH}/unit/*.o
}
+
+pkg_postinst_${PN}-bt-name() {
+ cd /$D
+ patch -Np1 < $D/usr/share/bluez5/BT-Name.patch
+}
+
+pkg_prerm_${PN}-bt-name() {
+ cd /$D
+ patch -Rp1 < $D/usr/share/bluez5/BT-Name.patch
+}
diff --git a/recipes-connectivity/bluez/bluez5/bt-pan/init b/recipes-connectivity/bluez/bluez5/bt-pan/init
index 3f7062e..2d3d70a 100755
--- a/recipes-connectivity/bluez/bluez5/bt-pan/init
+++ b/recipes-connectivity/bluez/bluez5/bt-pan/init
@@ -17,6 +17,7 @@ fi
case $1 in
start)
+ ifup $BRIDGE
echo "Starting ${DNAME}"
/usr/sbin/start-stop-daemon -S -p ${PIDFILE} -x ${PYTHON} -b -- ${SERVER} ${PANOPTS} server $BRIDGE
;;
diff --git a/recipes-connectivity/hostapd/hostapd/defconfig.orig b/recipes-connectivity/hostapd/hostapd/defconfig.orig
deleted file mode 100644
index a62bec4..0000000
--- a/recipes-connectivity/hostapd/hostapd/defconfig.orig
+++ /dev/null
@@ -1,148 +0,0 @@
-# Example hostapd build time configuration
-#
-# This file lists the configuration options that are used when building the
-# hostapd binary. All lines starting with # are ignored. Configuration option
-# lines must be commented out complete, if they are not to be included, i.e.,
-# just setting VARIABLE=n is not disabling that variable.
-#
-# This file is included in Makefile, so variables like CFLAGS and LIBS can also
-# be modified from here. In most cass, these lines should use += in order not
-# to override previous values of the variables.
-
-# Driver interface for Host AP driver
-CONFIG_DRIVER_HOSTAP=y
-
-# Driver interface for wired authenticator
-CONFIG_DRIVER_WIRED=y
-
-# Driver interface for madwifi driver
-#CONFIG_DRIVER_MADWIFI=y
-#CFLAGS += -I../../madwifi # change to the madwifi source directory
-
-# Driver interface for Prism54 driver
-CONFIG_DRIVER_PRISM54=y
-
-# Driver interface for drivers using the nl80211 kernel interface
-CONFIG_DRIVER_NL80211=y
-CONFIG_LIBNL32=y
-# driver_nl80211.c requires a rather new libnl (version 1.1) which may not be
-# shipped with your distribution yet. If that is the case, you need to build
-# newer libnl version and point the hostapd build to use it.
-#LIBNL=/usr/src/libnl
-#CFLAGS += -I$(LIBNL)/include
-#LIBS += -L$(LIBNL)/lib
-
-# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
-#CONFIG_DRIVER_BSD=y
-#CFLAGS += -I/usr/local/include
-#LIBS += -L/usr/local/lib
-
-# Driver interface for no driver (e.g., RADIUS server only)
-#CONFIG_DRIVER_NONE=y
-
-# IEEE 802.11F/IAPP
-CONFIG_IAPP=y
-
-# WPA2/IEEE 802.11i RSN pre-authentication
-CONFIG_RSN_PREAUTH=y
-
-# PeerKey handshake for Station to Station Link (IEEE 802.11e DLS)
-CONFIG_PEERKEY=y
-
-# IEEE 802.11w (management frame protection)
-# This version is an experimental implementation based on IEEE 802.11w/D1.0
-# draft and is subject to change since the standard has not yet been finalized.
-# Driver support is also needed for IEEE 802.11w.
-#CONFIG_IEEE80211W=y
-
-# Integrated EAP server
-CONFIG_EAP=y
-
-# EAP-MD5 for the integrated EAP server
-CONFIG_EAP_MD5=y
-
-# EAP-TLS for the integrated EAP server
-CONFIG_EAP_TLS=y
-
-# EAP-MSCHAPv2 for the integrated EAP server
-CONFIG_EAP_MSCHAPV2=y
-
-# EAP-PEAP for the integrated EAP server
-CONFIG_EAP_PEAP=y
-
-# EAP-GTC for the integrated EAP server
-CONFIG_EAP_GTC=y
-
-# EAP-TTLS for the integrated EAP server
-CONFIG_EAP_TTLS=y
-
-# EAP-SIM for the integrated EAP server
-#CONFIG_EAP_SIM=y
-
-# EAP-AKA for the integrated EAP server
-#CONFIG_EAP_AKA=y
-
-# EAP-AKA' for the integrated EAP server
-# This requires CONFIG_EAP_AKA to be enabled, too.
-#CONFIG_EAP_AKA_PRIME=y
-
-# EAP-PAX for the integrated EAP server
-#CONFIG_EAP_PAX=y
-
-# EAP-PSK for the integrated EAP server (this is _not_ needed for WPA-PSK)
-#CONFIG_EAP_PSK=y
-
-# EAP-SAKE for the integrated EAP server
-#CONFIG_EAP_SAKE=y
-
-# EAP-GPSK for the integrated EAP server
-#CONFIG_EAP_GPSK=y
-# Include support for optional SHA256 cipher suite in EAP-GPSK
-#CONFIG_EAP_GPSK_SHA256=y
-
-# EAP-FAST for the integrated EAP server
-# Note: Default OpenSSL package does not include support for all the
-# functionality needed for EAP-FAST. If EAP-FAST is enabled with OpenSSL,
-# the OpenSSL library must be patched (openssl-0.9.9-session-ticket.patch)
-# to add the needed functions.
-#CONFIG_EAP_FAST=y
-
-# Wi-Fi Protected Setup (WPS)
-CONFIG_WPS=y
-# Enable UPnP support for external WPS Registrars
-#CONFIG_WPS_UPNP=y
-
-# EAP-IKEv2
-#CONFIG_EAP_IKEV2=y
-
-# Trusted Network Connect (EAP-TNC)
-#CONFIG_EAP_TNC=y
-
-# PKCS#12 (PFX) support (used to read private key and certificate file from
-# a file that usually has extension .p12 or .pfx)
-CONFIG_PKCS12=y
-
-# RADIUS authentication server. This provides access to the integrated EAP
-# server from external hosts using RADIUS.
-CONFIG_RADIUS_SERVER=y
-
-# Build IPv6 support for RADIUS operations
-CONFIG_IPV6=y
-
-# IEEE Std 802.11r-2008 (Fast BSS Transition)
-#CONFIG_IEEE80211R=y
-
-# Use the hostapd's IEEE 802.11 authentication (ACL), but without
-# the IEEE 802.11 Management capability (e.g., madwifi or FreeBSD/net80211)
-CONFIG_DRIVER_RADIUS_ACL=y
-
-# IEEE 802.11n (High Throughput) support
-CONFIG_IEEE80211N=y
-
-# IEEE 802.11ac (Very High Throughput) support
-CONFIG_IEEE80211AC=y
-
-# Remove debugging code that is printing out debug messages to stdout.
-# This can be used to reduce the size of the hostapd considerably if debugging
-# code is not needed.
-#CONFIG_NO_STDOUT_DEBUG=y
diff --git a/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/backup.list.txt b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/backup.list.txt
new file mode 100644
index 0000000..23a3623
--- /dev/null
+++ b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/backup.list.txt
@@ -0,0 +1,9 @@
+./network/interfaces
+./hostapd.conf
+./default/rs9113
+./default/bt-pan
+./default/dnsmasq
+./default/bluetooth
+./default/hostapd
+./dnsmasq.d/dns.conf
+./dnsmasq.d/dhcp.conf
diff --git a/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/config-wifi-bt-ap.files b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/config-wifi-bt-ap.files
new file mode 100644
index 0000000..23a3623
--- /dev/null
+++ b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/config-wifi-bt-ap.files
@@ -0,0 +1,9 @@
+./network/interfaces
+./hostapd.conf
+./default/rs9113
+./default/bt-pan
+./default/dnsmasq
+./default/bluetooth
+./default/hostapd
+./dnsmasq.d/dns.conf
+./dnsmasq.d/dhcp.conf
diff --git a/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/pan0.append b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/pan0.append
new file mode 100644
index 0000000..36fcd8f
--- /dev/null
+++ b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/pan0.append
@@ -0,0 +1,8 @@
+# Pan is used for BT-Pan
+auto pan0
+iface pan0 inet static
+address 10.1.0.1
+netmask 255.255.255.0
+pre-up brctl addbr pan0
+pre-up brctl setfd pan0 0
+pre-up brctl stp pan0 off
diff --git a/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/bluetooth b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/bluetooth
new file mode 100644
index 0000000..ec46cfd
--- /dev/null
+++ b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/bluetooth
@@ -0,0 +1,8 @@
+# Set to 1 to enable bluetooth daemon
+BLUETOOTH_ENABLED=1
+
+# Use the following to setup bluetooth usability
+BLUETOOTHCTL_CMD="power on\ndiscoverable on\npairable on\n"
+
+#Compatilitity mode
+#MOREOPTIONS="-C"
diff --git a/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/bt-pan b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/bt-pan
new file mode 100644
index 0000000..9ba447e
--- /dev/null
+++ b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/bt-pan
@@ -0,0 +1,2 @@
+ENABLED="yes"
+PANOPTS="--debug"
diff --git a/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/dnsmasq b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/dnsmasq
new file mode 100755
index 0000000..b0e2fe6
--- /dev/null
+++ b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/dnsmasq
@@ -0,0 +1,6 @@
+# See /etc/init.d/dnsmasq
+ENABLED="yes"
+
+
+# Ignore the resolve.conf from the resolvconf package.
+IGNORE_RESOLVCONF="yes"
diff --git a/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/hostapd b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/hostapd
new file mode 100644
index 0000000..30350ca
--- /dev/null
+++ b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/hostapd
@@ -0,0 +1,6 @@
+# set to "yes" to start hostapd on boot
+START_ON_BOOT="yes"
+# Stuff to creat the device if needed.
+DEV=wifi1
+PREUP="[[ -d /sys/class/net/${DEV} ]] || (ifdown wifi1;/opt/rs9113/onebox_util rpine0 create_vap ${DEV} ap;rfkill unblock all)"
+POSTUP="ifup wifi1"
diff --git a/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/rs9113 b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/rs9113
new file mode 100644
index 0000000..2786691
--- /dev/null
+++ b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/default/rs9113
@@ -0,0 +1,66 @@
+#
+# Skip loading the RS9113 related drivers if
+# set to zero.
+#
+RS9113_LOAD=1
+
+# Parameters for rs9113 driver
+#
+# Enable Antenna Diversity (1)
+RSI_ANTENNA_DIVERSITY=0
+
+# COEX_MODE options:
+# 1 WLAN STATION /WIFI-Direct/WLAN PER
+# 2 WLAN ACCESS POINT(including muliple APs on different vaps)
+# 3 WLAN ACCESS POINT + STATION MODE(on multiple vaps)
+# 4 BT CLASSIC MODE/BT CLASSIC PER MODE
+# 5 WLAN STATION + BT CLASSIC MODE
+# 6 WLAN ACCESS POINT + BT CLASSIC MODE
+# 8 BT LE MODE /BT LE PER MODE
+# 9 WLAN STATION + BT LE MODE
+# 12 BT CLASSIC + BT LE MODE
+# 14 WLAN ACCESS POINT + BT CLASSIC MODE+ BT LE MODE
+COEX_MODE=6
+
+# Power selection
+# 0x00 - For Both TX and RX High Power
+# 0x11 - For Both TX and RX Medium Power
+# 0x22 - For Both TX and RX LOW Power
+# 0x10 - For High Power TX and Medium RX Power
+# 0x20 - For High Power TX and LOW RX Power
+# 0x01 - For Medium TX and RX High Power
+# 0x21 - For Medium Power TX and LOW RX Power
+# 0x02 - For Low Power TX and RX High Power
+# 0x12 - For LOW Power TX and Medium RX Power
+WLAN_RF_PWR_MODE=0x00
+BT_RF_PWR_MODE=0x00
+
+#Power_mode type
+# 0 - HIGH POWER MODE
+# 1 - MEDIUM POWER MODE
+# 2 - LOW POWER MODE
+BT_RF_TX_POWER_MODE=0
+BT_RF_RX_POWER_MODE=0
+
+# Country Selection
+# 0 World Domain
+# 840 US Domain Maps to US Region
+# 276 Germany Maps to EU Region
+# 392 Japan Maps to Japan Region
+# from ISO 3166-1
+SET_COUNTRY_CODE=0
+
+# 2 – Select internal antenna
+# 3 – Select external antenna
+ANT_SEL_VAL=2
+
+ONBOARD_ANT_SEL=1
+SET_RETRY_COUNT=15
+
+# Time to hold high, then hold low on reset during driver load reset
+SLEEPTIME=100000
+
+# Time to wait while looping for interrupt and wake-up pins
+# to go high.
+INTSLEEPTIME=100000
+
diff --git a/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/dnsmasq.d/dhcp.conf b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/dnsmasq.d/dhcp.conf
new file mode 100644
index 0000000..a92c421
--- /dev/null
+++ b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/dnsmasq.d/dhcp.conf
@@ -0,0 +1,14 @@
+dhcp-leasefile=/var/config/dnsmasq_dhcp.leases
+dhcp-lease-max=200
+interface=wifi1
+dhcp-range=10.0.0.100,10.0.0.250,12h
+dhcp-option=option:netmask,255.255.255.0
+dhcp-option=wifi1,3,10.0.0.1
+dhcp-option=option:dns-server,10.0.0.1
+dhcp-authoritative
+interface=pan0
+dhcp-range=10.1.0.100,10.1.0.250,12h
+dhcp-option=option:netmask,255.255.255.0
+dhcp-option=pan0,3,10.1.0.1
+dhcp-option=option:dns-server,10.1.0.1
+dhcp-authoritative
diff --git a/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/dnsmasq.d/dns.conf b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/dnsmasq.d/dns.conf
new file mode 100644
index 0000000..dfe06a2
--- /dev/null
+++ b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/dnsmasq.d/dns.conf
@@ -0,0 +1,3 @@
+no-hosts
+addn-hosts=/var/config/hosts
+resolv-file=/etc/resolv.conf
diff --git a/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/hostapd.conf b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/hostapd.conf
new file mode 100644
index 0000000..e672aca
--- /dev/null
+++ b/recipes-core/multitech/config/config-wifi-bt-ap/usr/share/config-wifi-bt-ap/var/config/hostapd.conf
@@ -0,0 +1,2399 @@
+##### hostapd configuration file ##############################################
+# Empty lines and lines starting with # are ignored
+
+# AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for
+# management frames with the Host AP driver); wlan0 with many nl80211 drivers
+# Note: This attribute can be overridden by the values supplied with the '-i'
+# command line parameter.
+interface=wifi1
+
+# In case of atheros and nl80211 driver interfaces, an additional
+# configuration parameter, bridge, may be used to notify hostapd if the
+# interface is included in a bridge. This parameter is not used with Host AP
+# driver. If the bridge parameter is not set, the drivers will automatically
+# figure out the bridge interface (assuming sysfs is enabled and mounted to
+# /sys) and this parameter may not be needed.
+#
+# For nl80211, this parameter can be used to request the AP interface to be
+# added to the bridge automatically (brctl may refuse to do this before hostapd
+# has been started to change the interface mode). If needed, the bridge
+# interface is also created.
+#bridge=br0
+
+# Driver interface type (hostap/wired/none/nl80211/bsd);
+# default: hostap). nl80211 is used with all Linux mac80211 drivers.
+# Use driver=none if building hostapd as a standalone RADIUS server that does
+# not control any wireless/wired driver.
+# driver=hostap
+
+# Driver interface parameters (mainly for development testing use)
+# driver_params=<params>
+
+# hostapd event logger configuration
+#
+# Two output method: syslog and stdout (only usable if not forking to
+# background).
+#
+# Module bitfield (ORed bitfield of modules that will be logged; -1 = all
+# modules):
+# bit 0 (1) = IEEE 802.11
+# bit 1 (2) = IEEE 802.1X
+# bit 2 (4) = RADIUS
+# bit 3 (8) = WPA
+# bit 4 (16) = driver interface
+# bit 5 (32) = IAPP
+# bit 6 (64) = MLME
+#
+# Levels (minimum value for logged events):
+# 0 = verbose debugging
+# 1 = debugging
+# 2 = informational messages
+# 3 = notification
+# 4 = warning
+#
+logger_syslog=-1
+logger_syslog_level=2
+logger_stdout=-1
+logger_stdout_level=2
+
+# Interface for separate control program. If this is specified, hostapd
+# will create this directory and a UNIX domain socket for listening to requests
+# from external programs (CLI/GUI, etc.) for status information and
+# configuration. The socket file will be named based on the interface name, so
+# multiple hostapd processes/interfaces can be run at the same time if more
+# than one interface is used.
+# /var/run/hostapd is the recommended directory for sockets and by default,
+# hostapd_cli will use it when trying to connect with hostapd.
+ctrl_interface=/var/run/hostapd
+
+# Access control for the control interface can be configured by setting the
+# directory to allow only members of a group to use sockets. This way, it is
+# possible to run hostapd as root (since it needs to change network
+# configuration and open raw sockets) and still allow GUI/CLI components to be
+# run as non-root users. However, since the control interface can be used to
+# change the network configuration, this access needs to be protected in many
+# cases. By default, hostapd is configured to use gid 0 (root). If you
+# want to allow non-root users to use the contron interface, add a new group
+# and change this value to match with that group. Add users that should have
+# control interface access to this group.
+#
+# This variable can be a group name or gid.
+#ctrl_interface_group=wheel
+ctrl_interface_group=0
+
+
+##### IEEE 802.11 related configuration #######################################
+
+# SSID to be used in IEEE 802.11 management frames
+ssid=mtcdt-12345678
+# Alternative formats for configuring SSID
+# (double quoted string, hexdump, printf-escaped string)
+#ssid2="test"
+#ssid2=74657374
+#ssid2=P"hello\nthere"
+
+# UTF-8 SSID: Whether the SSID is to be interpreted using UTF-8 encoding
+#utf8_ssid=1
+
+# Country code (ISO/IEC 3166-1). Used to set regulatory domain.
+# Set as needed to indicate country in which device is operating.
+# This can limit available channels and transmit power.
+# These two octets are used as the first two octets of the Country String
+# (dot11CountryString)
+#country_code=US
+
+# The third octet of the Country String (dot11CountryString)
+# This parameter is used to set the third octet of the country string.
+#
+# All environments of the current frequency band and country (default)
+#country3=0x20
+# Outdoor environment only
+#country3=0x4f
+# Indoor environment only
+#country3=0x49
+# Noncountry entity (country_code=XX)
+#country3=0x58
+# IEEE 802.11 standard Annex E table indication: 0x01 .. 0x1f
+# Annex E, Table E-4 (Global operating classes)
+#country3=0x04
+
+# Enable IEEE 802.11d. This advertises the country_code and the set of allowed
+# channels and transmit power levels based on the regulatory limits. The
+# country_code setting must be configured with the correct country for
+# IEEE 802.11d functions.
+# (default: 0 = disabled)
+#ieee80211d=1
+
+# Enable IEEE 802.11h. This enables radar detection and DFS support if
+# available. DFS support is required on outdoor 5 GHz channels in most countries
+# of the world. This can be used only with ieee80211d=1.
+# (default: 0 = disabled)
+#ieee80211h=1
+
+# Add Power Constraint element to Beacon and Probe Response frames
+# This config option adds Power Constraint element when applicable and Country
+# element is added. Power Constraint element is required by Transmit Power
+# Control. This can be used only with ieee80211d=1.
+# Valid values are 0..255.
+#local_pwr_constraint=3
+
+# Set Spectrum Management subfield in the Capability Information field.
+# This config option forces the Spectrum Management bit to be set. When this
+# option is not set, the value of the Spectrum Management bit depends on whether
+# DFS or TPC is required by regulatory authorities. This can be used only with
+# ieee80211d=1 and local_pwr_constraint configured.
+#spectrum_mgmt_required=1
+
+# Operation mode (a = IEEE 802.11a (5 GHz), b = IEEE 802.11b (2.4 GHz),
+# g = IEEE 802.11g (2.4 GHz), ad = IEEE 802.11ad (60 GHz); a/g options are used
+# with IEEE 802.11n (HT), too, to specify band). For IEEE 802.11ac (VHT), this
+# needs to be set to hw_mode=a. When using ACS (see channel parameter), a
+# special value "any" can be used to indicate that any support band can be used.
+# This special case is currently supported only with drivers with which
+# offloaded ACS is used.
+# Default: IEEE 802.11b
+hw_mode=a
+
+# Channel number (IEEE 802.11)
+# (default: 0, i.e., not set)
+# Please note that some drivers do not use this value from hostapd and the
+# channel will need to be configured separately with iwconfig.
+#
+# If CONFIG_ACS build option is enabled, the channel can be selected
+# automatically at run time by setting channel=acs_survey or channel=0, both of
+# which will enable the ACS survey based algorithm.
+channel=36
+
+# ACS tuning - Automatic Channel Selection
+# See: http://wireless.kernel.org/en/users/Documentation/acs
+#
+# You can customize the ACS survey algorithm with following variables:
+#
+# acs_num_scans requirement is 1..100 - number of scans to be performed that
+# are used to trigger survey data gathering of an underlying device driver.
+# Scans are passive and typically take a little over 100ms (depending on the
+# driver) on each available channel for given hw_mode. Increasing this value
+# means sacrificing startup time and gathering more data wrt channel
+# interference that may help choosing a better channel. This can also help fine
+# tune the ACS scan time in case a driver has different scan dwell times.
+#
+# acs_chan_bias is a space-separated list of <channel>:<bias> pairs. It can be
+# used to increase (or decrease) the likelihood of a specific channel to be
+# selected by the ACS algorithm. The total interference factor for each channel
+# gets multiplied by the specified bias value before finding the channel with
+# the lowest value. In other words, values between 0.0 and 1.0 can be used to
+# make a channel more likely to be picked while values larger than 1.0 make the
+# specified channel less likely to be picked. This can be used, e.g., to prefer
+# the commonly used 2.4 GHz band channels 1, 6, and 11 (which is the default
+# behavior on 2.4 GHz band if no acs_chan_bias parameter is specified).
+#
+# Defaults:
+#acs_num_scans=5
+#acs_chan_bias=1:0.8 6:0.8 11:0.8
+
+# Channel list restriction. This option allows hostapd to select one of the
+# provided channels when a channel should be automatically selected.
+# Channel list can be provided as range using hyphen ('-') or individual
+# channels can be specified by space (' ') separated values
+# Default: all channels allowed in selected hw_mode
+#chanlist=100 104 108 112 116
+#chanlist=1 6 11-13
+
+# Exclude DFS channels from ACS
+# This option can be used to exclude all DFS channels from the ACS channel list
+# in cases where the driver supports DFS channels.
+#acs_exclude_dfs=1
+
+# Beacon interval in kus (1.024 ms) (default: 100; range 15..65535)
+beacon_int=100
+
+# DTIM (delivery traffic information message) period (range 1..255):
+# number of beacons between DTIMs (1 = every beacon includes DTIM element)
+# (default: 2)
+dtim_period=2
+
+# Maximum number of stations allowed in station table. New stations will be
+# rejected after the station table is full. IEEE 802.11 has a limit of 2007
+# different association IDs, so this number should not be larger than that.
+# (default: 2007)
+max_num_sta=255
+
+# RTS/CTS threshold; -1 = disabled (default); range -1..65535
+# If this field is not included in hostapd.conf, hostapd will not control
+# RTS threshold and 'iwconfig wlan# rts <val>' can be used to set it.
+rts_threshold=-1
+
+# Fragmentation threshold; -1 = disabled (default); range -1, 256..2346
+# If this field is not included in hostapd.conf, hostapd will not control
+# fragmentation threshold and 'iwconfig wlan# frag <val>' can be used to set
+# it.
+fragm_threshold=-1
+
+# Rate configuration
+# Default is to enable all rates supported by the hardware. This configuration
+# item allows this list be filtered so that only the listed rates will be left
+# in the list. If the list is empty, all rates are used. This list can have
+# entries that are not in the list of rates the hardware supports (such entries
+# are ignored). The entries in this list are in 100 kbps, i.e., 11 Mbps = 110.
+# If this item is present, at least one rate have to be matching with the rates
+# hardware supports.
+# default: use the most common supported rate setting for the selected
+# hw_mode (i.e., this line can be removed from configuration file in most
+# cases)
+#supported_rates=10 20 55 110 60 90 120 180 240 360 480 540
+
+# Basic rate set configuration
+# List of rates (in 100 kbps) that are included in the basic rate set.
+# If this item is not included, usually reasonable default set is used.
+#basic_rates=10 20
+#basic_rates=10 20 55 110
+#basic_rates=60 120 240
+
+# Beacon frame TX rate configuration
+# This sets the TX rate that is used to transmit Beacon frames. If this item is
+# not included, the driver default rate (likely lowest rate) is used.
+# Legacy (CCK/OFDM rates):
+# beacon_rate=<legacy rate in 100 kbps>
+# HT:
+# beacon_rate=ht:<HT MCS>
+# VHT:
+# beacon_rate=vht:<VHT MCS>
+#
+# For example, beacon_rate=10 for 1 Mbps or beacon_rate=60 for 6 Mbps (OFDM).
+#beacon_rate=10
+
+# Short Preamble
+# This parameter can be used to enable optional use of short preamble for
+# frames sent at 2 Mbps, 5.5 Mbps, and 11 Mbps to improve network performance.
+# This applies only to IEEE 802.11b-compatible networks and this should only be
+# enabled if the local hardware supports use of short preamble. If any of the
+# associated STAs do not support short preamble, use of short preamble will be
+# disabled (and enabled when such STAs disassociate) dynamically.
+# 0 = do not allow use of short preamble (default)
+# 1 = allow use of short preamble
+#preamble=1
+
+# Station MAC address -based authentication
+# Please note that this kind of access control requires a driver that uses
+# hostapd to take care of management frame processing and as such, this can be
+# used with driver=hostap or driver=nl80211, but not with driver=atheros.
+# 0 = accept unless in deny list
+# 1 = deny unless in accept list
+# 2 = use external RADIUS server (accept/deny lists are searched first)
+macaddr_acl=0
+
+# Accept/deny lists are read from separate files (containing list of
+# MAC addresses, one per line). Use absolute path name to make sure that the
+# files can be read on SIGHUP configuration reloads.
+#accept_mac_file=/etc/hostapd.accept
+#deny_mac_file=/etc/hostapd.deny
+
+# IEEE 802.11 specifies two authentication algorithms. hostapd can be
+# configured to allow both of these or only one. Open system authentication
+# should be used with IEEE 802.1X.
+# Bit fields of allowed authentication algorithms:
+# bit 0 = Open System Authentication
+# bit 1 = Shared Key Authentication (requires WEP)
+auth_algs=3
+
+# Send empty SSID in beacons and ignore probe request frames that do not
+# specify full SSID, i.e., require stations to know SSID.
+# default: disabled (0)
+# 1 = send empty (length=0) SSID in beacon and ignore probe request for
+# broadcast SSID
+# 2 = clear SSID (ASCII 0), but keep the original length (this may be required
+# with some clients that do not support empty SSID) and ignore probe
+# requests for broadcast SSID
+ignore_broadcast_ssid=0
+
+# Do not reply to broadcast Probe Request frames from unassociated STA if there
+# is no room for additional stations (max_num_sta). This can be used to
+# discourage a STA from trying to associate with this AP if the association
+# would be rejected due to maximum STA limit.
+# Default: 0 (disabled)
+#no_probe_resp_if_max_sta=0
+
+# Additional vendor specific elements for Beacon and Probe Response frames
+# This parameter can be used to add additional vendor specific element(s) into
+# the end of the Beacon and Probe Response frames. The format for these
+# element(s) is a hexdump of the raw information elements (id+len+payload for
+# one or more elements)
+#vendor_elements=dd0411223301
+
+# Additional vendor specific elements for (Re)Association Response frames
+# This parameter can be used to add additional vendor specific element(s) into
+# the end of the (Re)Association Response frames. The format for these
+# element(s) is a hexdump of the raw information elements (id+len+payload for
+# one or more elements)
+#assocresp_elements=dd0411223301
+
+# TX queue parameters (EDCF / bursting)
+# tx_queue_<queue name>_<param>
+# queues: data0, data1, data2, data3
+# (data0 is the highest priority queue)
+# parameters:
+# aifs: AIFS (default 2)
+# cwmin: cwMin (1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191,
+# 16383, 32767)
+# cwmax: cwMax (same values as cwMin, cwMax >= cwMin)
+# burst: maximum length (in milliseconds with precision of up to 0.1 ms) for
+# bursting
+#
+# Default WMM parameters (IEEE 802.11 draft; 11-03-0504-03-000e):
+# These parameters are used by the access point when transmitting frames
+# to the clients.
+#
+# Low priority / AC_BK = background
+#tx_queue_data3_aifs=7
+#tx_queue_data3_cwmin=15
+#tx_queue_data3_cwmax=1023
+#tx_queue_data3_burst=0
+# Note: for IEEE 802.11b mode: cWmin=31 cWmax=1023 burst=0
+#
+# Normal priority / AC_BE = best effort
+#tx_queue_data2_aifs=3
+#tx_queue_data2_cwmin=15
+#tx_queue_data2_cwmax=63
+#tx_queue_data2_burst=0
+