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

nl80211: handle per_sta_vif case properly #5

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

Conversation

rany2
Copy link

@rany2 rany2 commented Jan 5, 2024

When per_sta_vif is enabled in hostapd BSS config, we need to iterate
through every interface in /sys/class/net which matches
${interface_requested}.${number}. Otherwise data requested from iwinfo
will be incomplete/nonexistant. This is already handled for WDS so there is
precedence for a change like this.

Also refactor logic on whether to issue a NL80211_CMD_GET_STATION request
on the interface into a seperate function.

Closes openwrt/openwrt#14339

@rany2
Copy link
Author

rany2 commented Jan 6, 2024

I refactored this slightly for readability.

@rany2
Copy link
Author

rany2 commented Jan 24, 2024

@Ansuel I'm sorry for the ping but is there any chance you could look into this? I'd like to use the official image without needing to apply this. If there are any changes I need to make please let me know

iwinfo_nl80211.c Outdated Show resolved Hide resolved
iwinfo_nl80211.c Outdated Show resolved Hide resolved
iwinfo_nl80211.c Outdated Show resolved Hide resolved
When per_sta_vif is enabled in hostapd BSS config, we need to iterate
through every interface in /sys/class/net which matches
`${interface_requested}.${number}`. Otherwise data requested from iwinfo
will be incomplete/nonexistant. This is already handled for WDS so there is
precedence for a change like this.

Also refactor logic on whether to issue a NL80211_CMD_GET_STATION request
on the interface into a seperate function.

Closes openwrt/openwrt#14339

Signed-off-by: Rany Hany <[email protected]>
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.

[libiwinfo] per_sta_vif causes assoclist to not function as expected
3 participants