diff options
author | Christian Hesse <mail@eworm.de> | 2021-11-03 15:21:01 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2021-11-03 15:21:01 +0100 |
commit | 8a941fcd8d604a0add5b2b5f237b67334553d439 (patch) | |
tree | d158c9d8f1c428915fccd09fa7d07fdb2e9d7071 /hotspot-to-wpa | |
parent | 99a95d310e87af7e498eac886993f5f1a8f9f174 (diff) |
hotspot-to-wpa: drop support for tx limits
... if you need to limit bandwidth use queues instead.
Diffstat (limited to 'hotspot-to-wpa')
-rw-r--r-- | hotspot-to-wpa | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/hotspot-to-wpa b/hotspot-to-wpa index 68f887f..dbb1f49 100644 --- a/hotspot-to-wpa +++ b/hotspot-to-wpa @@ -27,14 +27,5 @@ $LogPrintExit2 info $0 ("Adding/updating accesslist entry for mac address " . $M " (user " . $UserName . ").") false; / caps-man access-list remove [ find where mac-address=$MacAddress comment~"^hotspot-to-wpa: " ]; - -:local Limits [ / caps-man access-list get $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; -} +/ caps-man access-list add comment=("hotspot-to-wpa: " . $UserName . ", " . $MacAddress . ", " . $Date) \ + mac-address=$MacAddress private-passphrase=$PassWord ssid-regexp="-wpa\$" place-before=$PlaceBefore; |