utils: Add ssid_parse() function
authorDavid Spinadel <david.spinadel@intel.com>
Wed, 6 Apr 2016 16:42:04 +0000 (19:42 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 16 Apr 2016 18:05:37 +0000 (21:05 +0300)
commit624b8a061f502d09ba932984482195bd5a839db5
tree2e78e0d96a7205c41fbde8b04469e3efc522d0cd
parente4fbc8d4239a806846a14ceb683f2db371c96f24
utils: Add ssid_parse() function

Add a function that parses SSID in text or hex format. In case of the
text format, the SSID is enclosed in double quotes. In case of the hex
format, the SSID must include only hex digits and not be enclosed in
double quotes. The input string may include other arguments after the
SSID.

Signed-off-by: David Spinadel <david.spinadel@intel.com>
src/common/ieee802_11_defs.h
src/utils/common.c
src/utils/common.h
wpa_supplicant/wpa_supplicant_i.h