From: "Niu,Bing" <[email protected]>

Issue:
Right now, connman doesn't have a mechanism to handle wifi tethering fail.
In a multiply WIFI NICs platform, connman will just try to set tethering
only at the first NIC in iface_list. But if the first NIC doesn't create AP
properly, connman will not try at the next one.This patches series
introduces a tethering fail handling mechanism. With this patch series,
connman will try on every NICs in iface_list until a tethering success happen.

Fix:
When tethering success happens, wpa_supplicant will signal interface state 
change
from G_SUPPLICANT_STATE_DISCONNECTED to G_SUPPLICANT_STATE_COMPLETED.If 
tethering
fail happens, the state will change from G_SUPPLICANT_STATE_DISCONNECTED to
G_SUPPLICANT_STATE_DISCONNECTED.
Patch 1 enhance gsupplicant layer, so that gsupplicant can detect tethering
        success or fail. when fail case happen, it will callback through 
ap_create_fail.
Patch 2 add tethering fail handling to wifi layer. When fail happen, wifi layer 
will
        try at the next NIC. Until tethering success or finish traversal to 
iface_list

Niu,Bing (2):
  Gsupplicant: add new callback interface_ap_create_fail to notify ap
    create fail case
  Wifi: add AP create fail handling mechanism

 gsupplicant/gsupplicant.h |   1 +
 gsupplicant/supplicant.c  |  66 +++++++++++++++++++++++--
 plugins/wifi.c            | 121 +++++++++++++++++++++++++++++++++++++++++-----
 3 files changed, 172 insertions(+), 16 deletions(-)
 mode change 100644 => 100755 gsupplicant/supplicant.c
 mode change 100644 => 100755 plugins/wifi.c

-- 
1.7.11.7

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to