WDS vs. multi-channel operation
Ok so I'm chipping away at multi-channel operation, but WDS is troubling. Which channel should it use? It doesn't even have channel configuration today, but relies on having a channel already, but that breaks when you have multi-channel since then it either has to have its own channel or be slaved to another channel...
Anyone have any ideas?
johannes
Quoted 7 lines · Johannes Berg
Ok so I'm chipping away at multi-channel operation, but WDS is troubling. Which channel should it use? It doesn't even have channel configuration today, but relies on having a channel already, but that breaks when you have multi-channel since then it either has to have its own channel or be slaved to another channel...
Anyone have any ideas?
Let's bind WDS interfaces to AP VIFs, then they can be slave to the AP's channel context. This is necessary for my yet-to-be-resubmitted WDS fixes anyway.
- Felix
Quoted 11 lines · Felix Fietkau
Quoted 7 lines · Johannes Berg
Ok so I'm chipping away at multi-channel operation, but WDS is troubling. Which channel should it use? It doesn't even have channel configuration today, but relies on having a channel already, but that breaks when you have multi-channel since then it either has to have its own channel or be slaved to another channel...
Anyone have any ideas?
Let's bind WDS interfaces to AP VIFs, then they can be slave to the AP's channel context. This is necessary for my yet-to-be-resubmitted WDS fixes anyway.
For now I decided that drivers supporting the channel context APIs will not be allowed to support WDS interfaces :-P
(and the code in WDS TX will simply take the global channel as before)
So ... yes, I think this makes sense, but I'm not sure I care enough to implement it right now, I have enough other things with multi-channel still to do ... Though the question remains *how* we bind them. We could try to match them by MAC address when they're brought up (and require the same MAC address?), or do explicit binding, or something else entirely ...
If you're going to require them to be bound to an AP though, where's the difference to the current 4-addr AP_VLAN behaviour? It seems with that you could actually implement a bound-to-AP-WDS entirely in userspace since there's no requirement to actually go through the auth/assoc sequence for hostapd to add the station entry?
johannes
Quoted 24 lines · Johannes Berg
Quoted 11 lines · Felix Fietkau
Quoted 7 lines · Johannes Berg
Ok so I'm chipping away at multi-channel operation, but WDS is troubling. Which channel should it use? It doesn't even have channel configuration today, but relies on having a channel already, but that breaks when you have multi-channel since then it either has to have its own channel or be slaved to another channel...
Anyone have any ideas?
Let's bind WDS interfaces to AP VIFs, then they can be slave to the AP's channel context. This is necessary for my yet-to-be-resubmitted WDS fixes anyway.
For now I decided that drivers supporting the channel context APIs will not be allowed to support WDS interfaces :-P
(and the code in WDS TX will simply take the global channel as before)So ... yes, I think this makes sense, but I'm not sure I care enough to implement it right now, I have enough other things with multi-channel still to do ... Though the question remains *how* we bind them. We could try to match them by MAC address when they're brought up (and require the same MAC address?), or do explicit binding, or something else entirely ...
Quoted 5 lines
If you're going to require them to be bound to an AP though, where's the difference to the current 4-addr
AP_VLANbehaviour? It seems with that you could actually implement a bound-to-AP-WDS entirely in userspace since there's no requirement to actually go through the auth/assoc sequence for hostapd to add the station entry?
Oh and if you actually do need WDS-type interfaces, maybe their role should change to be virtual like AP_VLAN-type interfaces?
johannes
Quoted 25 lines · Johannes Berg
Quoted 24 lines · Johannes Berg
Quoted 11 lines · Felix Fietkau
Quoted 7 lines · Johannes Berg
Ok so I'm chipping away at multi-channel operation, but WDS is troubling. Which channel should it use? It doesn't even have channel configuration today, but relies on having a channel already, but that breaks when you have multi-channel since then it either has to have its own channel or be slaved to another channel...
Anyone have any ideas?
Let's bind WDS interfaces to AP VIFs, then they can be slave to the AP's channel context. This is necessary for my yet-to-be-resubmitted WDS fixes anyway.
For now I decided that drivers supporting the channel context APIs will not be allowed to support WDS interfaces :-P
(and the code in WDS TX will simply take the global channel as before)So ... yes, I think this makes sense, but I'm not sure I care enough to implement it right now, I have enough other things with multi-channel still to do ... Though the question remains *how* we bind them. We could try to match them by MAC address when they're brought up (and require the same MAC address?), or do explicit binding, or something else entirely ...
Quoted 8 lines
Quoted 5 lines
If you're going to require them to be bound to an AP though, where's the difference to the current 4-addr
AP_VLANbehaviour? It seems with that you could actually implement a bound-to-AP-WDS entirely in userspace since there's no requirement to actually go through the auth/assoc sequence for hostapd to add the station entry?Oh and if you actually do need WDS-type interfaces, maybe their role should change to be virtual like AP_VLAN-type interfaces?
The difference between WDS and 4-addr AP_VLAN is that WDS is AP<->AP, not AP<->STA. I guess it would be possible to write some code to create AP VLANs + station entries for remote APs based on cooked monitor mode based discovery or some form of mgmt frame exchange.
- Felix
Quoted 6 lines · Felix Fietkau
Quoted 6 lines
Quoted 5 lines
If you're going to require them to be bound to an AP though, where's the difference to the current 4-addr
AP_VLANbehaviour? It seems with that you could actually implement a bound-to-AP-WDS entirely in userspace since there's no requirement to actually go through the auth/assoc sequence for hostapd to add the station entry?
Quoted 7 lines
Quoted 2 lines
Oh and if you actually do need WDS-type interfaces, maybe their role should change to be virtual like AP_VLAN-type interfaces?
The difference between WDS and 4-addr
AP_VLANis that WDS is AP<->AP, not AP<->STA. I guess it would be possible to write some code to create AP VLANs + station entries for remote APs based on cooked monitor mode based discovery or some form of mgmt frame exchange.
I was thinking just pre-configure it as you have to anyway now?
johannes
Quoted 11 lines · Johannes Berg
Quoted 8 lines · Felix Fietkau
Quoted 8 lines
Quoted 5 lines
If you're going to require them to be bound to an AP though, where's the difference to the current 4-addr
AP_VLANbehaviour? It seems with that you could actually implement a bound-to-AP-WDS entirely in userspace since there's no requirement to actually go through the auth/assoc sequence for hostapd to add the station entry?Oh and if you actually do need WDS-type interfaces, maybe their role should change to be virtual like AP_VLAN-type interfaces?
Quoted 6 lines
Quoted 4 lines
The difference between WDS and 4-addr
AP_VLANis that WDS is AP<->AP, not AP<->STA. I guess it would be possible to write some code to create AP VLANs + station entries for remote APs based on cooked monitor mode based discovery or some form of mgmt frame exchange.I was thinking just pre-configure it as you have to anyway now?
Well, when creating station entries manually, it has to know the HT capabilities, etc.
With my incomplete fixes (which are being used on OpenWrt), those are automatically extracted from the remote AP's beacons, so that needs less preconfiguration.
- Felix
Quoted 17 lines · Felix Fietkau
Quoted 16 lines · Johannes Berg
Quoted 13 lines · Felix Fietkau
Quoted 8 lines
Quoted 5 lines
If you're going to require them to be bound to an AP though, where's the difference to the current 4-addr
AP_VLANbehaviour? It seems with that you could actually implement a bound-to-AP-WDS entirely in userspace since there's no requirement to actually go through the auth/assoc sequence for hostapd to add the station entry?Oh and if you actually do need WDS-type interfaces, maybe their role should change to be virtual like AP_VLAN-type interfaces?
The difference between WDS and 4-addr
AP_VLANis that WDS is AP<->AP, not AP<->STA. I guess it would be possible to write some code to create AP VLANs + station entries for remote APs based on cooked monitor mode based discovery or some form of mgmt frame exchange.
Quoted 6 lines
Quoted 1 line
I was thinking just pre-configure it as you have to anyway now?
Well, when creating station entries manually, it has to know the HT capabilities, etc.
With my incomplete fixes (which are being used on OpenWrt), those are automatically extracted from the remote AP's beacons, so that needs less preconfiguration.
Ah yes, but hostapd could do that as well since it always receives OBSS beacons (via cooked monitor or nl80211 beacon reporting)
Anyway, I don't mind WDS special interfaces, I just have a feeling we might be better served by AP_VLAN since they're implicitly handled in mac80211 and don't need driver support etc.
johannes