UPSTREAM: utils: Rename hostapd_parse_bin to wpabuf_parse_bin and move it

Make the function available as part of the wpabuf API.
Use this renamed function where possible.

Change's from
http://lists.infradead.org/pipermail/hostap/2016-April/035531.html

BUG=b:36055223
TEST=1) Manually verified the neighbor report functionality by sending a
     neighbor report request from a STA and receiving response from AP.
     2) stress tested by running through  connect/disconnect/download
        from 7 different stations and observed no regression.

Change-Id: I0b2421a197df7b98a43580119f41c10abad6e8cd
Reviewed-on: https://chromium-review.googlesource.com/456537
Commit-Ready: NARAYANRADDI MASTI <nmasti@google.com>
Tested-by: NARAYANRADDI MASTI <nmasti@google.com>
Reviewed-by: Srinivasa duvvuri <sduvvuri@chromium.org>
4 files changed