utils: Share a single helper function to get IE by ID
authorAvraham Stern <avraham.stern@intel.com>
Mon, 15 Feb 2016 14:53:17 +0000 (16:53 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 21 Feb 2016 15:14:56 +0000 (17:14 +0200)
commit231b04b6cbe876006c6291a5a0cb7bfd8380f943
tree472561be289861bf42eb3664e79734ea6bffc924
parentea69d9737cfdf42610ad8134b05ecbf9daf1c289
utils: Share a single helper function to get IE by ID

Add a helper function to find a certain IE inside IEs buffer by ID and
use this function in several places that implemented similar
functionality locally.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
src/common/ieee802_11_common.c
src/common/ieee802_11_common.h
src/drivers/driver_nl80211.h
src/drivers/driver_nl80211_event.c
src/drivers/driver_nl80211_scan.c
wpa_supplicant/bss.c
wpa_supplicant/scan.c