Skip to content

Commit

Permalink
romaguide: enable roamguide for interface client1 by default.
Browse files Browse the repository at this point in the history
In current gluon this is present when the node has a second
radio interface for 5G wifi. This shall later be replaced
by a mechanism which detects all available AP interfaces.
  • Loading branch information
sargon committed Jan 7, 2019
1 parent b978b26 commit c9539a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions roamguide/files/etc/config/roamguide
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@ config roamguide
# and in the final 10000ms
option forget_time '600' # Forget about a client after 10s
option enabled '1' # set to '0' to disable this profile

config roamguide
option device "client1" # wireless AP device we like to guide
list signal '-60' # first penality level
list signal '-77' # second penality level
list signal '-85' # final penality level
option bantime_base '500' # on the first level ban for 500ms
option bantime_factor '2375' # on the second one for 2775ms,
# and in the final 10000ms
option forget_time '600' # Forget about a client after 10s
option enabled '1' # set to '0' to disable this profile
2 changes: 1 addition & 1 deletion roamguide/files/usr/bin/roamguide
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ client_macs() {
client_tq() {
local dev="$1"
local mac="$2"
iw dev "${dev}" station get "${mac}" | grep "signal avg" | xargs | cut -d' ' -f 3
iw dev "${dev}" station get "${mac}" 2>/dev/null | grep "signal avg" | xargs | cut -d' ' -f 3
}

roamguide() {
Expand Down

0 comments on commit c9539a0

Please sign in to comment.