Compare commits

..

96 Commits
testusp ... cr

Author SHA1 Message Date
Jakob Olsson
bd5aed0538 questd: remove uproxyd files 2019-06-04 10:59:56 +02:00
Jakob Olsson
92faca44b9 owsd: version 1.1.2 2019-06-04 10:49:19 +02:00
Jakob Olsson
a0c2a6615e owsd: only start uproxyd if ubus-x is enabled 2019-06-04 10:34:36 +02:00
Sukru Senli
97d08f94fb owsd: add uproxyd as config option 2019-06-04 08:35:01 +02:00
Jakob Olsson
5310bbc945 questd: dont install uproxyd 2019-05-29 12:08:55 +02:00
Jakob Olsson
86af5bdd28 owsd: install uproxyd from pkg_build_dir 2019-05-29 12:08:39 +02:00
Jakob Olsson
9f5b4710eb owsd: update pkg hash to point to cr branch 2019-05-29 10:53:56 +02:00
Jakob Olsson
29f0657c99 owsd: update help text for OWSD_UPROXYD 2019-05-29 10:53:17 +02:00
Jakob Olsson
ed9e36addc owsd: add support for OWSD_UPROXYD option and transfer uproxyd binaries 2019-05-29 10:47:33 +02:00
Oussama Ghorbel
12d3af63f3 uboot: update package source version
c77089efc4 reduce brightness for RGB led
2019-05-28 11:28:00 +02:00
Jakob Olsson
c3e1ef09ca questd: version 4.1.0 2019-05-28 09:03:22 +02:00
Sukru Senli
9c39cdd505 Revert "Update feed [ iopsys ] package [ easy-soc-libs ]"
This reverts commit a0c216ea89.
2019-05-28 08:25:32 +02:00
Yalu Zhang
16e1cab74f dslmngr: Fix Bug #758 on Intel platform
Human readable standard_used and standards_supported key values are missing from object
2019-05-27 17:31:49 +02:00
Oussama Ghorbel
c6ea75f608 uboot: update package source version
a9788d80f1 scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks
2019-05-27 17:05:26 +02:00
Anjan Chanda
a0c216ea89 Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* 49b8a6e libwifi: ifname match criteria changed
-------------------------------------------------------------------------------
commit 49b8a6e47177d5c73984bc11d7ec1bd18feee230
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-27 14:52:41 +0200

    libwifi: ifname match criteria changed

Base directory -> /
 libwifi/mtk.c  | 2 +-
 libwifi/wifi.c | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
2019-05-27 16:07:30 +02:00
Oussama Ghorbel
4340b515af uboot: update revision
commit 0020e671c807ec51be94ab557b2a945e3630b8fe
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date:   Fri May 24 16:07:24 2019 +0200

    misc clean up and minor fixes

commit 04e9179ae3493b31548eda97f555c2944df6c19b
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date:   Fri May 24 14:27:32 2019 +0200

    use preinit as linux init process
2019-05-24 16:19:07 +02:00
Sukru Senli
ef0f38499a netmode: exclude norrland from existing modes 2019-05-23 10:04:24 +02:00
Oussama Ghorbel
47d2fb3113 gryphon-led-module: reduce global brightness 2019-05-22 15:30:08 +02:00
Oussama Ghorbel
b73e7c4a44 uboot: update revision
commit 4eaca41a6b842336ead03698434d08a775dad1ec
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date:   Tue May 21 15:58:50 2019 +0200

    update web gui to iopsys look and clean up some remnant
2019-05-21 16:49:21 +02:00
Sukru Senli
3642db5f04 netmdode: repeater connect and forget_network methods 2019-05-21 15:17:21 +02:00
Amin Ben Ramdhane
fd9f43bcd0 icwmp: 4.0-2019-05-21 2019-05-21 10:46:59 +01:00
Jakob Olsson
c0637c052f netmodes: replace wps_pushbutton with wps 2019-05-20 15:13:31 +02:00
Anjan Chanda
72a3a64383 Update feed [ iopsys ] package [ wifilife ]
-------------------------------------------------------------------------------
* fe0e8fd agent: estimate sta's throughput from bytes per-sec
* 6fe3659 colorize debug messages and minor fixes
-------------------------------------------------------------------------------
commit fe0e8fd3832ef3a70ac3938f9b458d05a349b0be
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-20 06:56:23 +0200

    agent: estimate sta's throughput from bytes per-sec

Base directory -> /
 src/agent.c | 54 +++++++++++++++++++++++++++---------------------------
 src/agent.h |  4 ++++
 2 files changed, 31 insertions(+), 27 deletions(-)
-------------------------------------------------------------------------------
commit 6fe3659c3e7243eb155efec3cab64f05ce232d51
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-19 13:56:15 +0200

    colorize debug messages and minor fixes

    Periodicallt update neighbors not only for the local node but for all the
    nodes. Accounting for stas' rssi above or below steer-threshold was not
    getting done properly if steering verdict is negetive. This has been fixed.

Base directory -> /
 src/agent.c           |  2 +-
 src/cntlr.c           | 54 ++++++++++++++++++++++++++++++++++++++++++++-------
 src/cntlr.h           |  4 ++++
 src/cntlr_comm_ubus.c |  7 ++++---
 src/comm.c            |  2 +-
 src/debug.h           | 31 ++++++++++++++++++-----------
 src/default_rules.c   | 36 +++++++++++++++++++---------------
 7 files changed, 97 insertions(+), 39 deletions(-)
-------------------------------------------------------------------------------
2019-05-20 07:06:38 +02:00
Sukru Senli
4787082fa2 netmode: add revert_netmdoe function 2019-05-18 11:41:17 +02:00
yyashvardhan
bbcb34cae5 uspd: Added new operate commands 2019-05-17 18:23:49 +05:30
Yalu Zhang
44164d950b Fix Bug #705: Asterisk gives tone even if number is not configured
Set voice_client.lineX.sip_account correctly according to "voice_client.sipX.call_lines"
2019-05-17 14:10:10 +02:00
Amin Ben Ramdhane
5a4c07278c icwmp: 4.0-2019-05-16 2019-05-16 16:44:59 +01:00
Anjan Chanda
6aa6d01cd2 Update feed [ iopsys ] package [ wifilife ]
-------------------------------------------------------------------------------
* 3c33d63 make all debug msgs available through outfile
-------------------------------------------------------------------------------
commit 3c33d636ff45d3e013048ee6ea45d6712d44dec0
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-16 09:26:43 +0200

    make all debug msgs available through outfile

Base directory -> /
 src/debug.c | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2019-05-16 09:33:40 +02:00
Jakob Olsson
ec395b1bbb wifilife: update mbid library to use arp and assoclist to get first octets 2019-05-16 08:50:33 +02:00
Jakob Olsson
5a3b12f451 wifilife: firewall.mbid: update func and file names 2019-05-15 15:54:30 +02:00
Jakob Olsson
950365bd83 wifilife: mbid: use ubus list and router.network clients to get first octet 2019-05-15 15:38:12 +02:00
Jakob Olsson
e80d88905f wifilife: firewall.mbid: store and remove old repeated rules from /tmp/ 2019-05-15 15:36:40 +02:00
Jakob Olsson
6840306713 wifilife: firewall.mbid: use fw3 rules, use lock file 2019-05-15 13:52:57 +02:00
Anjan Chanda
8947f5f18e Update feed [ iopsys ] package [ wifilife ]
-------------------------------------------------------------------------------
* 53452c1 agent: read results after 5 seconds of scan trigger
-------------------------------------------------------------------------------
commit 53452c1643c4721f81dc1a32a1755afbfa9e7be5
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-15 12:00:19 +0200

    agent: read results after 5 seconds of scan trigger

Base directory -> /
 src/agent.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2019-05-15 12:08:07 +02:00
Anjan Chanda
a41b0855ad Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* 9b7accf libwifi: intel - read wep/disabled from hostap config
-------------------------------------------------------------------------------
commit 9b7accf0ac4f7c8010fb06ba83df9e53264b429a
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-15 10:54:06 +0200

    libwifi: intel - read wep/disabled from hostap config

Base directory -> /
 libwifi/nlwifi.c | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++-----
 libwifi/wext.c   |  4 +--
 2 files changed, 83 insertions(+), 9 deletions(-)
-------------------------------------------------------------------------------
2019-05-15 11:00:15 +02:00
Jakob Olsson
d81a56b25e wifilife: install files/ under correct dir 2019-05-15 09:55:24 +02:00
Anjan Chanda
f26517974c Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* de7dca0 libwifi: bcm: return maxrate for wifi_get_bitrate
-------------------------------------------------------------------------------
commit de7dca053dedd50cbaeff9b2457f8ed6b2457609
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-14 17:25:37 +0200

    libwifi: bcm: return maxrate for wifi_get_bitrate

