libwifi: refactor ap_info call
Use beacon ie in ap_info call to collect information about AP. Use size_t instead of int to pass size arguments. Add some generic functions to parse ies content. Move generic functions from wpactrl_util to util.
Signed-off-by: Marek Puzyniak marek.puzyniak@iopsys.eu
@anjancx @janusz @bartlomiej.grzeskowiak Please take a look. In mtk.c function iface_ap_info I can remove all nlwifi calls and get those information from beacon information elements.