I have a Linksys MR8300 router running OpenWrt 22.03.3. This is a tri-band router with two 5GHz radios and one 2.4GHz radio. I live in a university residence where internet is provided by the university. However, no ethernet connections are available, only wifi access to the Eduroam network. I use one of the 5GHz radios to connect to Eduroam wifi as a client and then I use the other 5GHz radio and the 2.4GHz radio to relay this internet connect and create my own LAN.
In order to have two 5GHz radios on the same router without interference the two radios are channel limited. One radio is limited to channels 36-64 and the other is 100-165. I'm not sure if this is a hardware limit or a software limit but it causes an issue with my connection. The university's router in my home that hosts the Eduroam network automatically optimizes the wifi connection by changing which channel it transmits on. The problem is, it very often switches to a channel that is in the other range of channels. When this happens I lose my internet connection. This means that I need to swap which one of my two 5GHz radios is acting as a client and which one is acting as a host for my LAN.
Solving the problem
I can think of two solutions. One solution is that the channel limits need to be removed on my 5GHz radios and then they need to change channels automatically so that they don't interfere.
A more practical solution could be to create a script that automatically detects when the Eduroam router changes channels to the other range and then it switches the radios from Client/Host to Host/Client.
However, I am not sure how to do either of these things. Does anyone have any ideas?