hostapd: Fix aliasing violation

Change-Id: I1661f1e50959165542aed00374467715dc26d847
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Merge commit '66488481b2273fbf29fc3d12da659d47cde41d0b' into cm-10.1