[Add usteer support from OpenWRT]

[Description]
Add usteer support from OpenWRT
1. Also add libnl-tiny bb to support usteer

[Release-log]
N/A

diff --git a/recipes-connectivity/libnl-tiny/libnl-tiny_git.bb b/recipes-connectivity/libnl-tiny/libnl-tiny_git.bb
new file mode 100644
index 0000000..f35921a
--- /dev/null
+++ b/recipes-connectivity/libnl-tiny/libnl-tiny_git.bb
@@ -0,0 +1,15 @@
+DESCRIPTION = "This package contains a stripped down version of libnl"
+HOMEPAGE = "https://git.openwrt.org/?p=project/libnl-tiny.git;a=summary"
+LICENSE = "LGPL-2.1"
+LIC_FILES_CHKSUM = "file://nl.c;startline=4;endline=7;md5=f16bd5d25e622bb3001bab76be1f9f91"
+SECTION = "libs"
+
+SRC_URI = "git://git.openwrt.org/project/libnl-tiny.git"
+SRCREV = "b5b2ba09c4f1c8b3c21580aea7223edc2f5e92be"
+PV = "git${SRCPV}"
+
+inherit cmake pkgconfig
+S = "${WORKDIR}/git"
+
+FILES_SOLIBSDEV = ""
+FILES_${PN} += "${libdir}/*.so"
diff --git a/recipes-connectivity/ubus/ubus_git.bb b/recipes-connectivity/ubus/ubus_git.bb
index 08f401d..1384ef8 100644
--- a/recipes-connectivity/ubus/ubus_git.bb
+++ b/recipes-connectivity/ubus/ubus_git.bb
@@ -1,6 +1,3 @@
-# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
-# Released under the MIT license (see COPYING.MIT for the terms)
-
 DESCRIPTION = "OpenWrt system message/RPC bus"
 HOMEPAGE = "http://git.openwrt.org/?p=project/libubox.git;a=summary"
 LICENSE = "BSD"
diff --git a/recipes-connectivity/usteer/files/usteer.service b/recipes-connectivity/usteer/files/usteer.service
new file mode 100644
index 0000000..5be1343
--- /dev/null
+++ b/recipes-connectivity/usteer/files/usteer.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Usteer daemon
+After=ubusd.service hostapd.service
+Requires=ubusd.service hostapd.service
+
+[Service]
+ExecStart=/bin/sh -c '@SBINDIR@/usteerd &'
+Type=forking
+Restart=always
+RestartSec=10
+
+[Install]
+WantedBy=multi-user.target
diff --git a/recipes-connectivity/usteer/usteer_git.bb b/recipes-connectivity/usteer/usteer_git.bb
new file mode 100644
index 0000000..87bf5b2
--- /dev/null
+++ b/recipes-connectivity/usteer/usteer_git.bb
@@ -0,0 +1,39 @@
+DESCRIPTION = "OpenWrt AP roaming assist daemon"
+HOMEPAGE = "https://git.openwrt.org/project/usteer.git"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://README.md;md5=26019f6caa040c198cccce12a534366f"
+SECTION = "kernel/userland"
+DEPENDS = "json-c libubox ubus libnl-tiny libpcap"
+
+SRC_URI = "git://git.openwrt.org/project/usteer.git"
+
+SRCREV = "${AUTOREV}"
+PV = "git${SRCPV}"
+
+S = "${WORKDIR}/git"
+
+inherit cmake pkgconfig
+
+do_install_append () {
+    install -dm 0755 ${D}/sbin
+    ln -s /usr/sbin/usteerd ${D}/sbin/usteerd
+}
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+inherit ${@d.getVar('DISTRO', True) == 'rdk' and 'systemd' or 'base'}
+
+SRC_URI_append_rdk += "\
+    file://usteer.service \
+"
+SYSTEMD_AUTO_ENABLE_${PN} = "disable"
+SYSTEMD_SERVICE_${PN}_rdk = "usteer.service"
+
+do_install_append_rdk() {
+	# Install systemd unit files
+	install -d ${D}${systemd_unitdir}/system
+	install -m 0644 ${WORKDIR}/usteer.service ${D}${systemd_unitdir}/system
+	sed -i -e 's,@SBINDIR@,${sbindir},g' \
+            ${D}${systemd_unitdir}/system/usteer.service
+}
+