Base directory -> /
 libwifi/bcm.c | 241 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 239 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2019-05-15 09:22:29 +02:00
Jakob Olsson
9bad2df974 wifilife: always set ruleng section, move ubusx check to firewall script 2019-05-15 09:16:32 +02:00
Jakob Olsson
d2fd76637b wifilife: utilize files exec rather than introducing rpcd script object 2019-05-15 09:16:32 +02:00
Sukru Senli
8b7376900b wifilife: copy files folder correctly 2019-05-14 18:46:09 +02:00
Sukru Senli
9986b920ae wifilife: mbid handler files 2019-05-14 18:37:18 +02:00
Jakob Olsson
dad0ba6ba2 introduce mbid files to wifilife 2019-05-14 17:03:17 +02:00
Jakob Olsson
d4269143f6 rulengd: remove default config example 2019-05-14 16:33:22 +02:00
Jakob Olsson
69c9ae7ca1 rulengd: update pkg to include regex support 2019-05-14 16:32:56 +02:00
Jakob Olsson
da9efb447d wifilife: use rulengd to reload firewall script on ubus object add 2019-05-14 16:16:37 +02:00
Jakob Olsson
5219a70614 easy-qos: redirect stderr on json_sslect when getting ip address 2019-05-13 15:36:51 +02:00
Anjan Chanda
ca1854f058 Update feed [ iopsys ] package [ wifilife ]
-------------------------------------------------------------------------------
* 39f74cf replace 'stas' with 'stations' when calling wifix
* 7520b59 agent: add debug prints in steer logic functions
* 49b0f40 agent: fix cntlr preferred list and steer lowrssi sta correctly
* 6446fa0 agent: always keep sta's neighbor list up-to-date
* 3284e0b improve sta's neighbor list
* 9a324f4 cntlr: improve handling of low-rssi sta events
* 56cc6ea cntlr: cleanup and fix parsing wifi.sta events
* a15c1b6 cntlr issues STEER if it finds better nbr for STA
* e86b4de agent: handle 'beacon_report' events from stas
* cbee6dd cntlr: start monitoring sta's signal in network
* e8c7e80 agent: introduce cmd to trigger sta monitoring
* 59dfbd5 agent: do not arm sta's timers when bss is disabled in config
* 0a3465d agent: inform controller when rssi of a sta becomes low
* 165c1cc build steer-list from sta's neighbor-list only
* 6971890 rename cmd_get_oui len to ouis
* 78ccf99 agent: set default mobility domain to 500
* 9025601 agent: remove some debugging prints
* 2692001 minor clean up and print refactor
* 505bb99 dynamically get oui0s, get mobility domain from cfg
* 842784f cntlr: pass correct bssid to active_sta_info
* fa54386 move arp_flush from cntlr to agent
* 3be8e7f refactor and extend active_sta functionality
* ef39a8e agent: halt execution if disabled in config
-------------------------------------------------------------------------------
commit 39f74cf1afa9435fafce3c7ef56fcee8e07f1cfc
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-13 13:15:51 +0200

    replace 'stas' with 'stations' when calling wifix

Base directory -> /
 src/agent.c | 4 ++--
 src/cntlr.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit 7520b5906b3ca001c78bd13cd5fbba7aecb7f863
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-09 10:51:54 +0200

    agent: add debug prints in steer logic functions

Base directory -> /
 src/agent.c         |  6 ++++++
 src/default_rules.c | 16 ++++++++++------
 2 files changed, 16 insertions(+), 6 deletions(-)
-------------------------------------------------------------------------------
commit 49b0f4007ec4bdd598ab0b6bf8c62a32095c52d9
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-04 12:17:51 +0200

    agent: fix cntlr preferred list and steer lowrssi sta correctly

Base directory -> /
 src/agent.c         | 12 ++++++------
 src/cntlr.c         | 40 +++++++++++++++++++++++++++++++---------
 src/comm.h          |  2 +-
 src/default_rules.c | 13 +++++++++----
 src/hash_table.h    |  1 +
 5 files changed, 48 insertions(+), 20 deletions(-)
-------------------------------------------------------------------------------
commit 6446fa0579deac18c6d3a19ba03ae7b0eb51caba
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-03 22:34:26 +0200

    agent: always keep sta's neighbor list up-to-date

Base directory -> /
 src/agent.c         | 38 ++++++++++++++++++++++----------------
 src/default_rules.c | 20 ++++++++++++--------
 src/utils.h         | 16 ++++++++++++++++
 3 files changed, 50 insertions(+), 24 deletions(-)
-------------------------------------------------------------------------------
commit 3284e0bc978cd03bd25b2fcb91ed65eaa679a29b
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-03 17:28:15 +0200

    improve sta's neighbor list

Base directory -> /
 src/agent.c         |  55 ++++++++++++++++-----
 src/cntlr.c         | 139 +++++++++++++++++++++++++++-------------------------
 src/default_rules.c |  19 +++++--
 src/utils.c         |  51 ++++++++++++++++++-
 4 files changed, 180 insertions(+), 84 deletions(-)
-------------------------------------------------------------------------------
commit 9a324f4d2b94fe9242e9d8ccd3e47aae60cf8f51
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-03 13:23:02 +0200

    cntlr: improve handling of low-rssi sta events

Base directory -> /
 src/agent.c      |  2 ++
 src/cntlr.c      | 32 ++++++++++++++++++++------------
 src/hash_table.c |  4 ++++
 3 files changed, 26 insertions(+), 12 deletions(-)
-------------------------------------------------------------------------------
commit 56cc6ea7c9e8809d2c16d72a71e0a0cadd63817f
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-03 09:07:34 +0200

    cntlr: cleanup and fix parsing wifi.sta events

Base directory -> /
 src/agent.c |  6 +++---
 src/cntlr.c | 68 ++++++++++++++++++++++++++++++++++++++-----------------------
 2 files changed, 46 insertions(+), 28 deletions(-)
-------------------------------------------------------------------------------
commit a15c1b6ab1f069885df7d917c5bba7cb8261d0f2
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-01 13:02:43 +0200

    cntlr issues STEER if it finds better nbr for STA

Base directory -> /
 src/agent.c         | 36 ++++++++++++++++++++++++++++++++++--
 src/agent.h         |  3 ++-
 src/cntlr.c         | 24 ++++++++++++++++++++++--
 src/comm.h          |  7 +++++++
 src/default_rules.c | 31 ++++++++++++++++++++++++-------
 5 files changed, 89 insertions(+), 12 deletions(-)
-------------------------------------------------------------------------------
commit e86b4ded19d4c5724c95e49b32fefd9e5c9406b4
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-30 13:29:41 +0200

    agent: handle 'beacon_report' events from stas

Base directory -> /
 src/agent.c         | 40 +++++++++++++++++++++++++++++-----------
 src/default_rules.c | 17 +++++++++++------
 2 files changed, 40 insertions(+), 17 deletions(-)
-------------------------------------------------------------------------------
commit cbee6dd58d64c6e9f8b52bbf929f8d6b7856053a
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-29 14:17:28 +0200

    cntlr: start monitoring sta's signal in network

Base directory -> /
 src/cntlr.c      | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++------
 src/hash_table.h |  3 +++
 2 files changed, 67 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
commit e8c7e801e73d26884b93ae7b988d3abebcba6e08
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-28 20:38:26 +0200

    agent: introduce cmd to trigger sta monitoring

Base directory -> /
 src/agent.c | 21 +++++++++++++++++++++
 src/comm.h  |  2 ++
 2 files changed, 23 insertions(+)
-------------------------------------------------------------------------------
commit 59dfbd5f1aa134ada32caae6946d15ea7fd58ab4
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-28 13:33:15 +0200

    agent: do not arm sta's timers when bss is disabled in config

Base directory -> /
 src/agent.c | 7 +++++++
 1 file changed, 7 insertions(+)
-------------------------------------------------------------------------------
commit 0a3465deb264dd43b09a4f2a632bd4b8dff872cf
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-28 12:33:45 +0200

    agent: inform controller when rssi of a sta becomes low

Base directory -> /
 src/agent.c | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 src/agent.h |  2 +-
 src/cntlr.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 src/comm.h  | 12 ++++++++++-
 4 files changed, 145 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
commit 165c1cc715c07e0c11e630fd472b60dcdabc76b1
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-27 11:45:04 +0200

    build steer-list from sta's neighbor-list only

Base directory -> /
 src/agent.c         | 100 ++++++++++++++++++++++++++++++++--------------------
 src/agent.h         |  18 +++++++---
 src/default_rules.c |   8 ++++-
 src/utils.c         |   6 ++--
 4 files changed, 86 insertions(+), 46 deletions(-)
