libwifi: util: pass ie len to wifi_cap_set_from_*()
This is follow up of split function wifi_cap_set_from_ie to smaller functions that can be reused. Those smaller functions get new input parameter: information elements lenght. Also basic sanity of provided input parameters is done at beggining of those functions.
Signed-off-by: Marek Puzyniak marek.puzyniak@iopsys.eu
@anjancx Please look if this version of wifi_cap_set_from_*() functions is ok.