Hi,

Until now, connman was able to handle incorrect psk error whenever the given 
psk had a wrong format (wpa_supplicant notifies is during SelectNetwork 
method call).
But incorrect psk as a value, was not. For instance if the righs psk is 
"kabooom" and user gives "oatnustouf" instead, we will get a connection error 
but not a psk error. wpa_supplicant does not handle the error on its own, it's 
up to connman to handle wrong state transition:
when switching from 4way-handshake to disconnected, then that most probably 
means psk was wrong.

If we notice that, it's also up to connman to tell wpa_supplicant to stop 
retrying. In order to do that connman needs to disable the selected 
network.

- First patch adds a gsupplicant function to disable selected network
- Second one handles the wrong state transition in wifi plugin

Please review, 

Tomasz Bursztyka (2):
  gsupplicant: added a function to disable the selected network
  wifi: wifi plugin handles erroneous disconnection after
    4way-handshake

 gsupplicant/gsupplicant.h |    2 ++
 gsupplicant/supplicant.c  |   25 +++++++++++++++++++++++++
 plugins/wifi.c            |   14 ++++++++++++++
 3 files changed, 41 insertions(+), 0 deletions(-)

-- 
1.7.3.4

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

Reply via email to