-------------------------------------------------------------------------------
commit 6971890314a06200f60d4c949d9b9654029b9fc3
Author: Jakob Olsson <jakob.olsson@iopsys.eu>
Date: 2019-04-26 12:32:49 +0200

    rename cmd_get_oui len to ouis

Base directory -> /
 src/agent.c | 2 +-
 src/cntlr.c | 2 +-
 src/comm.h  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit 78ccf99c31adac40d44c10d0d43e5f77d8e922d5
Author: Jakob Olsson <jakob.olsson@iopsys.eu>
Date: 2019-04-26 12:03:49 +0200

    agent: set default mobility domain to 500

Base directory -> /
 src/config.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
commit 9025601e7350db19ace8cdac0f1177b7f160cde7
Author: Jakob Olsson <jakob.olsson@iopsys.eu>
Date: 2019-04-26 11:48:59 +0200

    agent: remove some debugging prints

Base directory -> /
 src/agent.c | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)
-------------------------------------------------------------------------------
commit 2692001a2a941f1bd7086fa3e68ba3dfa75dd440
Author: Jakob Olsson <jakob.olsson@iopsys.eu>
Date: 2019-04-26 09:49:06 +0200

    minor clean up and print refactor

Base directory -> /
 src/agent.c | 50 +++++++++++++++++++++++++++++++-------------------
 src/cntlr.c | 13 +++++++------
 src/utils.c |  4 ++--
 src/utils.h |  2 +-
 4 files changed, 41 insertions(+), 28 deletions(-)
-------------------------------------------------------------------------------
commit 505bb9940557f6420f94e6f4ed91aa5acde943bf
Author: Jakob Olsson <jakob.olsson@iopsys.eu>
Date: 2019-04-25 10:54:10 +0200

    dynamically get oui0s, get mobility domain from cfg

Base directory -> /
 src/agent.c  | 191 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 src/cntlr.c  |  50 ++++++++++++++--
 src/cntlr.h  |   3 +
 src/comm.h   |  11 ++++
 src/config.c |  22 ++++++-
 src/config.h |   3 +
 src/utils.c  |  14 ++++-
 src/utils.h  |   3 +
 8 files changed, 289 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
commit 842784fc4d10013765ed6bc4cfa7a17a550cb3e7
Author: Jakob Olsson <jakob.olsson@iopsys.eu>
Date: 2019-04-25 15:10:54 +0200

    cntlr: pass correct bssid to active_sta_info

Base directory -> /
 src/cntlr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit fa5438630046fba1a3e6c425507574ff3c2754ec
Author: Jakob Olsson <jakob.olsson@iopsys.eu>
Date: 2019-04-25 10:51:56 +0200

    move arp_flush from cntlr to agent

Base directory -> /
 src/agent.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 src/cntlr.c | 44 +++++++++++++++++++-------------------
 2 files changed, 92 insertions(+), 23 deletions(-)
-------------------------------------------------------------------------------
commit 3be8e7f81cb21fbb09260c933f3074591b74a193
Author: Jakob Olsson <jakob.olsson@iopsys.eu>
Date: 2019-04-24 11:51:06 +0200

    refactor and extend active_sta functionality

    Stale clients turned out to be a problem at mediatek devices as well so
    active_sta functionality was extended to invoke disconnect_sta on missing
    disassociate events through ubusx.

Base directory -> /
 src/cntlr.c      | 119 ++++++++++++++++++++++++++++++++++++++++++++++++-------
 src/hash_table.c |  28 ++++++++++---
 src/hash_table.h |   6 ++-
 3 files changed, 130 insertions(+), 23 deletions(-)
-------------------------------------------------------------------------------
commit ef39a8e67b4da32179d79ea342f0fa2abd854ab4
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-25 14:10:23 +0200

    agent: halt execution if disabled in config

Base directory -> /
 src/agent.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
2019-05-13 13:49:24 +02:00
Ronny Nilsson
79a038f283 voice: minor cleanups of unused code. 2019-05-13 13:45:19 +02:00
Amin Ben Ramdhane
d6890613f4 icwmp: TR181 Ethernet object 2019-05-13 12:30:58 +01:00
Amin Ben Ramdhane
c6c5364e5c icwmp: 4.0-2019-05-13 2019-05-13 11:39:32 +01:00
Anjan Chanda
bf4985ce65 Update feed [ iopsys ] package [ wifimngr ]
-------------------------------------------------------------------------------
* 8fe360e add ubus method to monitor stas
-------------------------------------------------------------------------------
commit 8fe360e39fa71dbf5f7618afaba4b05da804981e
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-11 13:08:37 +0200

    add ubus method to monitor stas

Base directory -> /
 wifimngr.c | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)
-------------------------------------------------------------------------------
2019-05-13 11:05:12 +02:00
Anjan Chanda
5c857e41a8 Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* 49a3849 libwifi: bcm: remove unused variable warnings
* c10cdf1 libwifi: bcm: use initialized args in get_security
* 2cb67c2 libwifi: new api to monitor unassociated sta
-------------------------------------------------------------------------------
commit 49a3849f29cf59a7ba1f2f4942ffbd3b6d09a6e9
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-13 10:58:27 +0200

    libwifi: bcm: remove unused variable warnings

Base directory -> /
 libwifi/bcm.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
-------------------------------------------------------------------------------
commit c10cdf1f60f5b753e4b73dc7eafe99d011947751
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-11 20:40:24 +0200

    libwifi: bcm: use initialized args in get_security

Base directory -> /
 libwifi/bcm.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit 2cb67c2c27e9bee582b85219e1ea77e8449d06d4
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-11 12:59:45 +0200

    libwifi: new api to monitor unassociated sta

    Support monitoring of unassociated stas in BCM and MTK wifi. This adds very
    basic sta monitoring support. No fancy options supported yet. Also stopping
    an ongoing monitor is not possible now. BCM wifi drivers do not report time
    of the monitored data, thus making it less useful.

Base directory -> /
 libwifi/bcm.c  | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 libwifi/mtk.c  | 42 ++++++++++++++++++++++++++++++++++++++++++
 libwifi/wifi.c | 11 +++++++++++
 libwifi/wifi.h | 13 +++++++++++++
 4 files changed, 112 insertions(+)
-------------------------------------------------------------------------------
2019-05-13 10:59:25 +02:00
Jakob Olsson
85c92f04f3 Revert "easy-qos: update ebtables to add repeated addresses preemptively"
This reverts commit 87e70ef5d2.
2019-05-13 09:48:16 +02:00
Sukru Senli
b36f5ef953 icwmp: 4.0-2019-05-12 2019-05-12 12:43:16 +02:00
Jakob Olsson
c789b4707f wifimngr: update pkg to include encryption fix on status print 2019-05-10 15:11:58 +02:00
Jakob Olsson
4e09f48505 easy-soc-libs: update pkg to include libwif encryption fix 2019-05-10 15:10:32 +02:00
Jakob Olsson
87e70ef5d2 easy-qos: update ebtables to add repeated addresses preemptively 2019-05-09 14:16:36 +02:00
Ronny Nilsson
89c54abec6 voice: Reduce an audio delay that occurred when Dect keypad digits where pressed. 2019-05-09 13:54:33 +02:00
yyashvardhan
bca0c5779b uspd: implemented new operate commands 2019-05-09 16:03:45 +05:30
Amin Ben Ramdhane
81245bc471 icwmp-4.0-2019-05-08 2019-05-08 16:46:03 +01:00
Jakob Olsson
74259b0f9b netmodes: update default config values for macfilter 2019-05-07 08:59:55 +02:00
Jakob Olsson
3f7e6e8112 netmode: wps_pbc to wps_pushbutton 2019-05-06 16:15:13 +02:00
Jakob Olsson
0e2e9bd7e0 netmode: bss_max to maxassoc 2019-05-06 16:15:13 +02:00
Amin Ben Ramdhane
71afb05602 icwmp: Fix the setting of outgoing line 2019-05-06 14:18:33 +01:00
Amin Ben Ramdhane
fb6ffdb483 icwmp-4.0-2019-05-06 2019-05-06 10:47:22 +01:00
Sukru Senli
05c3d1131e uspd: update package title 2019-05-03 18:11:01 +02:00
vdutta
93c3e1beab uspd: ubus usp backend 2019-05-03 17:36:57 +02:00
Ronny Nilsson
7cfe3d36f2 voice: Default reset wasn't working for external Dect in Iopsys 4.
refs #489
2019-05-03 16:59:12 +02:00
Sukru Senli
d1cf6136e1 icwmp: get correct line num for voice profile 2019-05-03 12:54:28 +02:00
Amin Ben Ramdhane
b9e537afdf icwmp-4.0-2019-05-03 2019-05-03 10:43:16 +01:00
Ronny Nilsson
62cb3bac48 voice: fix toggling parallel calls with R0, R1, R3 as well
as remind user if he forgetts a parked call.
refs #490
2019-05-02 21:41:07 +02:00
Anjan Chanda
492ec4ba0b Update feed [ iopsys ] package [ wifimngr ]
-------------------------------------------------------------------------------
* 659602b wps - handle commands when no interface is provided
-------------------------------------------------------------------------------
commit 659602bc62a244d5b53e452b7ee10ff846f03d01
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-05-02 09:53:29 +0200

    wps - handle commands when no interface is provided

