Closed nicopace closed 6 years ago
I think this is because this code is not aware that a single radio can be dual band. LEDE configures it by default at 2.4GHz, but 5GHz are also possible and libremesh is not aware of that.
Instead of using /etc/config/wireless, it would be better to use the lua module "iwinfo" which gives all information related to radios.
Also, we should agree on some heuristics. A proposal:
snippet from https://github.com/libremesh/lime-packages/blob/develop/packages/lime-system/files/usr/lib/lua/lime/wireless.lua#L34 :