...
 
Commits (3)
.built
.built_check
.configured_
.dep_files
.git_update
.prepared_*
ipkg-*
**/*.o
src/tags
src/wifiagent
src/wificntlr
.configured_*
.pkgdir
/*
* <:copyright-IOPSYS:2019:proprietary:standard
*
* Copyright (c) 2019 IOPSYS software solutions AB.
* All Rights Reserved
*
* This program is the proprietary software of iopsys and/or its
* licensors, and may only be used, duplicated, modified or distributed pursuant
* to the terms and conditions of a separate, written license agreement executed
* between you and iopsys (an "Authorized License"). Except as set forth in
* an Authorized License, iopsys grants no license (express or implied), right
* to use, or waiver of any kind with respect to the Software, and iopsys
* expressly reserves all rights in and to the Software and all intellectual
* property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU HAVE
* NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY NOTIFY
* iopsys AND DISCONTINUE ALL USE OF THE SOFTWARE.
*
* Except as expressly set forth in the Authorized License,
*
* 1\. This program, including its structure, sequence and organization,
* constitutes the valuable trade secrets of iopsys, and you shall use
* all reasonable efforts to protect the confidentiality thereof, and to
* use this information only in connection with your use of iopsys
* products.
*
* 2\. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS"
* AND WITH ALL FAULTS AND IOPSYS MAKES NO PROMISES, REPRESENTATIONS OR
* WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH
* RESPECT TO THE SOFTWARE. IOPSYS SPECIFICALLY DISCLAIMS ANY AND
* ALL IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, NONINFRINGEMENT,
* FITNESS FOR A PARTICULAR PURPOSE, LACK OF VIRUSES, ACCURACY OR
* COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION OR CORRESPONDENCE
* TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF USE OR
* PERFORMANCE OF THE SOFTWARE.
*
* 3\. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL IOPSYS OR
* ITS LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL,
* INDIRECT, OR EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY
* WAY RELATING TO YOUR USE OF OR INABILITY TO USE THE SOFTWARE EVEN
* IF IOPSYS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES;
* OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT ACTUALLY PAID FOR THE
* SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE LIMITATIONS
* SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF ANY
* LIMITED REMEDY.
*
*/
#CC = gcc
CFLAGS += -I. -I../../include -I../../utils -I../../core -O2 -Wall -g -pthread
CFLAGS += -I. -O2 -Wall -g -pthread
PLUGIN = wfa_delm.so
OBJS = delm.o delm_utils.o delm_ubus.o delm_dumper.o delm_getter.o
ifeq ($(CONFIG_WFA_DELM_STANDALONE),)
CFLAGS += -DWFA_DELM_STANDALONE
OBJS += main.o ../../utils/timer.o
EXEC = wfa_delm
LIBS += -luci -lubus -lubox -ljson-c -lblobmsg_json \
-lnl-genl-3 -lnl-3 \
-lwifi-5 -leasy
-lwifi-5 -leasy -leasyutils
ifeq ($(CONFIG_WFA_DELM_STANDALONE),y)
CFLAGS += -DWFA_DELM_STANDALONE
OBJS += main.o
EXEC = wfa_delm
all: $(EXEC)
else
all: $(PLUGIN)
endif
%.o: %.c
......@@ -22,10 +27,10 @@ endif
$(PLUGIN): $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -shared \
-Wl,-soname,$@ -o $@ $^
-Wl,-soname,$@ -o $@ $^ $(LIBS)
$(EXEC): $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
clean:
rm -f *.o *.so*
rm -f *.o *.so* $(EXEC)
......@@ -17,10 +17,10 @@
#include <libubus.h>
#include <libubox/utils.h>
#include "plugin.h"
#include <map-agent/plugin.h>
#include <map-agent/mapagent.h>
#include <map-agent/timer.h>
#include "mapagent.h"
#include "timer.h"
#include "wfa_delm.h"
#include "delm.h"
......
......@@ -27,10 +27,11 @@
#include <libubox/utils.h>
#include <libubus.h>
#include "utils.h" /* XXX: from mapagent's */
#include "mapagent.h"
#include <easy/easy.h>
#include <map-agent/mapagent.h>
#include <map-agent/timer.h>
#include "wfa_delm.h"
#include "timer.h"
#include "delm.h"
......
......@@ -16,8 +16,8 @@
#include <pthread.h>
#include <net/if.h>
#include "easy/easy.h"
#include "wifi.h"
#include <easy/easy.h>
#include <wifi.h>
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
......@@ -25,10 +25,10 @@
#include <libubus.h>
#include "utils.h" /* XXX: from mapagent's */
#include "mapagent.h"
#include <map-agent/mapagent.h>
#include <map-agent/timer.h>
#include "wfa_delm.h"
#include "timer.h"
#include "delm.h"
int delm_get_sta_all(const char *ifname, struct wifi_sta_element **stalist,
......
......@@ -27,9 +27,10 @@
#include <libubox/utils.h>
#include <libubus.h>
#include "mapagent.h"
#include <map-agent/mapagent.h>
#include <map-agent/timer.h>
#include "wfa_delm.h"
#include "timer.h"
#include "delm.h"
......
......@@ -26,7 +26,7 @@
#include <libubox/utils.h>
#include <libubus.h>
#include "mapagent.h"
#include <map-agent/mapagent.h>
extern int delm_init(void **priv, void *cfg);
extern int delm_exit(void *priv);
......