meta-somdevices: hostapd: Change access point (AP) name to somdevices.
authorJosep Orga <jorga@somdevices.com>
Thu, 15 Apr 2021 17:12:53 +0000 (19:12 +0200)
committerJosep Orga <jorga@somdevices.com>
Thu, 15 Apr 2021 17:12:53 +0000 (19:12 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
recipes-connectivity/hostapd/hostapd_2.8.bbappend

index 3c9a65f..5f639ed 100644 (file)
@@ -9,17 +9,18 @@ LICENSE = "MIT"
 
 SYSTEMD_SERVICE_${PN} = " hostapd.service"
 SYSTEMD_AUTO_ENABLE_${PN} = "enable"
+HOSTAPD_AP = "somdevices"
 
 do_install_append () {
        echo "#content hostapd.conf" > ${D}/etc/hostapd.conf
        echo "interface=wlan0" >> ${D}/etc/hostapd.conf
-       echo "ssid=${MACHINE}" >> ${D}/etc/hostapd.conf
+       echo "ssid=${HOSTAPD_AP}" >> ${D}/etc/hostapd.conf
        echo "channel=6" >> ${D}/etc/hostapd.conf
        echo "auth_algs=1" >> ${D}/etc/hostapd.conf
        echo "wpa=2                 # WPA2 only" >> ${D}/etc/hostapd.conf
        echo "wpa_key_mgmt=WPA-PSK" >> ${D}/etc/hostapd.conf
        echo "rsn_pairwise=CCMP" >> ${D}/etc/hostapd.conf
-       echo "wpa_passphrase=${MACHINE}1234" >> ${D}/etc/hostapd.conf
+       echo "wpa_passphrase=${HOSTAPD_AP}1234" >> ${D}/etc/hostapd.conf
        echo "" >> ${D}/etc/hostapd.conf
        echo "hw_mode=g" >> ${D}/etc/hostapd.conf
        echo "ieee80211n=1" >> ${D}/etc/hostapd.conf