]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Notify about disconnection only when needed
authorEliad Peller <eliad@wizery.com>
Sun, 1 Apr 2012 18:49:03 +0000 (21:49 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 1 Apr 2012 18:49:03 +0000 (21:49 +0300)
commitdbe7aa222510c6f02e7813cc6ea0cdf84d3fec9c
tree6eac7660b277c2fdda101bff23bbc69879686b1d
parent3c29244eb7a2dfd62d80ba4e6176de2889a5dca4
P2P: Notify about disconnection only when needed

wpas_notify_state_changed() notified about disconnection when
new_state < WPA_ASSOCIATED, without checking the old state. This
results in extra processing which can be avoided by checking that
old_state was connected.

Signed-hostap: Eliad Peller <eliad@wizery.com>
intended-for: hostap-1
wpa_supplicant/notify.c