Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ffho-packages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Freifunk Hochstift
ffho-packages
Commits
34633a5a
Commit
34633a5a
authored
9 years ago
by
Karsten Böddeker
Browse files
Options
Downloads
Patches
Plain Diff
Move ffho-wifi-mesh-macfilter to master
This Package only makes sense for 802.11s-mesh
parent
e3e3f773
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ffho/ffho-wifi-mesh-macfilter/Makefile
+40
-0
40 additions, 0 deletions
ffho/ffho-wifi-mesh-macfilter/Makefile
ffho/ffho-wifi-mesh-macfilter/files/etc/hotplug.d/iface/80-wifi-mesh-macfilter
+27
-0
27 additions, 0 deletions
...acfilter/files/etc/hotplug.d/iface/80-wifi-mesh-macfilter
with
67 additions
and
0 deletions
ffho/ffho-wifi-mesh-macfilter/Makefile
0 → 100644
+
40
−
0
View file @
34633a5a
include
$(TOPDIR)/rules.mk
PKG_NAME
:=
ffho-wifi-mesh-macfilter
PKG_VERSION
:=
1
PKG_RELEASE
:=
1
PKG_BUILD_DIR
:=
$(
BUILD_DIR
)
/
$(
PKG_NAME
)
include
$(INCLUDE_DIR)/package.mk
define
Package/ffho-wifi-mesh-macfilter
SECTION
:=
ffho
CATEGORY
:=
workarounds
TITLE
:=
WiFi - block/open 802.11s-mesh stations
DEPENDS
:=
+iw +uci
endef
define
Package/ffho-wifi-mesh-macfilter/description
Setting
plink_action
[block|open],
when
802.11s
mesh-interface
comes
up.
Define
filterpolicy
in
uci
wireless.<wifi-iface>
.macfilter
=[
disable|deny|allow].
Deny
sets
iw
dev
<device>
station
set
<mac>
plink_action
block,
and
allow
sets
iw
dev
<device>
mesh_param
mesh_auto_open_plink
=
0 and iw dev <device> station
set
<mac> plink_action open.
List
MAC
adresses
(divided
by
spaces)
in
uci
wireless.<wifi-iface>.maclist.
endef
define
Build/Prepare
mkdir
-p
$(PKG_BUILD_DIR)
endef
define
Build/Configure
endef
define
Build/Compile
endef
define
Package/ffho-wifi-mesh-macfilter/install
$(CP)
./files/*
$(1)/
endef
$(
eval
$(
call BuildPackage,ffho-wifi-mesh-macfilter
))
This diff is collapsed.
Click to expand it.
ffho/ffho-wifi-mesh-macfilter/files/etc/hotplug.d/iface/80-wifi-mesh-macfilter
0 → 100644
+
27
−
0
View file @
34633a5a
#!/bin/sh
local
MODE
local
POLICY
local
IW_POLICY
local
MAC
local
MACLIST
[[
"
$ACTION
"
!=
ifup
]]
&&
exit
0
;
.
/lib/functions.sh
config_load
"wireless"
config_get MODE
$INTERFACE
mode
[[
$MODE
!=
mesh
]]
&&
exit
0
;
config_get POLICY
$INTERFACE
macfilter
case
$POLICY
in
deny
)
IW_POLICY
=
"block"
;;
allow
)
IW_POLICY
=
"open"
;
iw dev
$DEVICE
set
mesh_param
mesh_auto_open_plinks
=
0
;;
*
)
exit
0
;;
esac
config_get MACLIST
$INTERFACE
maclist
for
MAC
in
$MACLIST
;
do
iw dev
$DEVICE
station
set
$MAC
plink_action
$IW_POLICY
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment