I’ve been messing around with HotSpot & Ascend-Data-Rate.
Ascend-Data-Rate works properly when it’s the only attribute - limits speeds to the requested value.
However, when I have Ascend-Data-Rate and Ascend-Xmit-Rate both in place, the values are reversed. Xmit controls the download speed, and Data controls the upload rate.
Is this correct? It’s consistent (when I change the values, it behaves), but it seems like it’s kind of backwards.
You can stick to Ascend-Data-Rate all the way for both tx and rx.
Then you need to add prio to your radius table
I.E
INSERT INTO radreply VALUES (199,‘user’,‘Ascend-Data-Rate’,‘=’,‘4096000’,1);
INSERT INTO radreply VALUES (200,‘user’,‘Ascend-Data-Rate’,‘=’,524288’',0);
Your sql.conf for mysql and freeradius would have:
authorize_reply_query = “SELECT id,UserName,Attribute,Value,op FROM ${authreply_table} WHERE Username = ‘%{SQL-User-Name}’ ORDER BY prio DESC”