recipes-connectivity: add hostapd functionality

Do not autostart hostapd daemon on boot because because it will conflict with
wpa-supplicant process and add a custom hostapd.conf file with WPA2-AES
encryption.

https://jira.digi.com/browse/DEL-2913

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2016-08-23 10:35:56 +02:00
parent b2d6231d88
commit 5444d3e8f8
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,17 @@
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
interface=wlan0
driver=nl80211
# WPA2-AES encryption
channel=5
ssid=ap-wpa2aes
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
wpa_passphrase=password-wpa2aes
# OPEN encryption example, remove WPA2-AES setup
# channel=1
# ssid=ap-open

View File

@ -5,5 +5,14 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${BP}:"
# The recipe uses a different "$S" directory so point the patch to the hostapd
# tarball directory.
SRC_URI_append_ccimx6ul = " file://fix_num_probereq_cb_clearing.patch;patchdir=.."
SRC_URI += "file://hostapd.conf"
do_install_append() {
# Overwrite the default hostapd.conf with our custom file
install -m 0644 ${WORKDIR}/hostapd.conf ${D}${sysconfdir}/hostapd.conf
}
# Do not autostart hostapd daemon, it will conflict with wpa-supplicant.
INITSCRIPT_PARAMS = "remove"
PACKAGE_ARCH = "${MACHINE_ARCH}"