wifilife-1.0.1 - Initial

This commit is contained in:
Anjan Chanda 2018-08-14 11:03:20 +02:00
parent 801f286ea5
commit 1ed9f8bee4
2 changed files with 82 additions and 0 deletions

46
wifilife/Makefile Normal file
View file

@ -0,0 +1,46 @@
#
# Copyright (C) 2018 Iopsys
#
include $(TOPDIR)/rules.mk
PKG_NAME:=wifilife
PKG_VERSION:=1.0.1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=55b34b4e3ac44b31f758fc8dee6bc2276fdea195
PKG_SOURCE_URL:=git@private.inteno.se:wifilife.git
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@inteno.se>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/wifilife
SECTION:=utils
CATEGORY:=Utilities
TITLE:=IOPSYS WiFi multi-AP Controller/Agent
DEPENDS:=+libwifi +libuci +libubox +ubus
endef
define Package/wifilife/description
This package manages wifi in multi-AP deployment.
Supports smart steering of WiFi clients.
endef
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include \
-I$(STAGING_DIR)/usr/include/libnl3 \
-D_GNU_SOURCE
MAKE_PATH:=src
define Package/wifilife/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wifiagent $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/wifiagent.config $(1)/etc/config/wifiagent
endef
$(eval $(call BuildPackage,wifilife))

View file

@ -0,0 +1,36 @@
config wifilife
option enabled '1'
list ifname 'rai0'
list ifname 'rai0.1'
config steer
option enabled 1
option ifname 'rai0'
list param 'rssi'
list param 'bssload'
list exclude '00:11:22:33:44:55'
list exclude '00:10:20:30:40:50'
list exclude_btm '00:aa:bb:cc:dd:ee'
config steer
option enabled 0
option ifname 'rai0.1'
list param 'rssi'
list param 'bssload'
list exclude '00:11:22:33:44:55'
config assoc_control
option ifname 'rai0'
config assoc_control
option ifname 'rai0.0'
list sta '00:11:22:33:44:55'
config steer-param 'rssi'
option priority '0'
option threshold '-65'
config steer-param 'bssload'
option priority '0'
option threshold '80'