mac80211: impact of netif_carrier_off during roaming
Hi
I've noticed that during roaming triggered by detection of a significantly better AP in wpa_supplicant that mac80211 calls netif_carrier_off and then netif_carrier_on when associated with the new AP.
Does this have any detrimental impact on applications using the wifi connection or is the assumption that as long as the roam happens in a reasonable time then applications should tolerate it?
Just wondering if signalling the netif_carrier_off only when the current AP is lost and there is no immediate alternative AP for the network available was considered?
Thanks
Mark
Quoted 6 lines · Mark Fitzjohn
Hi
I've noticed that during roaming triggered by detection of a significantly better AP in
wpa_supplicantthat mac80211 callsnetif_carrier_offand thennetif_carrier_onwhen associated with the new AP.
Quoted 7 lines
Does this have any detrimental impact on applications using the wifi connection or is the assumption that as long as the roam happens in a reasonable time then applications should tolerate it?
Just wondering if signalling the
netif_carrier_offonly when the current AP is lost and there is no immediate alternative AP for the network available was considered?
Carrier is more "can I send data the other side is expected to receive", and that's what it's doing in mac80211. If you're roaming but not yet associated to the new AP, you can't send any data, thus carrier is down.
Carrier for Wi-Fi is simply more complicated than ethernet because Wi-Fi is more complicated. The current approach provides a good notification of L2 connectivity, which maps well to the existing Ethernet semantics and how stuff like DHCP works if it wants to renew addresses. Something needs to provide this and carrier does that in a consistent way.
What you're probably looking for is indications of connection/disconnection from an SSID, which is provided by mac80211/cfg80211 and wpa_supplicant.
Dan