wlan: Validate wpa ie length before extracting ie

Propagation from qcacld-3.0 to prima.

During initializing ibss security settings there is a possibility
of integer underflow while extracting wpa ie because of ie length
check miss.

Add wpa ie length boundary check before extracting wpa ie.

Issue: SEC-1249
Change-Id: Id202e74515ae355384f95d62b38fb690c9a8ca2f
CRs-Fixed: 2268507
Signed-off-by: Gururaj Patil <gururaj.patil3@harman.com>
1 file changed