openwrt / iwinfo

[MIRROR] Library for accessing wireless device drivers
https://git.openwrt.org/?p=project/iwinfo.git;
GNU General Public License v2.0
5 stars 13 forks source link

nl80211: handle per_sta_vif case properly #5

Open rany2 opened 8 months ago

rany2 commented 8 months ago

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 https://github.com/openwrt/openwrt/issues/14339

rany2 commented 8 months ago

I refactored this slightly for readability.

rany2 commented 7 months ago

@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