]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/ctrl_iface.c
P2PS: Fix p2p_find last parameter handling
authorStepanov, Max <Max.Stepanov@intel.com>
Tue, 23 Jun 2015 13:52:22 +0000 (13:52 +0000)
committerJouni Malinen <j@w1.fi>
Sat, 27 Jun 2015 20:49:15 +0000 (23:49 +0300)
commita9ea609ce84baa001b125adc9da55e5416a96d91
treeb6f54fde69d16402f456ec816a25fa8d8a791271
parent6c7314917bb69998fa4465f4b63caf2562b33670
P2PS: Fix p2p_find last parameter handling

In p2p_find command line processing a loop searching for multiple
'seek=' parameters modifies cmd buffer adding '\0' terminators.
The 'freq=' parameter is handled after that and can be
lost if a 'freq=' follows 'seek=' in a command line.
Fix it by moving a handling of 'freq=' parameter to be processed
before 'seek=' handling loop.

Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>
wpa_supplicant/ctrl_iface.c