Base directory -> /
 wps.c | 85 ++++++++++++++++++++++++++++++++++++++++++++++---------------------
 1 file changed, 59 insertions(+), 26 deletions(-)
-------------------------------------------------------------------------------
2019-05-02 09:59:50 +02:00
Sukru Senli
e5c8ff6b69 iop: genconfig: use iopsys consumer repo by default 2019-04-30 15:36:44 +02:00
Oussama Ghorbel
62aa40ceea uboot:intel_mips update revision
15e223e norrland: match the nand reserved block for kernel to uboot
value
2019-04-30 14:06:47 +02:00
Ronny Nilsson
2e01bf6bb6 Pressing R0 in combination with call waiting feature didn't give a correct busy tone. 2019-04-29 15:02:02 +02:00
Oussama Ghorbel
000f56e96d uboot:intel_mips: update revision 2019-04-26 18:41:03 +02:00
Amin Ben Ramdhane
6dc5b1361b icwmp-4.0-2019-04-26 2019-04-26 16:54:45 +01:00
Oussama Ghorbel
9cfe56a4dd gryphon-led-module: avoid turn off the led in module probe 2019-04-26 17:36:34 +02:00
Oussama Ghorbel
b9057e4503 uboot:intel_mips: update revision 2019-04-26 17:33:13 +02:00
Amin Ben Ramdhane
517b5beb7f icwmp: Add TWAMP Protocol 2019-04-26 12:07:07 +01:00
Jakob Olsson
e970f337e6 wifilife: update pkg hash to include arp flush and stale entry refactor 2019-04-26 12:38:40 +02:00
Amin Ben Ramdhane
6e7f5acd4e icwmp: Add Wifi Life parameters 2019-04-25 15:02:07 +01:00
Sukru Senli
bcb6a76472 wifilife: do not start wifiagent if wifilife is disabled 2019-04-25 11:42:01 +02:00
Jakob Olsson
061bbbeb2a wifilife: update pkg hash to include active_sta extension #575 2019-04-24 12:27:09 +02:00
Anjan Chanda
501fbb83c9 Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* f6deba9 libwifi: intel - implement wps get status
-------------------------------------------------------------------------------
commit f6deba973cba01d630fdc40c6e97c384b07e3df5
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-24 11:23:23 +0200

    libwifi: intel - implement wps get status

Base directory -> /
 libwifi/nlwifi.c | 28 +++++++++++++++++++++++++---
 1 file changed, 25 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
2019-04-24 11:27:13 +02:00
Kenneth Johansson
6ca5a756fd iopu: remove unused variable. 2019-04-23 21:16:03 +02:00
Anjan Chanda
c4649c0435 Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* f6d4cb7 libwifi: intel - wps set/get pin of an AP interface
-------------------------------------------------------------------------------
commit f6d4cb75048f2c509f42ab7590dced3f9ff5e29a
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-23 16:14:07 +0200

    libwifi: intel - wps set/get pin of an AP interface

Base directory -> /
 libwifi/nlwifi.c | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
-------------------------------------------------------------------------------
2019-04-23 16:20:31 +02:00
Anjan Chanda
7d7dddbded Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* 929a868 libwifi: bcm - fix few warnings
* 32e0552 libwifi: mtk - fix a minor no-return warning
* f277523 libwifi: fix wps pin mode connection
* 0cd0e9e libwifi: intel - implement wps pbc start, stop and status
-------------------------------------------------------------------------------
commit 929a868b6cadbf6c165cb74a5026266f1a7146c4
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-23 13:49:50 +0200

    libwifi: bcm - fix few warnings

Base directory -> /
 libwifi/bcm.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
-------------------------------------------------------------------------------
commit 32e0552df05fbeb82f81a8220fb7fa92afaf7145
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-23 13:26:13 +0200

    libwifi: mtk - fix a minor no-return warning

Base directory -> /
 libwifi/mtk.c | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
commit f2775232bcbba0dc903c67bf20383686bdfe0a6d
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-23 13:18:53 +0200

    libwifi: fix wps pin mode connection

Base directory -> /
 libwifi/mtk.c    |  2 +-
 libwifi/nlwifi.c | 25 ++++++++++++++++---------
 libwifi/wifi.c   |  7 +++++--
 3 files changed, 22 insertions(+), 12 deletions(-)
-------------------------------------------------------------------------------
commit 0cd0e9ed02558538b279b68eb8c9f4dc50bc2bf4
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-22 18:11:31 +0200

    libwifi: intel - implement wps pbc start, stop and status

Base directory -> /
 libwifi/nlwifi.c | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
-------------------------------------------------------------------------------
2019-04-23 14:00:04 +02:00
Anjan Chanda
f6ab509b13 Update feed [ iopsys ] package [ wifimngr ]
-------------------------------------------------------------------------------
* dfe0095 publish 'wifix.wps' object and do minor cleanups
-------------------------------------------------------------------------------
commit dfe0095a43a5555f27403b76c9b596efcdb18136
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-22 20:04:23 +0200

    publish 'wifix.wps' object and do minor cleanups

    Add methods needed to start, stop and configure wps. Cleanup code and get
    rid of the extra translation layer between libwifi APIs and wifimngr's ubus
    methods. Anyway, wifimngr will interface directly with libwifi apis.

Base directory -> /
 Makefile        |   2 +-
 main.c          |   9 +-
 wifimngr.c      | 150 ++++++++++++++-------
 wifimngr.h      |  12 +-
 wifimngr_wifi.c | 145 --------------------
 wifimngr_wifi.h |  22 ---
 wps.c           | 405 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 528 insertions(+), 217 deletions(-)
-------------------------------------------------------------------------------
2019-04-23 13:59:35 +02:00
Anjan Chanda
33400e8177 Update feed [ iopsys ] package [ wifimngr ]
-------------------------------------------------------------------------------
* 09f37f6 fix incorrect api check for list_neighbor
-------------------------------------------------------------------------------
commit 09f37f6a32b486e82cef47ee269303bfff394006
Author: Anjan Chanda <anjan.chanda@iopsys.eu>
Date: 2019-04-22 15:40:39 +0200

    fix incorrect api check for list_neighbor

Base directory -> /
 wifimngr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2019-04-22 16:21:29 +02:00
