hotspot-to-wpa: drop support for tx limits
... if you need to limit bandwidth use queues instead.
This commit is contained in:
parent
99a95d310e
commit
8a941fcd8d
1 changed files with 2 additions and 11 deletions
|
|
@ -27,14 +27,5 @@ $LogPrintExit2 info $0 ("Adding/updating accesslist entry for mac address " . $M
|
||||||
" (user " . $UserName . ").") false;
|
" (user " . $UserName . ").") false;
|
||||||
|
|
||||||
/ caps-man access-list remove [ find where mac-address=$MacAddress comment~"^hotspot-to-wpa: " ];
|
/ caps-man access-list remove [ find where mac-address=$MacAddress comment~"^hotspot-to-wpa: " ];
|
||||||
|
/ caps-man access-list add comment=("hotspot-to-wpa: " . $UserName . ", " . $MacAddress . ", " . $Date) \
|
||||||
:local Limits [ / caps-man access-list get $PlaceBefore ];
|
mac-address=$MacAddress private-passphrase=$PassWord ssid-regexp="-wpa\$" place-before=$PlaceBefore;
|
||||||
:if (($Limits->"ap-tx-limit") > 0 && ($Limits->"client-tx-limit") > 0) do={
|
|
||||||
/ caps-man access-list add comment=("hotspot-to-wpa: " . $UserName . ", " . $MacAddress . ", " . $Date) \
|
|
||||||
mac-address=$MacAddress private-passphrase=$PassWord ssid-regexp="-wpa\$" \
|
|
||||||
ap-tx-limit=($Limits->"ap-tx-limit") client-tx-limit=($Limits->"client-tx-limit") \
|
|
||||||
place-before=$PlaceBefore;
|
|
||||||
} else={
|
|
||||||
/ caps-man access-list add comment=("hotspot-to-wpa: " . $UserName . ", " . $MacAddress . ", " . $Date) \
|
|
||||||
mac-address=$MacAddress private-passphrase=$PassWord ssid-regexp="-wpa\$" place-before=$PlaceBefore;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue