coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
514 stars 257 forks source link

Openwrt 18.06.4 WISPR_BANDWIDTH_MAX_DOWN is ZERO with conup #520

Closed xewonder closed 4 years ago

xewonder commented 4 years ago

Hello,

chilli is passing ZERO (0) to the variable WISPR_BANDWIDTH_MAX_DOWN and WISPR_BANDWIDTH_MAX_UP to the "conup" script application.

compiled on openwrt 18.06.4 -ar71xx-generic-ap147-010

Any ideas? its working fine on MIPS architecture.

Thanks

DD

xewonder commented 4 years ago

Just in case someone else has the issue, I fixed it by setting in chilli.c

From set_env("WISPR_BANDWIDTH_MAX_UP", VAL_ULONG, &appconn->s_params.bandwidthmaxup, 0); set_env("WISPR_BANDWIDTH_MAX_DOWN", VAL_ULONG, &appconn->s_params.bandwidthmaxdown, 0);

to set_env("WISPR_BANDWIDTH_MAX_UP", VAL_ULONG64, &appconn->s_params.bandwidthmaxup, 0); set_env("WISPR_BANDWIDTH_MAX_DOWN", VAL_ULONG64, &appconn->s_params.bandwidthmaxdown, 0);

works for me for now.