Sukru Senli
f6e0245c40 wifilife-1.0.3: adapt to use wifix object stations method 2019-04-20 13:10:00 +02:00
Sukru Senli
21460d7c51 voice-client: convert from old to new tel_advanced section name 2019-04-19 22:20:32 +02:00
Sukru Senli
31675b540f iop: config: remove juci-natalie-dect from default config 2019-04-19 17:02:29 +02:00
Omar Kallel
1706a785da icwmp: DHCPv6 object 2019-04-18 15:32:08 +01:00
Oussama Ghorbel
bf621a4371 Update feed [ iopsys ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* 7694301 remove the warning Error: option is missing: sx9512_i2c_device
-------------------------------------------------------------------------------
commit 769430115b6dd984313574c3fa2a6d99c65cd223
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2019-04-18 13:46:58 +0200

    remove the warning Error: option is missing: sx9512_i2c_device

Base directory -> /
 src/touch_sx9512.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2019-04-18 13:47:41 +02:00
Oussama Ghorbel
a0ae93e039 Update feed [ iopsys ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* 7603235 remove compilation warning about declaration shadow
* 99f3837 added support for RGB LED (SK9822)
-------------------------------------------------------------------------------
commit 76032350a6182f035bd47ea03c96e4386f3cd5cf
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2019-04-18 11:38:06 +0200

    remove compilation warning about declaration shadow

Base directory -> /
 src/gpio_led.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 99f383757fbbd9227ffc48ac2fb77597787d1aef
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2019-04-18 11:24:43 +0200

    added support for RGB LED (SK9822)

Base directory -> /
 src/gpio_led.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 50 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
2019-04-18 12:13:55 +02:00
41 changed files with 523 additions and 81 deletions

View File

@@ -8,10 +8,10 @@
include $(TOPDIR)/rules.mk
PKG_RELEASE:=1
PKG_VERSION:=1.2.0
PKG_VERSION:=1.3.0
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/dectmngr.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=0c029ed2486342e7e7687631b702d5c743f3c41a
PKG_SOURCE_VERSION:=637aa9ef231f81d195f7a1b67c70af445ade7fee
PKG_NAME:=dectmngr2

View File

@@ -13,7 +13,7 @@ PKG_VERSION:=1.0.0
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=be5b0d0c0a1c2abd335aaf19f01f63284d8cc285
PKG_SOURCE_VERSION:=7522faab4142fe2c0ac8cbf71bb0cc5bd49f0750
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/dslmngr.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
endif

View File

@@ -85,7 +85,7 @@ get_ipaddress() {
json_get_keys keys
# jshn seems a bit iffy on having : in key, replace by _
json_select "${1//:/_}"
json_select "${1//:/_}" 2 > /dev/null
json_get_var ip ip
echo "$ip"

View File

@@ -11,7 +11,7 @@ PKG_RELEASE:=1
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=6bd703870262eca9ccbd8c4937c41fe842828ae3
PKG_SOURCE_VERSION:=9b7accf0ac4f7c8010fb06ba83df9e53264b429a
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/easy-soc-libs.git
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@inteno.se>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz

View File

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_RELEASE:=1
PKG_VERSION:=0.2
PKG_SOURCE_VERSION:=44e2472e8c08bef01fab27e8e908d5672f7af136
PKG_SOURCE_VERSION:=631e61b7ab5d86f2f4c86756a117badff9fb0f2c
ifeq ($(CONFIG_ENDPT_OPEN),y)

View File

@@ -192,9 +192,9 @@ static int canyon_led_probe(struct platform_device *pdev)
sk9822_set_color_str(leds, "00FF00");
sk9822_update(leds);
msleep(200);
#endif
sk9822_set_color_str(leds, "000000");
sk9822_update(leds);
#endif
printk(KERN_INFO "canyon led successfully probed\n");

View File

@@ -22,7 +22,7 @@
#include <linux/types.h>
#define SK9822_DEFAULT_NUM_LEDS 32 // U16, used if DT param fails
#define SK9822_DEFAULT_BRIGHTNESS 15 // 5-bit brightness, 0-31
#define SK9822_DEFAULT_BRIGHTNESS 1 // 5-bit brightness, 0-31
typedef struct {
uint8_t b;

View File

@@ -8,11 +8,11 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=icwmp
PKG_VERSION:=4.0-2019-04-05
PKG_VERSION:=4.0-2019-05-21
PKG_FIXUP:=autoreconf
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/icwmp.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=f7e8cee5bcc578cc9bb9307e31d0c057676a377c
PKG_SOURCE_VERSION:=3ae6954f55e90a339561719a0328c0cf3a4b018c
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
@@ -51,6 +51,13 @@ define Package/icwmp_xmpp
DEPENDS:=+libuci +libubox +libexpat +libstrophe
endef
define Package/icwmp_twamp
SECTION:=utils
CATEGORY:=Utilities
TITLE:=TR-069 twamp feature
DEPENDS:=+libuci
endef
define Package/icwmp_udpechoserver
SECTION:=utils
CATEGORY:=Utilities
@@ -219,6 +226,15 @@ define Package/icwmp_udpechoserver/install
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/cwmp_udpechoserver $(1)/etc/config
endef
define Package/icwmp_twamp/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/icwmp_twampd $(1)/usr/sbin/icwmp_twampd
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/init/icwmp_twampd $(1)/etc/init.d/icwmp_twampd
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/cwmp_twamp $(1)/etc/config
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/include/libdatamodel
@@ -255,4 +271,5 @@ $(eval $(call BuildPackage,libdatamodel))
$(eval $(call BuildPackage,icwmp_stun))
$(eval $(call BuildPackage,icwmp_xmpp))
$(eval $(call BuildPackage,icwmp_udpechoserver))
$(eval $(call BuildPackage,icwmp_twamp))
$(eval $(call BuildPackage,icwmp-zstream))

View File

@@ -44,7 +44,6 @@ CONFIG_PACKAGE_juci-minidlna=y
CONFIG_PACKAGE_juci-mod-status=y
CONFIG_PACKAGE_juci-mod-system=y
CONFIG_PACKAGE_juci-mwan3=y
CONFIG_PACKAGE_juci-natalie-dect=y
CONFIG_PACKAGE_juci-netmode=y
CONFIG_PACKAGE_juci-network-device=y
CONFIG_PACKAGE_juci-network-dsl=y

View File

@@ -171,8 +171,8 @@ function genconfig {
echo -e " -a|--list-all\t\tList all Customers and their board types"
echo -e " -b|--boards\t\tList all board types"
echo
echo "Example ./iop genconfig vg50 TELIA"
echo "(if no customerconfig is chosen the Inteno Config will be used)"
echo "Example ./iop genconfig dg200 TELIA"
echo "(if no customerconfig is chosen, iopsys config will be used)"
echo
exit 0
}
@@ -439,7 +439,7 @@ function genconfig {
shift;
done
CUSTREPO="${CUSTREPO:-git@private.inteno.se:customerconfigs}"
CUSTREPO="${CUSTREPO:-git@dev.iopsys.eu:consumer/iopsys.git}"
setup_dirs
create_and_copy_files "$@"

View File

@@ -21,7 +21,6 @@ upd_ubi_id="" # num, UBI volume number for the volume name
run_cleanup=0 # if set the cleanup should be run otherwise we skip it.
run_mount_cleanup=0 # set if we should run umount in cleanup
upd_kernel=0 # set to 1 if system has the kernel in own mtd partition
upd_cfe=0 # set to 1 if system is using cfe as bootloader.
log_stdout=1 # set to 0 to prevent the log to also print to stdout
upd_noreboot=0 # set to 1 if we should not reboot after programming
upd_forceimage=0 # set this to force upgrade even if image is for wrong board.

View File

@@ -12,7 +12,8 @@
"CG300",
"CG301",
"EX400",
"SDX810-AP"
"SDX810-AP",
"NORRLAND"
],
"acl" : [
"admin",

View File

@@ -47,10 +47,10 @@ config wifi-iface
option cipher 'auto'
option key '$WPAKEY'
option gtk_rekey '3600'
option macfilter '0'
option wps_pbc '1'
option macfilter 'disable'
option wps '1'
option wmf_bss_enable '1'
option bss_max '32'
option maxassoc '32'
option ifname 'wl0'
config wifi-device 'wl1'
@@ -87,9 +87,9 @@ config wifi-iface
option cipher 'auto'
option key '$WPAKEY'
option gtk_rekey '3600'
option macfilter '0'
option wps_pbc '1'
option macfilter 'disable'
option wps '1'
option wmf_bss_enable '1'
option bss_max '32'
option maxassoc '32'
option ifname 'wl1'

View File

@@ -9,7 +9,8 @@
],
"excluded_boards" : [
"*G*",
"F*"
"F*",
"NORRLAND"
],
"uplink_band" : 'a',
"downlink_band" : 'a b',

View File

@@ -27,7 +27,7 @@ config wifi-iface
option encryption psk2
option key $WPAKEY
option ifname ra0
option wps_pbc 1
option wps 1
config wifi-device rai0
option band a
@@ -46,7 +46,7 @@ config wifi-iface
option encryption psk2
option key $WPAKEY
option ifname rai0
option wps_pbc 1
option wps 1
config wifi-iface
option device rai0

View File

@@ -9,7 +9,8 @@
],
"excluded_boards" : [
"EX4*",
"SDX810-AP"
"SDX810-AP",
"NORRLAND"
],
"credentials" : 0
}

View File

@@ -47,10 +47,10 @@ config wifi-iface
option cipher 'auto'
option key '$WPAKEY'
option gtk_rekey '3600'
option macfilter '0'
option wps_pbc '1'
option macfilter 'disable'
option wps '1'
option wmf_bss_enable '1'
option bss_max '32'
option maxassoc '32'
option ifname 'wl0'
config wifi-device 'wl1'
@@ -87,9 +87,9 @@ config wifi-iface
option cipher 'auto'
option key '$WPAKEY'
option gtk_rekey '3600'
option macfilter '0'
option wps_pbc '1'
option macfilter 'disable'
option wps '1'
option wmf_bss_enable '1'
option bss_max '32'
option maxassoc '32'
option ifname 'wl1'

View File

@@ -9,7 +9,8 @@
],
"excluded_boards" : [
"*G*",
"F*"
"F*",
"NORRLAND"
],
"reboot" : 0,
"credentials" : 0

View File

@@ -27,7 +27,7 @@ config wifi-iface
option ssid iopsys-$BSSID4
option encryption psk2
option key $WPAKEY
option wps_pbc 1
option wps 1
option ifname ra0
config wifi-device rai0
@@ -47,6 +47,6 @@ config wifi-iface
option ssid iopsys-$BSSID4
option encryption psk2
option key $WPAKEY
option wps_pbc 1
option wps 1
option ifname rai0

View File

@@ -5,6 +5,7 @@
NMTMPDIR=/var/netmodes
OLD_MODE_FILE=/var/netmodes/old_mode
CONF_BACKUP_DIR=/var/netmodes/backup/
SWITCHMODELOCK="/tmp/switching_mode"
MODEDIR=$(uci -q get netmode.setup.dir)
MTK=0
@@ -179,6 +180,11 @@ switch_netmode() {
run_netmode_scripts $curmode "pre"
# make backup of current config before switching
rm -rf $CONF_BACKUP_DIR
mkdir -p $CONF_BACKUP_DIR
cp -af /etc/config/* $CONF_BACKUP_DIR
logger -s -p user.info -t $0 "[netmode] Copying /etc/netmodes/$curmode in /etc/config" >/dev/console
for file in $(ls /etc/netmodes/$curmode/); do
@@ -226,6 +232,28 @@ switch_netmode() {
run_netmode_scripts $curmode "post"
}
revert_netmode() {
local from="$1"
local to="$2"
local rready="$3"
ubus call leds set '{"state" : "allflash"}'
echo "Could not switch to '$from' mode; going back to '$to' mode" > /dev/console
uci -q set netmode.setup.curmode="$to"
uci -q set netmode.setup.repeaterready="$rready"
uci commit netmode
cp -af $CONF_BACKUP_DIR/* /etc/config/
sync
rm -rf $CONF_BACKUP_DIR
rm -rf $OLD_MODE_FILE
echo "Restarting network services" > /dev/console
ubus call network reload
wifi reload
ubus call router.network reload
ubus call leds set '{"state" : "normal"}'
}
wificontrol_takes_over() {
local ret
[ -f /sbin/wificontrol ] || return

View File

@@ -3,6 +3,10 @@
. /usr/share/libubox/jshn.sh
. /lib/functions.sh
WIFISTA=0
STACONF="/etc/Wireless/iNIC/iNIC_ap.dat"
[ -f $STACONF ] && WIFISTA=1
get_if_creds() {
local section=$1
local network=$2
@@ -84,9 +88,22 @@ duplicate_if_single_radio() {
done
}
get_wifi_iface_cfgstr() {
get_cfgno() {
config_get ifname "$1" ifname
[ "$ifname" == "$2" ] && echo "wireless.$1"
}
config_load wireless
config_foreach get_cfgno wifi-iface $1
}
case "$1" in
list)
echo '{ "get_creds": { "network": "str", "file": "str" }, "set_creds": { "file": "str", "from_gui": "str" } }'
if [ $WIFISTA -eq 1 ]; then
echo '{ "get_creds": { "network": "str", "file": "str" }, "set_creds": { "file": "str", "from_gui": "str" }, "connect": { "ssid": "str", "key": "str" }, "forget_network": {} }'
else
echo '{ "get_creds": { "network": "str", "file": "str" }, "set_creds": { "file": "str", "from_gui": "str" } }'
fi
;;
call)
case "$2" in
@@ -136,6 +153,64 @@ case "$1" in
json_dump
;;
connect)
local ssid key enc auth wetif wetcfg wetssid wetkey code
read input
json_load "$input"
json_get_var ssid ssid
json_get_var key key
code=1
[ $WIFISTA -eq 1 ] && wetif="$(uci -q get wireless.$(uci show wireless | grep 'mode=.*wet.*' | cut -d'.' -f2 | head -1).ifname)"
if [ -s /sys/class/net/$wetif/operstate ]; then
wetcfg="$(get_wifi_iface_cfgstr $wetif)"
wetssid="$(uci -q get $wetcfg.ssid)"
wetkey="$(uci -q get $wetcfg.key)"
ssid="${ssid:-$wetssid}"
key="${key:-$wetkey}"
if [ -n "$key" ]; then
auth="WPA2PSK"
enc="AES"
else
auth="OPEN"
enc="NONE"
fi
iwpriv $wetif set ApCliEnable=0
iwpriv $wetif set ApCliSsid="$ssid"
iwpriv $wetif set ApCliAuthMode="$auth"
iwpriv $wetif set ApCliEncrypType="$enc"
iwpriv $wetif set ApCliWPAPSK="$key"
iwpriv $wetif set ApCliEnable=1
iwpriv $wetif set ApCliAutoConnect=1
code=0
fi
json_init
json_add_int "code" $code
json_dump
;;
forget_network)
local wetif wetcfg code
code=1
[ $WIFISTA -eq 1 ] && wetif="$(uci -q get wireless.$(uci show wireless | grep 'mode=.*wet.*' | cut -d'.' -f2 | head -1).ifname)"
if [ -s /sys/class/net/$wetif/operstate ]; then
wetcfg="$(get_wifi_iface_cfgstr $wetif)"
uci -q set $wetcfg.ssid=""
uci -q set $wetcfg.key=""
uci -q commit wireless
sed -i "s/ApCliSsid=.*/ApCliSsid=/g" $STACONF
sed -i "s/ApCliAuthMode=.*/ApCliAuthMode=/g" $STACONF
sed -i "s/ApCliEncrypType=.*/ApCliEncrypType=/g" $STACONF
sed -i "s/ApCliWPAPSK=.*/ApCliWPAPSK=/g" $STACONF
ifconfig $wetif down
ifconfig $wetif up
code=0
fi
json_init
json_add_int "code" $code
json_dump
;;
esac
;;
esac

View File

@@ -1,9 +1,9 @@
choice
prompt "Select Bus"
prompt "Select IPC Bus"
default OWSD_USE_UBUS
depends on PACKAGE_owsd
help
Select which bus to compile owsd for
Select which IPC bus to compile owsd for
config OWSD_USE_DBUS
bool "Use DBUS"
@@ -15,3 +15,11 @@ config OWSD_USE_DBUS_UBUS
bool "Use UBUS and DBUS"
endchoice
config OWSD_UPROXYD
bool "Enable UBUS Proxy Daemon"
default y if OWSD_USE_UBUS || OWSD_USE_DBUS_UBUS
help
Enabling uproxyd automates detection of other
UBUS-X enabled devices in the network

View File

@@ -5,25 +5,27 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=owsd
PKG_VERSION:=1.1.1
PKG_VERSION:=1.1.2
PKG_RELEASE:=1
PKG_SOURCE_PROTO=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/owsd.git
PKG_SOURCE_VERSION:=f0eedeb6fd061edf3784d6bf86fa60b176bf3fe7
PKG_SOURCE_VERSION:=930db7f4af821e91f46107c8a76b60f943ec7c3b
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=${PKG_NAME}-${PKG_VERSION}
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_CONFIG_DEPENDS:=CONFIG_OWSD_USE_DBUS CONFIG_OWSD_USE_UBUS CONFIG_OWSD_USE_DBUS_UBUS
PKG_CONFIG_DEPENDS:=CONFIG_OWSD_USE_DBUS CONFIG_OWSD_USE_UBUS CONFIG_OWSD_USE_DBUS_UBUS CONFIG_OWSD_UPROXYD
USE_UBUS-y:=-DWSD_HAVE_UBUS=ON
USE_DBUS-y:=-DWSD_HAVE_DBUS=ON
USE_BOTH-y:=${USE_UBUS-y} ${USE_DBUS-y}
USE_UPROXYD-y:=-DOWSD_UPROXYD=ON
CMAKE_OPTIONS:=${USE_UBUS-${CONFIG_OWSD_USE_UBUS}} \
${USE_DBUS-${CONFIG_OWSD_USE_DBUS}} \
${USE_BOTH-${CONFIG_OWSD_USE_DBUS_UBUS}}
${USE_BOTH-${CONFIG_OWSD_USE_DBUS_UBUS}} \
${USE_UPROXYD-${CONFIG_OWSD_UPROXYD}}
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
@@ -51,6 +53,8 @@ endef
define Package/owsd/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/owsd $(1)/usr/bin/owsd
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uproxyd $(1)/sbin/uproxyd
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/owsd.init $(1)/etc/init.d/owsd
$(INSTALL_DIR) $(1)/etc/config

View File

@@ -301,11 +301,15 @@ start_service() {
procd_set_param respawn
procd_close_instance
# Start uproxyd
procd_open_instance
procd_set_param command $UPROXYD
procd_set_param respawn
procd_close_instance
if [ "${enable}" -eq 1 ]; then
# Start uproxyd
procd_open_instance
procd_set_param command $UPROXYD
procd_set_param respawn
procd_close_instance
fi
}
#stop_service()

View File

@@ -12,7 +12,7 @@ PKG_NAME:=peripheral_manager
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_SOURCE_VERSION:=c1598f9dc8f2d67fbfcfd831052f40b3cde3d19c
PKG_SOURCE_VERSION:=769430115b6dd984313574c3fa2a6d99c65cd223
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/peripheral-manager

View File

@@ -6,9 +6,9 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=questd
PKG_VERSION:=4.0.1
PKG_VERSION:=4.1.0
PKG_SOURCE_VERSION:=d19501b6f80ef649b2ffd2f87132df885ce4581f
PKG_SOURCE_VERSION:=fdd80766b50fce51f68ff675b0e5398e0d31d3bb
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/questd
@@ -59,7 +59,6 @@ define Package/questd/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/questd $(1)/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wificontrol $(1)/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/graphd $(1)/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/uproxyd $(1)/sbin/
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/netcheck $(1)/usr/bin/
endef

View File

@@ -12,7 +12,7 @@ PKG_INSTALL:=1
PKG_SOURCE_PROTO=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/rulengd.git
PKG_SOURCE_VERSION:=63569245b62d90d3106cc826f2d2b18f51c0b885
PKG_SOURCE_VERSION:=ad94ccdd82b22527ab32937ca1a2682030319ed3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=${PKG_NAME}-${PKG_VERSION}
PKG_INSTALL:=1

View File

@@ -1,7 +0,0 @@
config rule
option event 'test.event'
list event_data "{'test': 1, 'reason': 1}"
list event_data "{'tests': [1, 2, 3]}"
option method 'file->write'
list method_data "{'path': '/tmp/test_event.txt'}"
list method_data "{'data': 'test event received!'}"

View File

@@ -14,7 +14,7 @@ PKG_SOURCE_PROTO:=git
ifdef CONFIG_TARGET_intel_mips
PKG_SOURCE_URL:=git@dev.iopsys.eu:intel/uboot.git
PKG_SOURCE_VERSION:=0ef53f269c27f8e736fd30fd1a874159f70c76bf
PKG_SOURCE_VERSION:=c77089efc41ea3292125330221bd5016796631b9
else
PKG_SOURCE_URL:=https://dev.iopsys.eu/fork/uboot.git
PKG_SOURCE_VERSION:=3ef2ba866a99205496e0ce01935c89a1778d9b85
@@ -74,7 +74,7 @@ define uboot/grx500_norrland
TITLE:=U-Boot for Norrland Board
UBOOT_IMG:=u-boot-nand.bin
DEPENDS:=@TARGET_intel_mips
PKG_RELEASE:=10
PKG_RELEASE:=14
endef
UBOOTS := \

View File

@@ -8,7 +8,7 @@ PKG_NAME:=uspd
PKG_VERSION:=1.0.0
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=64f39a5041da3d6c0a45cbc901dea3bd062d96fe
PKG_SOURCE_VERSION:=e8ee6a35751e661dd621b8b5c4cb788fe2081f58
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/uspd.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
@@ -19,7 +19,7 @@ include $(INCLUDE_DIR)/package.mk
define Package/uspd
SECTION:=utils
CATEGORY:=Utilities
TITLE:=TR069 extention for USP
TITLE:=USP ubus backend
DEPENDS:=+libubox +ubus +icwmp-curl
endef

View File

@@ -130,7 +130,7 @@ exten => s,1, Goto(s-${DIALSTATUS},1)
exten => s,n, Hangup()
;handle busy (with CBBS support)
exten => s-BUSY,1, Read(DIGIT,Busy,1,in,30)
exten => s-BUSY,1, Read(DIGIT,Busy,1,i,30)
exten => s-BUSY,n, GotoIf($["${DIGIT}" = "${ARG8}"]?ccbs)
exten => s-BUSY,n, Hangup()
exten => s-BUSY,n(ccbs), Set(result=${SHELL(/usr/lib/asterisk/cbbs.sh ${ARG1} ${ARG2} ${ARG3} ${ARG4} ${ARG5} ${ARG6} ${ARG7})})

View File

@@ -1917,9 +1917,11 @@ configure_tel_line()
config_get clir $1 clir
#If line is configured with no sip_provider, or sip_provider is disabled, use local_extensions context
config_get sip_provider_user $sip_provider user
config_get sip_provider_enabled $sip_provider enabled
if [ "$sip_provider" == "-" -o -z "$sip_provider_enabled" -o "$sip_provider_enabled" == "0" -o -z "$sip_provider_user" ] ; then
[ -n "$sip_provider" ] && {
config_get sip_provider_user $sip_provider user
config_get sip_provider_enabled $sip_provider enabled
}
if [ -z "$sip_provider" -o "$sip_provider" == "-" -o -z "$sip_provider_enabled" -o "$sip_provider_enabled" == "0" -o -z "$sip_provider_user" ] ; then
sip_provider="local_extensions"
fi
@@ -2062,6 +2064,48 @@ pbx_fix_ownership()
chown $ASTUSER:$ASTGROUP -R $ASTDIRSRECURSIVE
}
# Set voice_client.LINE_x.sip_account correctly as per "voice_client.sipX.call_lines"
set_line_sip_account()
{
local tel_line=$1
local old_sip_account=
local new_sip_account=
local line_name=$(getLineName)
local line_name_len=${#line_name}
local lnum=${tel_line:${line_name_len}}
local chan_name=$(getChannelName)
local ___type="sip_service_provider"
local section cfgtype call_lines chan_num
config_get old_sip_account $tel_line sip_account
# Note: On Intel platform, tel_line's section name starts with 0, e.g. tapi0.
# But channel index in voice_client.sipX.call_lines starts with 1, e.g. TAPI/1
if [ "$line_name" == "tapi" ]; then
chan_num=$((lnum+1))
else
chan_num=$lnum
fi
for section in ${CONFIG_SECTIONS}; do
config_get cfgtype "$section" TYPE
[ -n "$___type" -a "x$cfgtype" != "x$___type" ] && continue
config_get call_lines "$section" call_lines
# Note: tel_line's section name starts with 0, e.g. tapi0 or brcm0.
# But channel index in voice_client.sipX.call_lines starts with 1, e.g. TAPI/1
[ -n "$call_lines" ] && echo "$call_lines" | grep -q "$chan_name/$chan_num" && {
# Append this sip_acount to the tel line
if [ -z "$new_sip_account" ]; then
new_sip_account="$section"
else
new_sip_account="$new_sip_account $section"
fi
}
done
[ "$old_sip_account" != "$new_sip_account" ] && uci_set voice_client $tel_line sip_account "$new_sip_account"
}
#
# Calculate a name for each $(getLineName) line, depending on port type
# and number. The name is used to make UI look better.
@@ -2158,6 +2202,12 @@ start_service() {
# Load config file
config_load voice_client
########################################################
# Set line sip_account according to sip accounts'
# settings
########################################################
config_foreach set_line_sip_account tel_line
########################################################
# Set line names according to board parameters
# and delete non-existing lines from voice_client config
@@ -2166,6 +2216,9 @@ start_service() {
config_foreach set_line_name tel_line $maxlinenum
uci_commit voice_client
# Reload the config since it has changed
config_load voice_client
#######################################
# Create temporary files from templates
#######################################
@@ -2291,16 +2344,17 @@ stop_service() {
reload_service() {
start
#stop
# turn off voice led; asterisk will turn it on
# if there is a registered account
# turn off voice led; asterisk will turn it on if there is a registered account
ubus call led.voice1 set '{"state":"off"}'
# FXS channel module must be reloaded before sip module. Otherwise some attributes like
# line's registration state which is updated by SIP module through callback might be
# reset.
asterisk -rx "$(getChipVendor) reload"
asterisk -rx "config reload $ASTERISKDIR/sip.conf"
sleep 1
asterisk -rx "core reload"
asterisk -rx "dialplan reload"
asterisk -rx "$(getChipVendor) reload"
}
service_triggers() {

View File

@@ -5,6 +5,7 @@
# Adapt to config section name changes
grep -q brcm_line /etc/config/voice_client && sed -i 's/brcm_line/tel_line/g' /etc/config/voice_client
grep -q brcm_advanced /etc/config/voice_client && sed -i 's/brcm_advanced/tel_advanced/g' /etc/config/voice_client
grep -q BRCM /etc/config/voice_client && sed -i 's/BRCM/TEL/g' /etc/config/voice_client
# Add call filter section
uci -q get voice_client.call_filter0 >/dev/null || {
@@ -70,9 +71,9 @@ EOT
# If dtmfmode is set to the obsolete compatability change to auto
sed -i 's/dtmfmode\s*=\s*compatibility/dtmfmode=auto/' /etc/asterisk/sip.conf
if [ $(uci get voice_client.SIP.dtmfmode) == 'compatibility' ]; then
uci set voice_client.SIP.dtmfmode='auto'
uci commit
if [ "$(uci get voice_client.SIP.dtmfmode)" == "compatibility" ]; then
uci set voice_client.SIP.dtmfmode="auto"
uci commit voice_client
fi
exit 0

View File

@@ -5,9 +5,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=wifilife
PKG_VERSION:=1.0.2
PKG_VERSION:=1.0.3
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=de6183cda406fbd1a98779bda2ea1b2ffb8f2e04
PKG_SOURCE_VERSION:=fe0e8fd3832ef3a70ac3938f9b458d05a349b0be
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>
ifeq ($(CONFIG_WIFILIFE_OPEN),y)
@@ -52,10 +52,8 @@ TARGET_CFLAGS += \
MAKE_PATH:=src
define Package/wifilife/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/wifilife.init $(1)/etc/init.d/wifilife
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) ./files/etc/uci-defaults/* $(1)/etc/uci-defaults/
$(INSTALL_DIR) $(1)/etc
$(CP) -r ./files/* $(1)/
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wifiagent $(1)/usr/sbin/
endef

View File

@@ -0,0 +1,67 @@
#!/bin/sh
. /lib/functions/mbid.sh
remove_mbid_rules() {
old_rules="$(cat "/tmp/mbid_rules" 2>/dev/null)"
IFS=$'\n'
for old_rule in $old_rules; do
old_rule=${old_rule/-A /-D }
eval $old_rule 2>/dev/null
done
rm /tmp/mbid_rules
}
# read firewall parental rules and add repeated addresses
append_mbid_rules() {
[ "$(uci -q get owsd.ubusproxy.enable)" == "1" ] || return
octets=$(get_octets)
mobid=$(get_mobid)
[ -z "$mobid" -o -z "$octets" ] && return
rule=""
oct2="$(echo $mobid | awk '{print $1}')"
oct3="$(echo $mobid | awk '{print $2}')"
rules="$(cat /tmp/fw3.rules.ipv4 | grep -i forward | grep -i "\-\-mac\-source")"
[ -z "$rules" ] && return
IFS=$'\n'
for rule in $rules; do
chain="$(echo $rule | awk '{print tolower($5)}')"
[ -z "$chain" -o "$chain" != "forward" ] && continue
# delete rule, replace --append with --delete
del_rule=${rule/-A /-D }
while [ -z "$(eval "$del_rule" 2>&1)" ]; do
:
done
mac=$(echo $rule | awk '{print $9}')
# re-append rule
eval $rule
rpt_macs=$(repeated_macs $octets $oct2 $oct3 $mac | awk '{print toupper($0)}')
> /tmp/mbid_rules
for rpt_mac in $rpt_macs; do
[ -z "$rpt_mac" ] && continue
rpt_rule=${rule/$mac/$rpt_mac}
del_rule=${rpt_rule/-A /-D }
while [ -z "$(eval "$del_rule" 2>&1)" ]; do
:
done
eval $rpt_rule
echo $rpt_rule >> /tmp/mbid_rules
done
done
}
while [ -f /tmp/mbid.lock ]; do
sleep 2
done
touch /tmp/mbid.lock
remove_mbid_rules
append_mbid_rules
rm /tmp/mbid.lock

View File

@@ -9,6 +9,8 @@ EXTRA_COMMANDS="enable_check"
start_service() {
[ "$(uci -q get wifilife.@wifilife[0].enabled)" == "0" ] && return
procd_open_instance
procd_set_param command ${PROG} -d -l -f -o /tmp/wifiagent.log
procd_set_param respawn

View File

@@ -0,0 +1,21 @@
{
"if" : [
{
"event": "ubus.object.add",
"regex": true,
"match": {
"path":".*\/wifi\\.agent"
}
}
],
"then" : [
{
"object": "file",
"method":"exec",
"args": {
"command": "sh",
"params": ["/etc/firewall.mbid"]
}
}
]
}

View File

@@ -18,5 +18,27 @@ add_dnsmasq_lease_hwmask() {
fi
}
add_firewall_mbid() {
local ubusx="$(uci -q get owsd.ubusproxy.enable)"
if [ -f /etc/firewall.mbid ]; then
uci -q get firewall.mbid || {
uci -q set firewall.mbid=include
uci -q set firewall.mbid.path="/etc/firewall.mbid"
uci -q set firewall.mbid.reload=1
uci del_list firewall.mbid._access_w=root
uci add_list firewall.mbid._access_w=root
uci commit firewall
}
fi
}
add_ruleng_section() {
uci -q add ruleng rule
uci -q set ruleng.@rule[-1].recipe='/etc/ruleng/mbid.json'
uci commit ruleng
}
add_owsd_object_wifi
add_dnsmasq_lease_hwmask
add_firewall_mbid
add_ruleng_section

View File

@@ -0,0 +1,147 @@
#!/bin/sh /etc/rc.common
. /usr/share/libubox/jshn.sh
. /lib/functions.sh
mobid_cb() {
local device mobility_domain
config_get device $1 device
[ "$device" != "$2" ] && return;
config_get mobility_domain $1 mobility_domain
echo "$mobility_domain"
}
_get_mobid() {
vif=$1
config_load wireless
mobid="$(config_foreach mobid_cb wifi-iface $vif)"
echo $mobid
}
repeated_macs() {
octets=$1
oct2=$2
oct3=$3
mac=$4
macs=""
oct456=${mac:9}
[ -z "$octets" -o -z "$oct2" -o -z "$oct3" -o -z "$mac" -o -z "$oct456" ] && return
IFS=$' '
for oct1 in $octets; do
macs="$oct1:$oct2:$oct3:$oct456 $macs"
done
echo "$macs"
}
# transform a mac address to all possibly repeated - recommended when parsing one or few MACs
mac_to_repeated() {
mac=$1
octets=""
oct2=""
oct3=""
octets=$(get_octets)
mobid=$(get_mobid)
[ -z "$mobid" -o -z "$octets" ] && return
oct2="$(echo $mobid | awk '{print $1}')"
oct3="$(echo $mobid | awk '{print $2}')"
echo "$(repeated_macs $octets $oct2 $oct3 $mac)"
}
assocl_match_mac() {
mac=$1
res="$(ubus call wifix assoclist 2>/dev/null)"
json_load "$res"
json_select assoclist 2>/dev/null
json_get_keys keys
IFS=$' '
for key in $keys; do
json_select $key 2>/dev/null
json_get_var macaddr macaddr
json_select ..
[ "$macaddr" = "$mac" ] || continue
octet=$(echo $macaddr | cut -c1-2)
echo "$octet"
done
}
get_octet() {
ip=$1
res="$(ubus call router.net arp 2>/dev/null)"
json_load "$res"
json_select table 2>/dev/null
json_get_keys keys
IFS=$' '
for key in $keys; do
json_select $key 2>/dev/null
json_get_var ipaddr ipaddr
json_get_var macaddr macaddr
json_select ..
[ "$ipaddr" = "$ip" ] || continue
echo "$(assocl_match_mac $macaddr)"
done
}
# only get all first octets - use when parsing several MACS
get_octets() {
octets=""
assoclist=""
neighbors=""
objects=$(ubus list | grep -E '.*\/wifix$')
[ -z "$objects" ] && return
for obj in $objects; do
ip=$(echo $obj | cut -d'/' -f1)
octet="$(get_octet $ip)"
[ "$octets" != "${octets/$octet/}" ] && continue
octets="$octet $octets"
done
echo "$octets"
}
# get only mobid - use when parsing several MACS
get_mobid() {
mobid="500"
radios="$(ubus -t1 call wifix radios 2>/dev/null)"
[ -z "$radios" ] && return
json_load "$radios"
json_get_keys keys
IFS=$' '
for key in $keys; do
val="$(_get_mobid $key)"
[ -n "$val" ] && mobid=$val;
done
mobid=$(printf "%04x" $mobid)
# if little endian
if [ "$(echo -n I | hexdump -o | awk '{ print substr($2,6,1); exit}')" = "1" ]; then
oct2=${mobid:2}
oct3=${mobid%??}
else
oct2=${mobid%??}
oct3=${mobid:2}
fi
echo "$oct2 $oct3"
}

View File

@@ -8,7 +8,7 @@ PKG_NAME:=wifimngr
PKG_VERSION:=1.0.2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=66a7e957f5e3e83ab60da68f7fb05cdda7f474d5
PKG_SOURCE_VERSION:=8fe360e39fa71dbf5f7618afaba4b05da804981e
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/wifimngr.git
PKG_MAINTAINER:=Anjan Chanda <anjan.chanda@iopsys.eu>