Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wifi data gathering #1080

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ch-iara
Copy link
Contributor

@ch-iara ch-iara commented Jan 8, 2025

This fix adds on to 58c0626 which fixed the missing wifi device data with the unintended side effect of breaking the ability to set wifi settings from ops. The original problem was that for routers missing the ifname setting in /etc/config/wireless, the wifi interface names differ between uci and iw, the two places we gather different wifi info to be sent over in the WifiDevice field of HardwareInfo. The first fix used iw instead to gather interface names, but since ifnames may differ between the two systems if routers are missing the config line, this broke wifi settings when routers were searching uci for an interface name only used by iw.

This change calls both uci and iw so no matter whether the router has its ifname nicknamed it can gather the required data to be sent to ops for each interface.

@ch-iara
Copy link
Contributor Author

ch-iara commented Jan 8, 2025

closes #1078

@ch-iara ch-iara force-pushed the chiara/refix-wifi-data-gathering-mast branch 2 times, most recently from 6d62c60 to 39a14f0 Compare January 8, 2025 11:31
This fix adds on to 58c0626 which fixed the missing wifi device data
with the unintended side effect of breaking the ability to set wifi
settings from ops. The original problem was that for routers missing
the ifname setting in /etc/config/wireless, the wifi interface names
differ between uci and iw, the two places we gather different wifi
info to be sent over in the WifiDevice field of HardwareInfo.
The first fix used iw instead to gather interface names, but since
ifnames may differ between the two systems if routers are missing the
config line, this broke wifi settings when routers were searching uci
for an interface name only used by iw.

This change calls both uci and iw so no matter whether the router has
its ifname nicknamed it can gather the required data to be sent to ops
for each interface.
@ch-iara ch-iara force-pushed the chiara/refix-wifi-data-gathering-mast branch from 39a14f0 to 8161cde Compare January 8, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant