Skip to contentSkip to conversation

WDS vs. multi-channel operation

DISCUSSION Johannes Berg 2 participants 8 messages Jul 30, 2012 – Aug 6, 2012

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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

#2 lore raw
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

#3 lore raw
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_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?

Oh and if you actually do need WDS-type interfaces, maybe their role should change to be virtual like AP_VLAN-type interfaces?

johannes

#4 lore raw
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_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?

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

#5 lore raw
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_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?

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_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.

I was thinking just pre-configure it as you have to anyway now?

johannes

#6 lore raw
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_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?

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_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.

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

#7 lore raw
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_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?

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.

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