]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Fix p2p_long_listen
authorJohannes Berg <johannes.berg@intel.com>
Tue, 1 Feb 2011 16:09:38 +0000 (18:09 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 1 Feb 2011 16:09:38 +0000 (18:09 +0200)
commit11fb02be67e6c7defab7bbfdad53bde124aa9346
treea41827874eef4d0320dbeb497fe44e688bd2a55f
parentf14f5141a03b0fee2ab54f64094ac6a7d07b373b
P2P: Fix p2p_long_listen

There are two issues with p2p_long_listen:
 1) max_remain_on_channel is assumed to be 5 seconds,
 2) if max_remain_on_channel is not a full multiple of
    seconds, accounting breaks.

Fix these by converting p2p_long_listen to ms and
tracking it according to max_remain_on_channel.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/wpa_supplicant_i.h